[GRASS-SVN] r46711 - grass-addons/grass7/raster/r.modis/libmodis
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 15 04:25:43 EDT 2011
Author: lucadelu
Date: 2011-06-15 01:25:43 -0700 (Wed, 15 Jun 2011)
New Revision: 46711
Modified:
grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py
Log:
add spectral subset
Modified: grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py
===================================================================
--- grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py 2011-06-15 08:15:22 UTC (rev 46710)
+++ grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py 2011-06-15 08:25:43 UTC (rev 46711)
@@ -23,18 +23,25 @@
urlbase = 'e4ftl01u.ecs.nasa.gov'
usrsnow = 'n4ftl01u.ecs.nasa.gov'
self.prod = value
- self.products = {'lst_aqua_daily':{'url':urlbase,
- 'folder':'MOLA/MYD11A1.005'},'lst_terra_daily':{'url':urlbase,
- 'folder':'MOLT/MOD11A1.005'},'snow_terra_eight':{'url':usrsnow,
- 'folder':'SAN/MOST/MOD10A2.005'}, 'ndvi_terra_sixte':{'url':urlbase,
- 'folder':'MOLT/MOD13Q1.005'} }
+ self.products = {
+ 'lst_aqua_daily':{'url':urlbase,'folder':'MOLA/MYD11A1.005','res':1000,
+ 'spec':'( 1 0 0 0 1 0 0 0 0 0 0 0 )','spec_qa':'( 0 1 0 0 0 1 0 0 0 0 0 0 )'},
+ 'lst_terra_daily':{'url':urlbase,'folder':'MOLT/MOD11A1.005','res':1000,
+ 'spec':'( 1 0 0 0 1 0 0 0 0 0 0 0 )','spec_qa':'( 0 1 0 0 0 1 0 0 0 0 0 0 )'},
+ 'snow_terra_eight':{'url':usrsnow,'folder':'SAN/MOST/MOD10A2.005','res':500,
+ 'spec':'( 1 1 0 0 0 0 0 0 0 0 0 )','spec_qa':'( 0 0 0 0 0 0 0 0 0 0 0 )'},
+ 'ndvi_terra_sixte':{'url':urlbase, 'folder':'MOLT/MOD13Q1.005','res':250,
+ 'spec':'( 1 1 0 0 0 0 0 0 0 0 0 )','spec_qa':'( 0 0 1 1 0 0 0 0 0 0 0 )'}
+ }
def returned(self):
return self.products[self.prod]
def __str__(self):
prod = self.returned()
- string = "url: " + prod['url'] + ", folder: " + prod['folder']
+ string = "url: " + prod['url'] + ", folder: " + prod['folder'] + \
+ ", spectral subset: " + prod['spec'] + ", spectral subset qa:" + \
+ prod['spec_qa']
return string
class resampling:
@@ -65,7 +72,7 @@
datumare supported"""
def __init__(self,value):
self.datum = value
- self.datumlist = {'AGGIUNGERE'}
+ self.datumlist = {'AGGIUNGERE':'AGGIUNGERE'}
def returned(self):
return self.datumlist[self.datum]
More information about the grass-commit
mailing list