[GRASS-dev] [GRASS GIS] #3546: t.rast.what: issues in one_point_per_col_output()
GRASS GIS
trac at osgeo.org
Tue May 15 01:30:59 PDT 2018
#3546: t.rast.what: issues in one_point_per_col_output()
-----------------------+-------------------------
Reporter: sbl | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.4.1
Component: Temporal | Version: 7.4.0
Resolution: | Keywords: t.rast.what
CPU: All | Platform: All
-----------------------+-------------------------
Comment (by sbl):
Can be tested with example from the
[https://grass.osgeo.org/grass74/manuals/t.rast.what.html manual]:
{{{
# Create test data
g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10
# Generate data
r.mapcalc expression="a_1 = 1" -s
r.mapcalc expression="a_2 = 2" -s
r.mapcalc expression="a_3 = 3" -s
r.mapcalc expression="a_4 = 4" -s
t.create type=strds output=A title="A test" descr="A test"
t.register -i type=raster input=A maps=a_1,a_2,a_3,a_4 \
start='1990-01-01' increment="1 month"
v.random output=points n=3 seed=1
}}}
{{{
#Query STRDS (please try this with and without r72636
t.rast.what strds=A points=points layout=col -nv
}}}
Pay attention to the changes in the separators for the coordinates and cat
in the header (and the different number of resulting columns)...
Another option could be to remove coordinates from output, when cat is
used (v-flag), cause coordinates would be redundant.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3546#comment:5>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list