[GRASS-SVN] r48601 - grass-addons/grass7/raster/r.modis/libmodis

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 2 17:56:46 EDT 2011


Author: lucadelu
Date: 2011-10-02 14:56:46 -0700 (Sun, 02 Oct 2011)
New Revision: 48601

Modified:
   grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py
Log:
test to fix a bug point out by an user

Modified: grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py
===================================================================
--- grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py	2011-10-02 21:35:49 UTC (rev 48600)
+++ grass-addons/grass7/raster/r.modis/libmodis/rmodislib.py	2011-10-02 21:56:46 UTC (rev 48601)
@@ -241,7 +241,10 @@
     def __init__(self):
         self.proj = get_proj()
         self.val = self.proj['proj']
-        self.dat = self.proj['datum']
+        if self.proj['datum']:
+            self.dat = self.proj['datum']
+        else:
+            self.dat = 'none'
         self.projections = {'laea' : 'LA','ll':'GEO', 'lcc':'LCC',
              'merc':'MERCAT', 'polar':'PS', 'utm':'UTM', 'tmerc':'TM'}
         self.datumlist = {'none':'NONE', 'nad27':'NAD27', 'nad83':'NAD83', 



More information about the grass-commit mailing list