[GRASS-SVN] r73762 - grass-addons/grass7/imagery/i.sentinel/i.sentinel.preproc

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 5 01:49:30 PST 2018


Author: mlennert
Date: 2018-12-05 01:49:30 -0800 (Wed, 05 Dec 2018)
New Revision: 73762

Modified:
   grass-addons/grass7/imagery/i.sentinel/i.sentinel.preproc/i.sentinel.preproc.py
Log:
i.sentinel.preproc: correct inverted < / > in comparison with negative numbers

Modified: grass-addons/grass7/imagery/i.sentinel/i.sentinel.preproc/i.sentinel.preproc.py
===================================================================
--- grass-addons/grass7/imagery/i.sentinel/i.sentinel.preproc/i.sentinel.preproc.py	2018-12-05 08:29:15 UTC (rev 73761)
+++ grass-addons/grass7/imagery/i.sentinel/i.sentinel.preproc/i.sentinel.preproc.py	2018-12-05 09:49:30 UTC (rev 73762)
@@ -489,7 +489,7 @@
                     text.write('3' + "\n")
                 else: # Midlatitude summer
                     text.write('2' + "\n")
-            elif lat > -15.00 and lat <= -45.00: 
+            elif lat < -15.00 and lat >= -45.00: 
                 if time_py.month in winter: # Midlatitude summer
                     text.write('2' + "\n")
                 else: # Midlatitude winter
@@ -499,7 +499,7 @@
                     text.write('5' + "\n")
                 else: # Subartic summer
                     text.write('4' + "\n")
-            elif lat > -45.00 and lat <= -60.00:
+            elif lat < -45.00 and lat >= -60.00:
                 if time_py.month in winter: # Subarctic summer
                     text.write('4' + "\n")
                 else: # Subartic winter



More information about the grass-commit mailing list