[GRASS-dev] [GRASS GIS] #3068: Raise a warning/error when where parameter is not correctly set

GRASS GIS trac at osgeo.org
Sat Jun 18 12:33:18 PDT 2016


#3068: Raise a warning/error when where parameter is not correctly set
-------------------------+-------------------------
 Reporter:  veroandreo   |      Owner:  grass-dev@…
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  7.3.0
Component:  Temporal     |    Version:  svn-trunk
 Keywords:  where        |        CPU:  Unspecified
 Platform:  Linux        |
-------------------------+-------------------------
 I have a set of 16 years of MODIS data starting on February 18, 2000. My
 intention was to aggregate data seasonally (3 months granularity), but as
 start is shifted, I wanted aggregation to start from April 1st. This was
 my command:

 {{{
 t.rast.aggregate --o input=${var}_${tile} method=average \
 output=${var}_${tile}_seasonal_average \
 basename=${var}_${tile}_seasonal_average \
 suffix=gran where="start_time >= 2000-04-01 00:00:00" \
 granularity="3 months"
 }}}

 I forgot to write 'single quotes' around the date. Therefore, the where
 parameter was ignored and all my seasons shifted and I had to
 run all over again.

 Would that be possible to check if the where clause is "well-written" and
 raise an error/warning if it is not??

 Thanks so much in advance!

 ps: I guess I will double check for single quotes tons of times from now
 on

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3068>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list