[GRASS-SVN] r67573 - in grass/branches/releasebranch_7_0/temporal: t.rast.aggregate t.rast.algebra t.rast.neighbors t.rast.series t.register

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 12 15:30:14 PST 2016


Author: neteler
Date: 2016-01-12 15:30:14 -0800 (Tue, 12 Jan 2016)
New Revision: 67573

Modified:
   grass/branches/releasebranch_7_0/temporal/t.rast.aggregate/t.rast.aggregate.html
   grass/branches/releasebranch_7_0/temporal/t.rast.algebra/t.rast.algebra.html
   grass/branches/releasebranch_7_0/temporal/t.rast.neighbors/t.rast.neighbors.html
   grass/branches/releasebranch_7_0/temporal/t.rast.series/t.rast.series.html
   grass/branches/releasebranch_7_0/temporal/t.register/t.register.html
Log:
temporal manual: backport of r67571, r67572 (contributed by Vero Andreo)

Modified: grass/branches/releasebranch_7_0/temporal/t.rast.aggregate/t.rast.aggregate.html
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.aggregate/t.rast.aggregate.html	2016-01-12 23:28:48 UTC (rev 67572)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.aggregate/t.rast.aggregate.html	2016-01-12 23:30:14 UTC (rev 67573)
@@ -164,55 +164,6 @@
 weekly_avg_temp_2003_02_14|climate|2003-02-14 00:00:00|2003-02-21 00:00:00
 </pre></div>
 
-
-<h4>8-day aggregation</h4>
-
-This "eight-day week" is used for some MODIS satellite sensor products:
-
-<div class="code"><pre>
-t.rast.aggregate -s input=daily_temp output=8day_avg_temp \
-  basename=8day_avg_temp method=average granularity="8 days"
-
-t.rast.list 8day_avg_temp
-name|mapset|start_time|end_time
-8day_avg_temp_2003_01_01|climate|2003-01-01 00:00:00|2003-01-09 00:00:00
-8day_avg_temp_2003_01_09|climate|2003-01-09 00:00:00|2003-01-17 00:00:00
-8day_avg_temp_2003_01_17|climate|2003-01-17 00:00:00|2003-01-25 00:00:00
-8day_avg_temp_2003_01_25|climate|2003-01-25 00:00:00|2003-02-02 00:00:00
-8day_avg_temp_2003_02_02|climate|2003-02-02 00:00:00|2003-02-10 00:00:00
-8day_avg_temp_2003_02_10|climate|2003-02-10 00:00:00|2003-02-18 00:00:00
-
-# Note that to make this aggregation comparable with 8day MODIS products,
-# for example, you should loop over years, and maybe merge resulting strds
-# afterwards
-
-for YEAR in "2003 2004" "2004 2005" "2005 2006"; do
-    set -- $YEAR ; echo $1 $2
-    t.rast.aggregate -s input=daily_temp output=8day_avg_temp_${1} \
-      basename=8day_avg_temp method=average granularity="8 days" \
-      where="start_time >='${1}-01-01' and end_time < '${2}-01-01'"
-done
-
-t.list
-----------------------------------------------
-Space time raster datasets with absolute time available in mapset <climate>:
-8day_avg_temp_2003 at climate
-8day_avg_temp_2004 at climate
-daily_temp at climate
-
-t.rast.list 8day_avg_temp_2003
-name|mapset|start_time|end_time
-8day_avg_temp_2003_01_01|climate|2003-01-01 00:00:00|2003-01-09 00:00:00
-8day_avg_temp_2003_01_09|climate|2003-01-09 00:00:00|2003-01-17 00:00:00
-8day_avg_temp_2003_01_17|climate|2003-01-17 00:00:00|2003-01-25 00:00:00
-8day_avg_temp_2003_01_25|climate|2003-01-25 00:00:00|2003-02-02 00:00:00
-...
-8day_avg_temp_2003_12_03|climate|2003-12-03 00:00:00|2003-12-11 00:00:00
-8day_avg_temp_2003_12_11|climate|2003-12-11 00:00:00|2003-12-19 00:00:00
-8day_avg_temp_2003_12_19|climate|2003-12-19 00:00:00|2003-12-27 00:00:00
-8day_avg_temp_2003_12_27|climate|2003-12-27 00:00:00|2004-01-04 00:00:00
-</pre></div>
-
 <h4>Monthly aggregation</h4>
 
 <div class="code"><pre>

Modified: grass/branches/releasebranch_7_0/temporal/t.rast.algebra/t.rast.algebra.html
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.algebra/t.rast.algebra.html	2016-01-12 23:28:48 UTC (rev 67572)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.algebra/t.rast.algebra.html	2016-01-12 23:30:14 UTC (rev 67573)
@@ -1,7 +1,7 @@
 <h2>DESCRIPTION</h2>
 
