[GRASS-SVN] r70590 - in grass-addons/grass7/raster/r.modis: r.modis.download r.modis.import
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 15 13:39:19 PST 2017
Author: neteler
Date: 2017-02-15 13:39:19 -0800 (Wed, 15 Feb 2017)
New Revision: 70590
Modified:
grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py
grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.html
grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py
Log:
r.modis addon manual: global MODIS NDVI MOD13C1 example added; keywords added
Modified: grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py
===================================================================
--- grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py 2017-02-15 20:43:13 UTC (rev 70589)
+++ grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py 2017-02-15 21:39:19 UTC (rev 70590)
@@ -8,7 +8,7 @@
# PURPOSE: r.in.modis.download is an interface to pyModis for download
# several tiles of MODIS produts from NASA ftp
#
-# COPYRIGHT: (C) 2011 by Luca Delucchi
+# COPYRIGHT: (C) 2011-2017 by Luca Delucchi
#
# This program is free software under the GNU General Public
# License (>=v2). Read the file COPYING that comes with GRASS
@@ -17,9 +17,10 @@
#############################################################################
#%module
-#% description: Download several tiles of MODIS products using pyModis
+#% description: Download single or multiple tiles of MODIS products using pyModis.
#% keyword: raster
#% keyword: import
+#% keyword: MODIS
#%end
#%flag
#% key: d
Modified: grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.html
===================================================================
--- grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.html 2017-02-15 20:43:13 UTC (rev 70589)
+++ grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.html 2017-02-15 21:39:19 UTC (rev 70590)
@@ -36,6 +36,8 @@
<h2>EXAMPLES</h2>
+<h3>General examples</h3>
+
Import of a single file with all the subsets (QA layers included) using GDAL:
<div class="code"><pre>
@@ -81,6 +83,29 @@
r.modis.import -wq files=/path/to/listfile spectral="( 1 )"
</pre></div>
+<h3>Import of global MODIS NDVI data</h3>
+
+The MOD13C1 is a global NDVI/EVI 16 days map product which can be downloaded
+and imported as follows in a latitude-longitude GRASS GIS location:
+
+<div class="code"><pre>
+# download the two years worth of data
+r.modis.download settings=~/.rmodis product=ndvi_terra_sixteen_5600 \
+ startday=2015-01-01 endday=2016-12-31 folder=$USER/data/ndvi_MOD13C1.006
+# import band 1 = NDVI
+r.modis.import files=$USER/data/ndvi_MOD13C1.006/listfileMOD13C1.006.txt spectral="( 1 )" method=bilinear -w
+# create empty temporal DB
+t.create type=strds temporaltype=absolute output=ndvi_16_5600m title="Global NDVI 16 days MOD13C1" \
+ description="MOD13C1 Global NDVI 16 days" semantictype=mean
+# register datasets (tempfile name is provided by r.modis.import -w
+t.register input=ndvi_16_5600m file=$USER/tmp/grass7-user-5370/tmp_rGPcg
+
+# verify and visualize timeline
+t.rast.list ndvi_16_5600m
+g.gui.timeline ndvi_16_5600m
+</pre></div>
+
+
<h2>SEE ALSO</h2>
<em>
Modified: grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py
===================================================================
--- grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py 2017-02-15 20:43:13 UTC (rev 70589)
+++ grass-addons/grass7/raster/r.modis/r.modis.import/r.modis.import.py 2017-02-15 21:39:19 UTC (rev 70590)
@@ -8,7 +8,7 @@
# PURPOSE: r.modis.import is an interface to pyModis for import into
# GRASS GIS level 3 MODIS produts
#
-# COPYRIGHT: (C) 2011 by Luca Delucchi
+# COPYRIGHT: (C) 2011-2017 by Luca Delucchi
#
# This program is free software under the GNU General Public
# License (>=v2). Read the file COPYING that comes with GRASS
@@ -22,8 +22,9 @@
#############################################################################
#%module
-#% description: Import single or multiple tiles of MODIS products using pyModis
+#% description: Import single or multiple tiles of MODIS products using pyModis.
#% keyword: raster
+#% keyword: import
#% keyword: MODIS
#%end
#%flag
More information about the grass-commit
mailing list