[GRASS-dev] [GRASS GIS] #3302: t.rast.algebra: add support for suffix option in output map names

#3302: t.rast.algebra: add support for suffix option in output map names
-------------------------------------------------+-------------------------
Reporter: veroandreo | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.4.0
Component: Temporal | Version: svn-trunk
Keywords: t.rast.algebra, t.rast.mapcalc, | CPU: Unspecified
  suffix |
Platform: Unspecified |
-------------------------------------------------+-------------------------
Currently, G7:t.rast.algebra uses "basename_n" (n=1,2,3...number of maps
in the strds) as naming scheme for output maps. This makes it a bit
difficult to sort them afterwards (#2736), particularly, when one runs
some processing not in the temporal framework on them (hence, the output
maps are not registered into a strds).

It would be great to also have suffix parameter in t.rast.algebra as well
as G7:t.rast.mapcalc, as it is already in G7:t.rast.aggregate with the
possibility to have granularity, time or numerical suffix (with zero
padding). There are comments on this issue in #2294, but the ticket was
for t.rast.aggregate.

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

#3302: t.rast.algebra: add support for suffix option in output map names
-------------------------+-------------------------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: | Status: new
  enhancement |
  Priority: normal | Milestone: 7.4.1
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: t.rast.algebra, t.rast.mapcalc,
       CPU: | suffix
  Unspecified | Platform: Unspecified
-------------------------+-------------------------------------------------
Changes (by veroandreo):

* Attachment "temporal.diff" added.

patch for old grass version to implement suffix

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

#3302: t.rast.algebra: add support for suffix option in output map names
-------------------------+-------------------------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: | Status: new
  enhancement |
  Priority: normal | Milestone: 7.4.1
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: t.rast.algebra, t.rast.mapcalc,
       CPU: | suffix
  Unspecified | Platform: Unspecified
-------------------------+-------------------------------------------------

Comment (by veroandreo):

This was a patch written by Luca some time ago to implement suffix for
G7:t.rast.algebra and G7:t.rast.mapcalc, but there were errors in the
testsuite.

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

#3302: t.rast.algebra: add support for suffix option in output map names
-------------------------+-------------------------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: | Status: new
  enhancement |
  Priority: normal | Milestone: 7.4.1
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: t.rast.algebra, t.rast.mapcalc,
       CPU: | suffix
  Unspecified | Platform: Unspecified
-------------------------+-------------------------------------------------

Comment (by huhabla):

I have implemented the suffix option in t.rast.algebra in grass trunk
revision r72478. Please test.

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

#3302: t.rast.algebra: add support for suffix option in output map names
-------------------------+-------------------------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: | Status: new
  enhancement |
  Priority: normal | Milestone: 7.4.1
Component: Temporal | Version: svn-trunk
Resolution: | Keywords: t.rast.algebra, t.rast.mapcalc,
       CPU: | suffix
  Unspecified | Platform: Unspecified
-------------------------+-------------------------------------------------

Comment (by veroandreo):

YAY!!! Just tested the 3 different suffix in G7:t.rast.algebra and they
work as expected. Thanks! :slight_smile:

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

#3302: t.rast.algebra: add support for suffix option in output map names
-------------------------+-------------------------------------------------
  Reporter: veroandreo | Owner: grass-dev@…
      Type: | Status: closed
  enhancement |
  Priority: normal | Milestone: 7.6.0
Component: Temporal | Version: svn-trunk
Resolution: fixed | Keywords: t.rast.algebra, t.rast.mapcalc,
       CPU: | suffix
  Unspecified | Platform: Unspecified
-------------------------+-------------------------------------------------
Changes (by veroandreo):

* status: new => closed
* resolution: => fixed
* milestone: 7.4.1 => 7.6.0

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