[GRASS-user] Aggregating daily maps in relative strds per month

Sören Gebbert soerengebbert at googlemail.com
Mon May 18 11:34:19 PDT 2015


Hi Nikos,
You need to use t.remove to delete the time stamps from the temporal
database. The *.timestamp modules should not be used at all. They are not
connected with the temporal framework.
The error appears because the maps still have relative time stamps in the
temporal database which can not be overwritten with absolute time stamps.

Ciao
Sören
Am 18.05.2015 19:47 schrieb "Nikos Alexandris" <nik at nikosalexandris.net>:

> Nikos Alexandris:
>
> > Having absolute timestamps would make life easier with the
> > fantastic temporal framework. I'll re-do again my workflow and decide
> > upon a year. After all, I did extract the following for a specific year
> > (don't remember which one it was now :-?):
>
> I think it was 2009. So, I am trying to go 'absolute':
>
> # list maps
> g.list raster pattern=global_rad_zero_[0-9][0-9][0-9]
>
> global_rad_zero_001
> ..
> global_rad_zero_365
>
> # erase timestamps
> for Map in `g.list raster pattern=global_rad_zero_[0-9][0-9][0-9]` ;do
> r.timestamp map=${Map} date=none ;done
>
> # create an absolute strds
> t.create out=global_rad_zero title="Clearsky global irradiation"
> description="Clearsky global irradiation on a horizontal surface raster
> maps
> [Wh.m-2.day-1]" --o
>
> # register maps (which have no timestamp!)
> t.register -i input=global_rad_zero maps=`g.list raster
> pattern=global_rad_zero_[0-9][0-9][0-9] sep=,` start="2009-01-01"
> increment='1 days' --o
>
> 0..ERROR: invalid literal for int() with base 10: '2009-01-01'
>
> Why?  Nikos
>
-------------- n�chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150518/3440c694/attachment.html>


More information about the grass-user mailing list