[GRASS-SVN] r74453 - grass-addons/grass7/imagery/i.modis/libmodis
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu May 2 04:11:42 PDT 2019
Author: lucadelu
Date: 2019-05-02 04:11:42 -0700 (Thu, 02 May 2019)
New Revision: 74453
Modified:
grass-addons/grass7/imagery/i.modis/libmodis/rmodislib.py
Log:
r.modis: try to fix error in rmodislib
Modified: grass-addons/grass7/imagery/i.modis/libmodis/rmodislib.py
===================================================================
--- grass-addons/grass7/imagery/i.modis/libmodis/rmodislib.py 2019-05-02 10:33:48 UTC (rev 74452)
+++ grass-addons/grass7/imagery/i.modis/libmodis/rmodislib.py 2019-05-02 11:11:42 UTC (rev 74453)
@@ -34,9 +34,15 @@
gproj = grass.read_command('g.proj', flags=flag)
if flag == 'p':
listproj = gproj.split('\n')
- listproj.remove('-PROJ_INFO-------------------------------------------------')
- listproj.remove('-PROJ_UNITS------------------------------------------------')
try:
+ listproj.remove('-PROJ_INFO-------------------------------------------------')
+ except Exception:
+ pass
+ try:
+ listproj.remove('-PROJ_UNITS------------------------------------------------')
+ except Exception:
+ pass
+ try:
listproj.remove('-PROJ_EPSG-------------------------------------------------')
except Exception:
pass
@@ -76,7 +82,7 @@
vi_spec = '( 1 1 0 0 0 0 0 0 0 0 0 0 )'
vi_specqa = '( 1 1 1 0 0 0 0 0 0 0 0 1 )'
vi_5600m_spec = '( 1 1 0 0 0 0 0 0 0 0 0 0 0 )'
- vi_5600m_specqa = '( 1 1 1 0 0 0 0 0 0 0 0 0 1 )'
+ vi_5600m_specqa = '( 1 1 1 0 0 0 0 0 0 0 0 0 1 )'
vi_color = ['ndvi', 'evi']
vi250m_suff = {'.250m_16_days_NDVI': '.250m_16_days_VI_Quality',
'.250m_16_days_EVI': '.250m_16_days_VI_Quality'}
More information about the grass-commit
mailing list