[GRASS-SVN] r70572 - in grass-addons/grass7/raster/r.modis: libmodis r.modis.download

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 14 15:49:37 PST 2017


Author: neteler
Date: 2017-02-14 15:49:37 -0800 (Tue, 14 Feb 2017)
New Revision: 70572

Modified:
   grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py
   grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.html
   grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py
Log:
r.modis addon: added support for MOD13C1 global product

Modified: grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py
===================================================================
--- grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py	2017-02-14 23:17:12 UTC (rev 70571)
+++ grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py	2017-02-14 23:49:37 UTC (rev 70572)
@@ -82,6 +82,8 @@
                        '.500m_16_days_EVI': '.500m_16_days_VI_Quality'}
         vi1km_suff = {'.1_km_16_days_NDVI': '.1_km_16_days_VI_Quality',
                       '.1_km_16_days_EVI': '.1_km_16_days_VI_Quality'}
+        vi6km_suff = {'.5600m_16_days_NDVI': '.5600m_16_days_VI_Quality',
+                      '.5600m_16_days_EVI': '.5600m_16_days_VI_Quality'}
         # values of snow product:
         snow1_spec = ('( 1 )')
         snow1_specqa = ('( 1 1 )')
@@ -169,6 +171,16 @@
                                          'prod': 'MYD13A2.006',
                                          'spec': vi_spec, 'spec_qa': vi_specqa,
                                          'suff': vi1km_suff, 'res': 1000,
+                                         'color': vi_color, 'days': sixteen},
+              'ndvi_terra_sixteen_5600': {'url': urlbase, 'folder': 'MOLT/',
+                                          'prod': 'MOD13C1.006',
+                                          'spec': vi_spec, 'spec_qa': vi_specqa,
+                                          'suff': vi6km_suff, 'res': 5600,
+                                          'color': vi_color, 'days': sixteen},
+              'ndvi_aqua_sixteen_5600': {'url': urlbase, 'folder': 'MOLA/',
+                                         'prod': 'MOD13C1.006',
+                                         'spec': vi_spec, 'spec_qa': vi_specqa,
+                                         'suff': vi6km_suff, 'res': 5600,
                                          'color': vi_color, 'days': sixteen}
               }
         surf_refl = {'surfreflec_terra_eight_500': {'url': urlbase,

Modified: grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.html
===================================================================
--- grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.html	2017-02-14 23:17:12 UTC (rev 70571)
+++ grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.html	2017-02-14 23:49:37 UTC (rev 70572)
@@ -77,7 +77,7 @@
 </pre></div>
 
 <p>
-Download of a different product (for example <em>Snow eight days 500 m</em>),
+Download of a different product (here: <em>Snow eight days 500 m</em>),
 default options:
 
 <div class="code"><pre>
@@ -85,6 +85,15 @@
 </pre></div>
 
 <p>
+Download of a global MODIS product (here: <em>MOD13C1 - MODIS/Terra Vegetation Indices
+16-Day L3 Global 0.05Deg CMG V006</em>), of a specific month:
+
+<div class="code"><pre>
+# note: provided in Geographic Lat/Long Grid
+r.modis.download settings=$HOME/.grass7/r.modis/SETTING product=ndvi_terra_sixteen_5600 startday=2011-05-01 endday=2011-05-31
+</pre></div>
+
+<p>
 To use <em>r.modis.download</em> in a script and to concatenate it with another module,
 the user needs to set the <em>-g</em> flag to return the name of the file that
 contains the list of downloaded HDF files:

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-14 23:17:12 UTC (rev 70571)
+++ grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py	2017-02-14 23:49:37 UTC (rev 70572)
@@ -49,7 +49,7 @@
 #% label: Name of MODIS product(s)
 #% multiple: yes
 #% required: no
-#% options: lst_terra_daily_1000, lst_aqua_daily_1000, lst_terra_eight_1000, lst_aqua_eight_1000, lst_terra_daily_6000, lst_aqua_daily_6000, ndvi_terra_sixteen_250, ndvi_aqua_sixteen_250, ndvi_terra_sixteen_500, ndvi_aqua_sixteen_500, ndvi_terra_sixteen_1000, ndvi_aqua_sixteen_1000, snow_terra_daily_500, snow_aqua_daily_500, snow_terra_eight_500, snow_aqua_eight_500, surfreflec_terra_daily_500, surfreflec_aqua_daily_500, surfreflec_terra_eight_500, surfreflec_aqua_eight_500, water_terra_250
+#% options: lst_terra_daily_1000, lst_aqua_daily_1000, lst_terra_eight_1000, lst_aqua_eight_1000, lst_terra_daily_6000, lst_aqua_daily_6000, ndvi_terra_sixteen_250, ndvi_aqua_sixteen_250, ndvi_terra_sixteen_500, ndvi_aqua_sixteen_500, ndvi_terra_sixteen_1000, ndvi_aqua_sixteen_1000, ndvi_terra_sixteen_5600, ndvi_aqua_sixteen_5600, snow_terra_daily_500, snow_aqua_daily_500, snow_terra_eight_500, snow_aqua_eight_500, surfreflec_terra_daily_500, surfreflec_aqua_daily_500, surfreflec_terra_eight_500, surfreflec_aqua_eight_500, water_terra_250
 #% answer: lst_terra_daily_1000
 #%end
 #%option



More information about the grass-commit mailing list