[GRASS-dev] -s flag in temporal modules

Luca Delucchi lucadeluge at gmail.com
Wed Feb 24 04:47:48 PST 2016


On 24 February 2016 at 13:36, Sören Gebbert
<soerengebbert at googlemail.com> wrote:
> Hi Luca,

Hi Soeren,

> thank you for taking care of this. :)

you are welcome, I hope to need it in the near future ;-)

> 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.
>

got another error

Processing cycle 2001-01-01 00:00:00 - 2002-01-01 00:00:00
b_2001-01-01T00.00.00 = if(2001_01_precip > 1 && 2001_01_precip < 10,
0.0, null())
syntax error, unexpected '-', expecting '('
Parse error
ERRORE: parse error
Traceback (most recent call last):
  File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/scripts/t.rast.accdetect",
line 588, in <module>
    main()
  File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/scripts/t.rast.accdetect",
line 316, in main
    maximum_strds, dbif)
  File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/scripts/t.rast.accdetect",
line 567, in compute_occurrence
    grass.mapcalc(expression, overwrite=True)
  File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/script/raster.py",
line 106, in mapcalc
    fatal(_("An error occurred while running r.mapcalc"))
  File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-gnu/etc/python/grass/script/core.py",
line 644, in fatal
    raise ScriptError(msg)
grass.exceptions.ScriptError: Si è verificato un errore durante
l'esecuzione di r.mapcalc

I will replace '-' with '_' in the time suffix

> Best regards
> Soeren
>

-- 
ciao
Luca

www.lucadelu.org


More information about the grass-dev mailing list