[GRASS-dev] [GRASS GIS] #2790: Output of t.rast.list with method=comma and columns=name does not differ from output with columns=id

#2790: Output of t.rast.list with method=comma and columns=name does not differ
from output with columns=id
-------------------------+-------------------------
Reporter: veroandreo | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Temporal | Version: svn-trunk
Keywords: t.rast.list | CPU: x86-64
Platform: Linux |
-------------------------+-------------------------
Hi,

When using t.rast.list column=name method=comma,
both map name and mapset name are printed, so it does not differ from
asking column=id.

{{{
GRASS 7.1.svn (latlong_wgs84):~ > t.rast.list input=precip_abs
order=start_time columns=name method=comma
prec_1@pruebas,prec_2@pruebas,prec_3@pruebas,prec_4@pruebas,prec_5@pruebas,prec_6@pruebas,prec_7@pruebas,prec_8@pruebas,prec_9@pruebas,prec_10@pruebas,prec_11@pruebas,prec_12@pruebas
GRASS 7.1.svn (latlong_wgs84):~ > t.rast.list input=precip_abs
order=start_time columns=id method=comma
prec_1@pruebas,prec_2@pruebas,prec_3@pruebas,prec_4@pruebas,prec_5@pruebas,prec_6@pruebas,prec_7@pruebas,prec_8@pruebas,prec_9@pruebas,prec_10@pruebas,prec_11@pruebas,prec_12@pruebas
}}}

While several modules (r.colors, r.stats or r.series) can take this as
input, r.hants (from add-ons) gives an error

{{{
GRASS 7.1.svn (latlong_wgs84):~ > r.hants input=`t.rast.list
input=precip_abs order=start_time columns=name method=comma` nf=2
base_period=6 fet=10 suffix=_hants

ERROR: Raster map <prec_1@pruebas_hants> is not in the current mapset
        (pruebas)
}}}

For r.hants it's of main importance that maps are temporally ordered and
that's why I would prefer to use t.rast.list that orders maps as needed
(instead of g.list, that depending on map names, could give a wrong
order), but as the output includes "@mapset_name", maps are no longer
recognized.

Thanks a lot in advance :slight_smile:

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2790&gt;
GRASS GIS <https://grass.osgeo.org>

#2790: Output of t.rast.list with method=comma and columns=name does not differ
from output with columns=id
-------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.3
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: t.rast.list
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------
Changes (by veroandreo):

* milestone: => 7.0.3

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2790#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#2790: Output of t.rast.list with method=comma and columns=name does not differ
from output with columns=id
-------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: t.rast.list
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------

Comment (by mmetz):

Replying to [ticket:2790 veroandreo]:
> Hi,
>
> When using t.rast.list column=name method=comma,
> both map name and mapset name are printed, so it does not differ from
asking column=id.
>
> {{{
> GRASS 7.1.svn (latlong_wgs84):~ > t.rast.list input=precip_abs
order=start_time columns=name method=comma
>
prec_1@pruebas,prec_2@pruebas,prec_3@pruebas,prec_4@pruebas,prec_5@pruebas,prec_6@pruebas,prec_7@pruebas,prec_8@pruebas,prec_9@pruebas,prec_10@pruebas,prec_11@pruebas,prec_12@pruebas
> GRASS 7.1.svn (latlong_wgs84):~ > t.rast.list input=precip_abs
order=start_time columns=id method=comma
>
prec_1@pruebas,prec_2@pruebas,prec_3@pruebas,prec_4@pruebas,prec_5@pruebas,prec_6@pruebas,prec_7@pruebas,prec_8@pruebas,prec_9@pruebas,prec_10@pruebas,prec_11@pruebas,prec_12@pruebas
> }}}
>
> While several modules (r.colors, r.stats or r.series) can take this as
input, r.hants (from add-ons) gives an error
>
> {{{
> GRASS 7.1.svn (latlong_wgs84):~ > r.hants input=`t.rast.list
input=precip_abs order=start_time columns=name method=comma` nf=2
> base_period=6 fet=10 suffix=_hants
>
> ERROR: Raster map <prec_1@pruebas_hants> is not in the current mapset
> (pruebas)
> }}}
>

The fully qualified input names where used to construct output names.
Fixed for both r.hants and r.series.lwr in r71682.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2790#comment:6&gt;
GRASS GIS <https://grass.osgeo.org>

#2790: Output of t.rast.list with method=comma and columns=name does not differ
from output with columns=id
-------------------------+-------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: t.rast.list
       CPU: x86-64 | Platform: Linux
-------------------------+-------------------------

Comment (by veroandreo):

Thanks for the fix! I tested both r.hants and r.series.lwr and all goes
fine.

I keep this one open, because the output of G7:t.rast.list using
column=name or column=id with method=comma gives the same output
mapname@mapset, while it should be only the map name when column=name is
used.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2790#comment:7&gt;
GRASS GIS <https://grass.osgeo.org>

#2790: Output of t.rast.list with method=comma and columns=name does not differ
from output with columns=id
-------------------------+--------------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.4.1
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: t.rast.list, t.vect.list
       CPU: x86-64 | Platform: Linux
-------------------------+--------------------------------------
Changes (by veroandreo):

* keywords: t.rast.list => t.rast.list, t.vect.list
* milestone: 7.0.7 => 7.4.1

Comment:

This issue also applies to G7:t.vect.list, i.e., the output of:

{{{
t.vect.list input=bushfires_yearly method=comma columns=id
}}}

and

{{{
t.vect.list input=bushfires_yearly method=comma columns=name
}}}

is exactly the same, while indeed the second command should output only
the stvds name without the "@mapsename" part.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2790#comment:9&gt;
GRASS GIS <https://grass.osgeo.org>

#2790: Output of t.rast.list with method=comma and columns=name does not differ
from output with columns=id
-------------------------+--------------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.4.1
Component: Temporal | Version: svn-trunk
Resolution: fixed | Keywords: t.rast.list, t.vect.list
       CPU: x86-64 | Platform: Linux
-------------------------+--------------------------------------
Changes (by lucadelu):

* status: new => closed
* resolution: => fixed

Comment:

In [changeset:"72403" 72403]:
{{{
#!CommitTicketReference repository="" revision="72403"
python temporal: fix #2790
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2790#comment:10&gt;
GRASS GIS <https://grass.osgeo.org>

#2790: Output of t.rast.list with method=comma and columns=name does not differ
from output with columns=id
-------------------------+--------------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: reopened
  Priority: normal | Milestone: 7.4.1
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: t.rast.list, t.vect.list
       CPU: x86-64 | Platform: Linux
-------------------------+--------------------------------------
Changes (by martinl):

* status: closed => reopened
* resolution: fixed =>

Comment:

The milestone is set to 7.4.1. What about backports?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2790#comment:11&gt;
GRASS GIS <https://grass.osgeo.org>

#2790: Output of t.rast.list with method=comma and columns=name does not differ
from output with columns=id
-------------------------+--------------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.4.1
Component: Temporal | Version: svn-trunk
Resolution: fixed | Keywords: t.rast.list, t.vect.list
       CPU: x86-64 | Platform: Linux
-------------------------+--------------------------------------
Changes (by lucadelu):

* status: reopened => closed
* resolution: => fixed

Comment:

backported in r72502 and r72503

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2790#comment:12&gt;
GRASS GIS <https://grass.osgeo.org>