[GRASS-dev] Invalid timestamp file for raster

Markus Neteler neteler at osgeo.org
Mon Oct 23 09:51:14 PDT 2017


On Mon, Oct 23, 2017 at 6:41 PM, Nikos Alexandris
<nik at nikosalexandris.net> wrote:
>
> This
>
> r.timestamp B1 date='13 apr 2013 10:00:09.935626' && r.timestamp B1
> WARNING: Invalid timestamp file for raster map <B1@>
>
> does not work. Why?


GRASS 7.2.3svn (nc_spm_08_grass7):~ > r.mapcalc "B1 = 2"
 100%
GRASS 7.2.3svn (nc_spm_08_grass7):~ >  r.timestamp B1 date='13 apr
2013 10:00:09.935626' && r.timestamp B1
WARNING: Invalid timestamp file for raster map <B1@>

The error message is in lib/gis/timestamp.c, line 301. With debug:


GRASS 7.2.3svn (nc_spm_08_grass7):~ >  r.timestamp B1 date='13 apr
2013 10:00:09.935626'
GRASS 7.2.3svn (nc_spm_08_grass7):~ >  r.timestamp B1
WARNING: Invalid timestamp file for raster map <B1@>
GRASS 7.2.3svn (nc_spm_08_grass7):~ > g.gisenv set=DEBUG=1
D1/1: G_set_program_name(): g.gisenv
GRASS 7.2.3svn (nc_spm_08_grass7):~ >  r.timestamp B1
D1/1: G_set_program_name(): r.timestamp
D1/1: G_find_raster(): name=B1 mapset=
WARNING: Invalid timestamp file for raster map <B1@>
D1/1: G_set_program_name(): g.gisenv



> The following do work:
>
> r.timestamp B1 date='13 apr 2013 10:00:19.935626' && r.timestamp B1
> 13 Apr 2013 10:00:19.935626

GRASS 7.2.3svn (nc_spm_08_grass7):~ >  r.timestamp B1 date='13 apr
2013 10:00:19.935626' && r.timestamp B1
D1/1: G_set_program_name(): r.timestamp
D1/1: G_find_raster(): name=B1 mapset=user1
D1/1: G_set_program_name(): r.timestamp
D1/1: G_find_raster(): name=B1 mapset=
13 Apr 2013 10:00:19.935626
D1/1: G_set_program_name(): g.gisenv

There is apparently a parsing bug in 10:00:0x  <<-- 0x (while 1x etc work).
?


Markus


More information about the grass-dev mailing list