[GRASS-dev] -s flag in temporal modules

Sören Gebbert soerengebbert at googlemail.com
Tue Feb 23 08:59:06 PST 2016


Hi,
the "-s" flag is in use by many temporal modules for different
purposes in grass71.
Only the aggregation modules use "-s" flag to signal the usage of
start time as suffix for basename creation.
We should not change all the modules that make use of the flag "-s"
for column name suppression or spatial topology activation.

I would like to suggest that we do not use a flag for suffix
specification, but instead an option for this purpose. Like "suffix"?

The suffix option will specify which type should be created:
* time with full format (time)  2001-01-01T00:00:00
* time depending on the granularity (gran) 2001 or 2001-01 or 2001-01-01 ...
* numerical suffix with a specific number of digits (num + %05, ...)
"_0001" or "_01"

Parameter for the option suffix: "time","num","gran" and C format
specification like "%05" or "%03" in addition to num.

What do you think?

Best regards
Soeren



2016-02-19 14:31 GMT+01:00 Luca Delucchi <lucadeluge at gmail.com>:
> Hi devs,
>
> according to this ticket [0] Soeren added the -s flag to
> t.rast.aggregate and t.rast.aggregate.ds, I would like to extend (I
> already started) this flag to all the temporal modules using basename
> option. I discovered that -s flag is used in other modules for other
> meanings.
> In grass70 the only modules with basename and -s are t.rast*.mapcalc
> (-s is used also by t.sample). In grass71 several other modules are
> using -s.
> I would like to standardize the -s for the "start time" and also the
> other flags in the temporal modules.
>
> I would like to modify trunk and release the new flags only in the
> next major release, what do you think?
>
> [0] https://trac.osgeo.org/grass/ticket/2294
>
> --
> ciao
> Luca
>
> http://gis.cri.fmach.it/delucchi/
> www.lucadelu.org
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list