Re: [GRASS-user] Change elevation value for entire DEM raster cell [UPDATE 2]
On Thu, 23 Mar 2017, Johannes Radinger wrote: Maybe also this conversation on setting a specific raster value using r.mapcalc might help: http://osgeo-org.1560.x6.nabble.com/Set-raster-value-for-specific-cell-td5052853.html Johannes, Thanks for the pointer. Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Change elevation value for entire DEM raster cell [UPDATE 2]
Rich, Maybe also this conversation on setting a specific raster value using r.mapcalc might help: http://osgeo-org.1560.x6.nabble.com/Set-raster-value-for-specific-cell-td5052853.html /j Original message From: Rich Shepard <rshep...@appl-ecosys.com> Date:23/03/2017 22:07 (GMT+01:00) To: grass-user@lists.osgeo.org Subject: Re: [GRASS-user] Change elevation value for entire DEM raster cell [UPDATE 2] On Thu, 23 Mar 2017, Rich Shepard wrote: > Thanks. I overlooked entering the column formats while entering the x, y, > and z column positions. Turns out the problem is the pwd: it was ~/data/grassdata and I needed to cd to the topography subdirectory where the text file is located. Sigh. Mea culpa! Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Change elevation value for entire DEM raster cell [UPDATE 2]
On Thu, 23 Mar 2017, Rich Shepard wrote: Thanks. I overlooked entering the column formats while entering the x, y, and z column positions. Turns out the problem is the pwd: it was ~/data/grassdata and I needed to cd to the topography subdirectory where the text file is located. Sigh. Mea culpa! Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Change elevation value for entire DEM raster cell [UPDATE 2]
On Thu, 23 Mar 2017, Helmut Kudrnovsky wrote: columns='cat int, x double precision, y double precision, label varchar(20)' Helmut, Thanks. I overlooked entering the column formats while entering the x, y, and z column positions. Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Change elevation value for entire DEM raster cell [UPDATE 2]
Rich Shepard wrote > On Thu, 23 Mar 2017, Rich Shepard wrote: > >> What raster module will allow me to specify the new value of a DEM cell >> if >> I provide the easting and northing coordinates? > >Using v.in.ascii instead. File blocked_culvert.txt in mapset topography > contains: > > 2295820.0|175258.0|160.0 > 2295820.0|175257.0|160.0 > 2295821.0|175258.0|160.0 > 2295821.0|175257.0|160.0 > > But, GRASS cannot read this file: > > v.in.ascii input=blocked_culvert.txt output=blocked_elev --overwrite > ERROR: Unable to open input file > > . > >I'm not seeing my error here. see the manual https://grass.osgeo.org/grass73/manuals/v.in.ascii.html Example 3 - point format mode Generate a 2D points vector map 'points.dat' as ASCII file: 1|1664619|5103481|studna 2|1664473|5095782|kadibudka 3|1664273|5101919|hruska 4|1663427|5105234|mysi dira 5|1663709|5102614|mineralni pramen Import into GRASS: cat points.dat | v.in.ascii in=- out=mypoints x=2 y=3 cat=1 \ columns='cat int, x double precision, y double precision, label varchar(20)' and the description of columns: columns=string Column definition in SQL style (points mode) For example: 'x double precision, y double precision, cat int, name varchar(10)' - best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Change-elevation-value-for-entire-DEM-raster-cell-tp5313902p5313939.html Sent from the Grass - Users mailing list archive at Nabble.com. ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Change elevation value for entire DEM raster cell [UPDATE 2]
On Thu, 23 Mar 2017, Rich Shepard wrote: What raster module will allow me to specify the new value of a DEM cell if I provide the easting and northing coordinates? Using v.in.ascii instead. File blocked_culvert.txt in mapset topography contains: 2295820.0|175258.0|160.0 2295820.0|175257.0|160.0 2295821.0|175258.0|160.0 2295821.0|175257.0|160.0 But, GRASS cannot read this file: v.in.ascii input=blocked_culvert.txt output=blocked_elev --overwrite ERROR: Unable to open input file . I'm not seeing my error here. Rich ___ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user