[GRASS-user] t.rast.aggregate
Sören Gebbert
soerengebbert at googlemail.com
Mon Mar 31 09:05:04 PDT 2014
Hi Veronica,
you can use t.rast.series for this kind of task. Use a SQL expression
to select only specific months of a year. Please try this code
(untested, may contain errors):
# January averages
t.rast.series input=monthly_aggregates \
output=jan_average method=average \
where="start_time = datetime(start_time, 'start_of_year', '0 month')"
# February averages
t.rast.series input=monthly_aggregates \
output=feb_average method=average \
where="start_time = datetime(start_time, 'start_of_year', '1 month')"
# March averages
t.rast.series input=monthly_aggregates \
output=mar_average method=average \
where="start_time = datetime(start_time, 'start_of_year', '2 month')"
...
Best regards
Soeren
2014-03-31 17:43 GMT+02:00 Veronica Andreo <veroandreo at gmail.com>:
> Hi all,
>
> I have this MODIS time series of 8-day composite of chlorophyll
> concentration from 2003 to 2013. I've already aggregated it by month
> (average), so from 506 images I now have 132 (12 x year, 11 years)
>
> but what I need doing now is to aggregate months over the years, what
> i want are 12 summary images (one for each month over the 11 years).
> How do i do that with t.rast.aggregate?
>
> Thanks a lot in advance! And CONGRATULATIONS on GRASS 7 release!! :)
>
> Vero
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
More information about the grass-user
mailing list