-t.rast.algebra performs temporal and spatial map algebra operations on space time raster datasets (STRDS)
-by using the temporal raster algebra.
+t.rast.algebra performs temporal and spatial map algebra operations on
+space time raster datasets (STRDS) by using the temporal raster algebra.
 
 <h3>PROGRAM USE</h3>
 The module expects an <b>expression</b> as input parameter in the following form: <p>
@@ -331,10 +331,8 @@
 log(x)                  natural log of x
 sqrt(x)                 square root of x
 tan(x)                  tangent of x (x is in degrees)
-round(x)		            round x to nearest integer
-sin(x)			            sine of x (x is in degrees)
-sqrt(x)			            square root of x
-tan(x)			            tangent of x (x is in degrees)
+round(x)		round x to nearest integer
+sin(x)			sine of x (x is in degrees)
 isnull(x)               check if x = NULL
 isntnull(x)             check if x is not NULL
 null                    set null value

Modified: grass/branches/releasebranch_7_0/temporal/t.rast.neighbors/t.rast.neighbors.html
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.neighbors/t.rast.neighbors.html	2016-01-12 23:28:48 UTC (rev 67572)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.neighbors/t.rast.neighbors.html	2016-01-12 23:30:14 UTC (rev 67573)
@@ -76,7 +76,7 @@
  +----------------------------------------------------------------------------+
 
 
-# new now compare the values between original data and the smoothed one
+# now compare the values between original data and the smoothed one
 t.rast.list input=smooth_tempmean_monthly columns=name,start_time,min,max
 
 t.rast.list input=smooth_tempmean_monthly columns=name,start_time,min,max

Modified: grass/branches/releasebranch_7_0/temporal/t.rast.series/t.rast.series.html
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.rast.series/t.rast.series.html	2016-01-12 23:28:48 UTC (rev 67572)
+++ grass/branches/releasebranch_7_0/temporal/t.rast.series/t.rast.series.html	2016-01-12 23:30:14 UTC (rev 67573)
@@ -15,26 +15,48 @@
 
 <h2>EXAMPLE</h2>
 
-Example for monthly aggregation with complex <b>where</b> statements
-to aggregate a single month in a time series of several years:
+Estimate average temperature for the whole time series
 
 <div class="code"><pre>
-# January averages
+t.rast.series input=tempmean_monthly output=tempmean_general method=average
+</pre></div>
+
+Estimate average temperature for all January maps in the time series, the 
+so-called climatology
+
+<div class="code"><pre>
 t.rast.series input=tempmean_monthly \
-    output=jan_average method=average \
+    method=average output=tempmean_january \
+    where="strftime('%m', start_time)='01'"
+
+# equivalently, we can use 
+t.rast.series input=tempmean_monthly \
+    output=tempmean_january method=average \
     where="start_time = datetime(start_time, 'start of year', '0 month')"
 
-# February averages
+# if we want also February and March averages
+
 t.rast.series input=tempmean_monthly \
-    output=feb_average method=average \
+    output=tempmean_february method=average \
     where="start_time = datetime(start_time, 'start of year', '1 month')"
 
-# March averages
 t.rast.series input=tempmean_monthly \
-    output=mar_average method=average \
+    output=tempmean_march method=average \
     where="start_time = datetime(start_time, 'start of year', '2 month')"
 </pre></div>
 
+Generalizing a bit, we can estimate monthly climatologies for all months 
+by means of different methods
+
+<div class="code"><pre>
+for i in `seq -w 1 12` ; do 
+  for m in average stddev minimum maximum ; do 
+    t.rast.series input=tempmean_monthly method=${m} output=tempmean_${m}_${i} \
+    where="strftime('%m', start_time)='${i}'"
+  done
+done
+</pre></div>
+
 <h2>SEE ALSO</h2>
 
 <em>

Modified: grass/branches/releasebranch_7_0/temporal/t.register/t.register.html
===================================================================
--- grass/branches/releasebranch_7_0/temporal/t.register/t.register.html	2016-01-12 23:28:48 UTC (rev 67572)
+++ grass/branches/releasebranch_7_0/temporal/t.register/t.register.html	2016-01-12 23:30:14 UTC (rev 67573)
@@ -187,6 +187,7 @@
 <em>
 <a href="t.create.html">t.create</a>,
 <a href="t.info.html">t.info</a>
+<a href="https://grasswiki.osgeo.org/wiki/Temporal_data_processing/maps_registration">Maps registration examples in Temporal data processing Wiki</a>
 </em>
 
 <h2>AUTHOR</h2>



More information about the grass-commit mailing list