[GRASS-dev] -s flag in temporal modules

Sören Gebbert soerengebbert at googlemail.com
Wed Feb 24 04:36:25 PST 2016


Hi Luca,
thank you for taking care of this. :)
Indeed, a colon ":" must be avoided in map names, since the layer of
vector maps are identified this way (time stamped tables).
I think your suggestion of using 2001-01-01T00.00.00 is a good solution.

Best regards
Soeren

2016-02-24 12:25 GMT+01:00 Luca Delucchi <lucadeluge at gmail.com>:
> On 23 February 2016 at 17:59, Sören Gebbert
> <soerengebbert at googlemail.com> wrote:
>> Hi,
>
> Hi,
>
>>
>> I would like to suggest that we do not use a flag for suffix
>> specification, but instead an option for this purpose. Like "suffix"?
>>
>
> I started with t.rast.accdetect, mostly working but
>
>> The suffix option will specify which type should be created:
>> * time with full format (time)  2001-01-01T00:00:00
>
> this is not working, it is returning this problem
>
> t.rast.accdetect input=precip_sum at climate_2000_2012 occurrence=B
> start='2001-01-01' stop='2008-12-31' cycle='12 months' basename=b
> range=1,10 suffix=time
> 12
> Processing cycle 2001-01-01 00:00:00 - 2002-01-01 00:00:00
> Traceback (most recent call last):
>   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/scripts/t.rast.accdetect",
> line 589, in <module>
>     main()
>   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/scripts/t.rast.accdetect",
> line 317, in main
>     maximum_strds, dbif)
>   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/scripts/t.rast.accdetect",
> line 531, in compute_occurrence
>     occurrence_map_id = map.build_id(occurrence_map_name, mapset)
>   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/temporal/abstract_map_dataset.py",
> line 174, in build_id
>     name, layer = name.split(":")
> ValueError: too many values to unpack
>
> maybe should be enouh to change time format using 2001-01-01T00.00.00
> or something similar?
>
> --
> ciao
> Luca
>
> http://gis.cri.fmach.it/delucchi/
> www.lucadelu.org


More information about the grass-dev mailing list