test.t.rast.aggregate.ds stderr

+ export GRASS_OVERWRITE=1
+ g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
+ r.mapcalc expr=prec_1 = 100
+ r.mapcalc expr=prec_2 = 150
+ r.mapcalc expr=prec_3 = 250
+ r.mapcalc expr=prec_4 = 250
+ r.mapcalc expr=prec_5 = 150
+ r.mapcalc expr=prec_6 = 100
+ v.random -z output=soil_1 n=20 zmin=0 zmax=100 column=height
Default driver / database set to:
driver: sqlite
database: $GISDBASE/$LOCATION_NAME/$MAPSET/sqlite/sqlite.db
Generating points...
0..5..10..15..20..25..30..35..40..45..50..55..60..65..70..75..80..85..90..95..100
Building topology for vector map <soil_1@__temporal_t_rast_aggregate_ds_test.t.rast.aggregate.ds>...
Registering primitives...

20 primitives registered
20 vertices registered
Building areas...
0..5..10..15..20..25..30..35..40..45..50..55..60..65..70..75..80..85..90..95..100
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
5..10..15..20..25..30..35..40..45..50..55..60..65..70..75..80..85..90..95..100
Number of nodes: 0
Number of primitives: 20
Number of points: 20
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
+ v.random -z output=soil_2 n=20 zmin=0 zmax=100 column=height
Generating points...
0..5..10..15..20..25..30..35..40..45..50..55..60..65..70..75..80..85..90..95..100
Building topology for vector map <soil_2@__temporal_t_rast_aggregate_ds_test.t.rast.aggregate.ds>...
Registering primitives...

20 primitives registered
20 vertices registered
Building areas...
0..5..10..15..20..25..30..35..40..45..50..55..60..65..70..75..80..85..90..95..100
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
5..10..15..20..25..30..35..40..45..50..55..60..65..70..75..80..85..90..95..100
Number of nodes: 0
Number of primitives: 20
Number of points: 20
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
+ v.random -z output=soil_3 n=20 zmin=0 zmax=100 column=height
Generating points...
0..5..10..15..20..25..30..35..40..45..50..55..60..65..70..75..80..85..90..95..100
Building topology for vector map <soil_3@__temporal_t_rast_aggregate_ds_test.t.rast.aggregate.ds>...
Registering primitives...

20 primitives registered
20 vertices registered
Building areas...
0..5..10..15..20..25..30..35..40..45..50..55..60..65..70..75..80..85..90..95..100
0 areas built
0 isles built
Attaching islands...
Attaching centroids...
5..10..15..20..25..30..35..40..45..50..55..60..65..70..75..80..85..90..95..100
Number of nodes: 0
Number of primitives: 20
Number of points: 20
Number of lines: 0
Number of boundaries: 0
Number of centroids: 0
Number of areas: 0
Number of isles: 0
+ g.tempfile pid=1 -d
+ n1=/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_aggregate_ds_test.t.rast.aggregate.ds/.tmp/fatra/1.0
+ cat
+ t.create type=stvds temporaltype=absolute output=soil_abs1 title=A test descr=A test
Default TGIS driver / database set to:
driver: sqlite
database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db
WARNING: Temporal database connection defined as:
/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_aggregate_ds_test.t.rast.aggregate.ds/tgis/sqlite.db
But database file does not exist.
Creating temporal database: /grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_aggregate_ds_test.t.rast.aggregate.ds/tgis/sqlite.db
+ t.register type=vector input=soil_abs1 file=/grassdata/tests-grassdata/piemonte_utm32_wgs84_grass7/__temporal_t_rast_aggregate_ds_test.t.rast.aggregate.ds/.tmp/fatra/1.0
Gathering map information...
0..100
Registering maps in the temporal database...
Registering maps in the space time dataset...
0..Updating space time dataset...
100
+ t.create type=strds temporaltype=absolute output=precip_abs1 title=A test descr=A test
+ t.register -i type=raster input=precip_abs1 maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6 start=2001-03-01 00:00:00 increment=1 months
Gathering map information...
0..100
Registering maps in the temporal database...
Registering maps in the space time dataset...
0..Updating space time dataset...
100
+ t.rast.aggregate.ds --v input=precip_abs1 output=precip_abs2 base=prec_sum type=stvds sample=soil_abs1 method=sum sampling=contains offset=33
0..Aggregating 1 raster maps from 2001-01-01 00:00:00 to 2001-04-01 00:00:00
33..Aggregating 2 raster maps from 2001-05-01 00:00:00 to 2001-07-01 00:00:00
66..Aggregating 1 raster maps from 2001-08-01 00:00:00 to 2001-12-01 00:00:00
100
Creating a new space time raster dataset
Gathering map information...
0..100
Registering maps in the temporal database...
Registering maps in the space time dataset...
0..Updating space time dataset...
Update metadata, spatial and temporal extent from all registered maps of <precip_abs2@__temporal_t_rast_aggregate_ds_test.t.rast.aggregate.ds>
100
+ t.info type=strds input=precip_abs2
+ t.rast.list input=precip_abs2 method=deltagap
+ t.rast.aggregate.ds --v input=precip_abs1 output=precip_abs2 base=prec_sum type=stvds sample=soil_abs1 method=sum sampling=contains -ns

Description:
 Aggregates data of an existing space time raster dataset using the time intervals of a second space time dataset.

Keywords:
 temporal, aggregation, raster, time

Usage:
 t.rast.aggregate.ds [-n] input=name sample=name [type=name]
   output=name basename=string [suffix=string] method=string
   [offset=value] [nprocs=value] [sampling=name[,name,...]]
   [where=sql_query] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:
  -n   Register Null maps
 --o   Allow output files to overwrite existing files
 --h   Print usage summary
 --v   Verbose module output
 --q   Quiet module output
 --ui  Force launching GUI dialog

Parameters:
     input   Name of the input space time raster dataset
    sample   Time intervals from this space time dataset (raster, vector or raster3d) are used for aggregation computation
      type   Type of the aggregation space time dataset
             options: strds,stvds,str3ds
             default: strds
    output   Name of the output space time raster dataset
  basename   Basename of the new generated output maps
              A numerical suffix separated by an underscore will be attached to create a unique identifier
    suffix   Suffix to add at basename: set 'gran' for granularity, 'time' for the full time format, 'num' for numerical suffix with a specific number of digits (default %05)
             default: gran
    method   Aggregate operation to be performed on the raster maps
             options: average,count,median,mode,minimum,min_raster,maximum,
                      max_raster,stddev,range,sum,variance,diversity,slope,
                      offset,detcoeff,quart1,quart3,perc90,quantile,skewness,
                      kurtosis
             default: average
    offset   Offset that is used to create the output map ids, output map id is generated as: basename_ (count + offset)
             default: 0
    nprocs   Number of r.mapcalc processes to run in parallel
             default: 1
  sampling   The method to be used for sampling the input dataset
             options: equal,overlaps,overlapped,starts,started,finishes,
                      finished,during,contains
             default: contains
     where   WHERE conditions of SQL statement without 'where' keyword used in the temporal GIS framework
              Example: start_time > '2001-01-01 12:30:00'

ERROR: t.rast.aggregate.ds: Sorry, <s> is not a valid flag