<div dir="ltr"><div>Hi Sören, everyone! </div><div><br></div><div>Thanks for the answer! </div><div><br></div><div>Eventually (after having done it in much more "artisanal" manner, of course! :)), I found a way of doing what I wanted by means of "strftime" in a link Anna posted once [1]. </div>
<div><br></div><div>This is more or less what I did, maybe useful for someone else or as examples in manuals:</div>
<div><div><br></div><div>### check maps i was using as inputs</div><div><br></div><div># for a single month</div><div>t.rast.list input=my_strds where="strftime('%m', start_time)='01'"<br></div>
<div><br></div><div># loop for all months</div><div>for i in 01 02 03 04 05 06 07 08 09 10 11 12 ; do </div><div>t.rast.list input=my_strds where="strftime('%m', start_time)='${i}'" > list_${i}</div>
<div>done</div><div><br></div><div>### then, applied the selection in t.rast.series </div><div><br></div><div>t.rast.series input=my_strds method=average output=average_01 \</div><div> where="strftime('%m', start_time)='01'" <br>
</div><div><br></div><div># and loop over for different months and methods </div><div><br></div><div>for i in 01 02 03 04 05 06 07 08 09 10 11 12 ; do <br></div><div>for m in average median stddev range minimum maximum ; do </div>
<div>t.rast.series input=my_strds method=${m} where="strftime('%m', start_time)='${i}'" output=${m}_${i}</div>
<div>done</div><div>done</div></div><div><br></div><div>Best, </div><div>Vero</div><div><br></div><div>[1] <a href="http://courses.ncsu.edu/mea592/common/Assign_GISmdmodel/a_temporal.html" target="_blank">http://courses.ncsu.edu/mea592/common/Assign_GISmdmodel/a_temporal.html</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-25 17:45 GMT-03:00 Sören Gebbert <span dir="ltr"><<a href="mailto:soerengebbert@googlemail.com" target="_blank">soerengebbert@googlemail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Veronica,<br>
sorry for the late response.<br>
<br>
You can use the datetime[1] functionality of sqlite to perform this<br>
task, this should work for Jannuary:<br>
<div class=""><br>
t.rast.list input=cla_null_mayor65 where='start_time >=<br>
</div>datetime(start_time, "start of year") and start_time <=<br>
datetime(start_time, "start of year", "1 month")'<br>
<br>
[1] <a href="https://www.sqlite.org/lang_datefunc.html" target="_blank">https://www.sqlite.org/lang_datefunc.html</a><br>
<br>
Best regards<br>
Soeren<br>
<br>
2014-06-17 20:40 GMT+02:00 Veronica Andreo <<a href="mailto:veroandreo@gmail.com">veroandreo@gmail.com</a>>:<br>
<div><div class="h5">> Hi list!<br>
><br>
> I have a strds with 506 maps that correspond to 8-day composite products (11<br>
> years).<br>
><br>
> I want to get the list of maps where start_month is january, february and so<br>
> on... to use as input in r.series (or t.rast.series), but i'm not finding<br>
> the way to do that...<br>
><br>
> i don't want to aggregate maps by month, i need to use the original maps<br>
> belonging to each month... is there a way to obtain that (aside from<br>
> manually :P)??<br>
><br>
> Till now the only query that has worked in the desired direction is:<br>
><br>
> t.rast.list input=cla_null_mayor65 where="start_time >= '2003-01' and<br>
> start_time <= '2003-02'"<br>
><br>
> cla_null_mayor65_1|clorofila|2003-01-01 00:00:00|2003-01-09 00:00:00<br>
> cla_null_mayor65_2|clorofila|2003-01-09 00:00:00|2003-01-17 00:00:00<br>
> cla_null_mayor65_3|clorofila|2003-01-17 00:00:00|2003-01-25 00:00:00<br>
> cla_null_mayor65_4|clorofila|2003-01-25 00:00:00|2003-02-02 00:00:00<br>
><br>
> but that's only for january 2003... and i would need january 2004, 2005...<br>
> 2013 in the same list... when i add more clauses to the "where" query it<br>
> stops working...<br>
><br>
> What would be the right approach here?<br>
><br>
> THANKS MUCH IN ADVANCE!<br>
><br>
> Best,<br>
> Vero<br>
><br>
</div></div>> _______________________________________________<br>
> grass-user mailing list<br>
> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote></div><br></div>