| 79 | | {{{g.region e=700001 w=-1 n=876952 s=0 res=1000}}} |
| 80 | | * Now read in the separation file: {{{r.in.xyz input=OSTN02_OSGM02_GB.txt output=OSTN02_OSGM02_GB.txt x=2 y=1 z=6 fs="," --overwrite}}} |
| 81 | | * Now to check that the reading in of the file has worked run: {{{gis.m}}} |
| 82 | | * In the manager click on "Add raster layer" |
| 83 | | * Then click on "Base map" and select "OSTN02_OSGM02_GB.txt" |
| 84 | | * In the "Map Display" click on "Redraw all layers". |
| 85 | | * You should now see the raster map that has been read in |
| | 82 | * {{{g.region e=700001 w=-1 n=876952 s=0 res=1000}}} |
| | 83 | * Now read in the separation file: |
| | 84 | * {{{r.in.xyz input=OSTN02_OSGM02_GB.txt output=OSTN02_OSGM02_GB.txt x=2 y=1 z=6 fs="," --overwrite}}} |
| | 85 | * Now to check that the reading in of the file has worked run: |
| | 86 | * {{{gis.m}}} |
| | 87 | * In the manager click on "Add raster layer" |
| | 88 | * Then click on "Base map" and select "OSTN02_OSGM02_GB.txt" |
| | 89 | * In the "Map Display" click on "Redraw all layers". |
| | 90 | * You should now see the raster map that has been read in |
| 92 | | * Save the region so that we can get back here: {{{g.region save=actualregion --overwrite}}} |
| 93 | | * Set the region to the the bottom left corner based on the resolution: {{{g.region n=s+`echo \`g.region -p | grep nsres\` | awk '{print $2}'` e=w+`echo \`g.region -p | grep ewres\` | awk '{print $2}'`}}} |
| 94 | | * Create a vector box based on the resolution: {{{v.in.region output=vector_box_res type=area --overwrite}}} |
| 95 | | * Reset the region: {{{g.region actualregion}}} |
| | 100 | * Save the region so that we can get back here: |
| | 101 | * {{{g.region save=actualregion --overwrite}}} |
| | 102 | * Set the region to the the bottom left corner based on the resolution: |
| | 103 | * {{{g.region n=s+`echo \`g.region -p | grep nsres\` | awk '{print $2}'` e=w+`echo \`g.region -p | grep ewres\` | awk '{print $2}'`}}} |
| | 104 | * Create a vector box based on the resolution: |
| | 105 | * {{{v.in.region output=vector_box_res type=area --overwrite}}} |
| | 106 | * Reset the region: |
| | 107 | * {{{g.region actualregion}}} |
| 97 | | * Project the resolution vector to the wgs84 lat/lon location: {{{v.proj input=vector_box_res location=UKBNG mapset=PERMANENT output=vector_box_res --overwrite}}} |
| 98 | | * Set the region to be the size of the vector and then set the resolution: {{{g.region vect=vector_box_res rows=1 cols=1}}} |
| 99 | | * Project the total region vector to the wgs84 lat/lon location: {{{v.proj input=vector_box location=UKBNG mapset=PERMANENT output=vector_box --overwrite}}} |
| 100 | | * Set the total region: {{{g.region vect=vector_box}}} |
| 101 | | * Project the separation file to the current location: {{{r.proj input=OSTN02_OSGM02_GB.txt location=UKBNG mapset=PERMANENT output=OSTN02_OSGM02_GB.txt --overwrite}}} |
| 102 | | * Output the separation file: {{{r.out.gdal input=OSTN02_OSGM02_GB.txt output=uk_separation_file_WGS84LL.dem format=ENVI type=Float32 nodata=0 --overwrite}}}[[BR]]{{{rm -f uk_separation_file_WGS84LL.dem.aux.xml}}} |
| | 109 | * Project the resolution vector to the wgs84 lat/lon location: |
| | 110 | * {{{v.proj input=vector_box_res location=UKBNG mapset=PERMANENT output=vector_box_res --overwrite}}} |
| | 111 | * Set the region to be the size of the vector and then set the resolution: |
| | 112 | * {{{g.region vect=vector_box_res rows=1 cols=1}}} |
| | 113 | * Project the total region vector to the wgs84 lat/lon location: |
| | 114 | * {{{v.proj input=vector_box location=UKBNG mapset=PERMANENT output=vector_box --overwrite}}} |
| | 115 | * Set the total region: |
| | 116 | * {{{g.region vect=vector_box}}} |
| | 117 | * Project the separation file to the current location: |
| | 118 | * {{{r.proj input=OSTN02_OSGM02_GB.txt location=UKBNG mapset=PERMANENT output=OSTN02_OSGM02_GB.txt --overwrite}}} |
| | 119 | * Output the separation file: |
| | 120 | * {{{r.out.gdal input=OSTN02_OSGM02_GB.txt output=uk_separation_file_WGS84LL.dem format=ENVI type=Float32 nodata=0 --overwrite}}} |
| | 121 | * {{{rm -f uk_separation_file_WGS84LL.dem.aux.xml}}} |