Has someone written a function like r.shift or r.transform ?
I just want to move a raster file in x and/or y direction (in map units or cell
sizes).
Thanks,
Bernhard
Has someone written a function like r.shift or r.transform ?
I just want to move a raster file in x and/or y direction (in map units or cell
sizes).
Thanks,
Bernhard
using v.in.ascii to import x,y,z points. Notice how the v.info does not
reveal the use of the "fs" option. While not a critical error, this does
prevent the use of scripting based on previous command history....
Or is this standard for the history output?
GRASS 6.1.cvs (nc):~ > v.in.ascii -z
input="/dls/NC_flood/10K_DEM_Export/Delivery/PntsBlin/Neuse/BE3720269400WC20020830.txt"
output="points_2694" format="point" fs=, skip=0 x=1 y=2 z=3 cat=0
Maximum input row length: 34
Maximum number of columns: 3
Minimum number of columns: 3
Building topology ...
310738 primitives registered
Building areas: 100%
0 areas built
0 isles built
Attaching islands:
Attaching centroids: 100%
Topology was built.
Number of nodes : 310738
Number of primitives: 310738
Number of points : 310738
Number of lines : 0
Number of boundaries: 0
Number of centroids : 0
Number of areas : 0
Number of isles : 0
GRASS 6.1.cvs (nc):~ > v.info map=points_2694 layer=1 -h
COMMAND: v.in.ascii -z
input="/dls/NC_flood/10K_DEM_Export/Delivery/PntsBlin/Neuse/BE3720269400WC20020830.txt"
output="points_2694" format="point" skip=0 x=1 y=2 z=3 cat=0
GISDBASE: /dls
LOCATION: nc MAPSET: PERMANENT USER: root DATE: Thu Jun 23 12:24:27 2005
GRASS 6.1.cvs (nc):~ >
--
Thomas Colson
Center For Earth Observation
North Carolina State University
Raleigh, NC
(919)515 3434
(919)673 8023
tom_colson@ncsu.edu
Bernhard Reimar Hoefle wrote:
Has someone written a function like r.shift or r.transform ?
I just want to move a raster file in x and/or y direction (in map
units or cell sizes).
Shifting a map by a fixed number of cells is easy enough with
r.mapcalc, e.g.:
r.mapcalc 'outmap = inmap[10,5]'
will result in outmap being shifted 10 cells up and 5 cells left
relative to inmap.
--
Glynn Clements <glynn@gclements.plus.com>
> Has someone written a function like r.shift or r.transform ?
>
> I just want to move a raster file in x and/or y direction (in map
> units or cell sizes).Shifting a map by a fixed number of cells is easy enough with
r.mapcalc, e.g.:r.mapcalc 'outmap = inmap[10,5]'
will result in outmap being shifted 10 cells up and 5 cells left
relative to inmap.
Is r.region appropriate?
Hamish
Hamish wrote:
> > Has someone written a function like r.shift or r.transform ?
> >
> > I just want to move a raster file in x and/or y direction (in map
> > units or cell sizes).
>
> Shifting a map by a fixed number of cells is easy enough with
> r.mapcalc, e.g.:
>
> r.mapcalc 'outmap = inmap[10,5]'
>
> will result in outmap being shifted 10 cells up and 5 cells left
> relative to inmap.Is r.region appropriate?
r.region modifies an existing map in-place. It is intended for the
situation where a map is imported in the wrong location (e.g. due to
missing or incorrect georeferencing data).
The r.mapcalc approach will create a shifted copy of an existing map
without changing the original map.
--
Glynn Clements <glynn@gclements.plus.com>