[GRASS-user] Change elevation value for entire DEM raster cell [UPDATE 2]
Helmut Kudrnovsky
hellik at web.de
Thu Mar 23 13:35:00 PDT 2017
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
> <blocked_culvert.txt>
> .
>
> 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.
More information about the grass-user
mailing list