瀏覽代碼

temporal manual: backport of https://trac.osgeo.org/grass/changeset/67571, https://trac.osgeo.org/grass/changeset/67572 (contributed by Vero Andreo)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67573 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 9 年之前
父節點
當前提交
2591f07b5d

+ 0 - 49
temporal/t.rast.aggregate/t.rast.aggregate.html

@@ -164,55 +164,6 @@ weekly_avg_temp_2003_02_07|climate|2003-02-07 00:00:00|2003-02-14 00:00:00
 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 &gt;='${1}-01-01' and end_time &lt; '${2}-01-01'"
-done
-
-t.list
-----------------------------------------------
-Space time raster datasets with absolute time available in mapset &lt;climate&gt;:
-8day_avg_temp_2003@climate
-8day_avg_temp_2004@climate
-daily_temp@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>

+ 4 - 6
temporal/t.rast.algebra/t.rast.algebra.html

@@ -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 @@ int(x)                  convert x to integer [ truncates ]
 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

+ 1 - 1
temporal/t.rast.neighbors/t.rast.neighbors.html

@@ -76,7 +76,7 @@ t.info smooth_tempmean_monthly
  +----------------------------------------------------------------------------+
 
 
-# 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

+ 30 - 8
temporal/t.rast.series/t.rast.series.html

@@ -15,26 +15,48 @@ ordered by <b>start_time</b>.
 
 <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 \
+    method=average output=tempmean_january \
+    where="strftime('%m', start_time)='01'"
+
+# equivalently, we can use 
 t.rast.series input=tempmean_monthly \
-    output=jan_average method=average \
+    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>

+ 1 - 0
temporal/t.register/t.register.html

@@ -187,6 +187,7 @@ prec_7|PERMANENT|2001-07-01 00:00:00|2001-08-01 00:00:00
 <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>