[GRASS-SVN] r72167 - grass-addons/grass7/raster/r.sentinel/r.sentinel.import

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 26 15:22:36 PST 2018


Author: martinl
Date: 2018-01-26 15:22:36 -0800 (Fri, 26 Jan 2018)
New Revision: 72167

Modified:
   grass-addons/grass7/raster/r.sentinel/r.sentinel.import/r.sentinel.import.py
Log:
r.sentinel.import: improve pattern handling

Modified: grass-addons/grass7/raster/r.sentinel/r.sentinel.import/r.sentinel.import.py
===================================================================
--- grass-addons/grass7/raster/r.sentinel/r.sentinel.import/r.sentinel.import.py	2018-01-26 23:13:02 UTC (rev 72166)
+++ grass-addons/grass7/raster/r.sentinel/r.sentinel.import/r.sentinel.import.py	2018-01-26 23:22:36 UTC (rev 72167)
@@ -54,7 +54,7 @@
 
     def filter(self, pattern=None):
         if pattern:
-            filter_p = '.*' + options['pattern'] + '.jp2$'
+            filter_p = '.*' + options['pattern'] + '.*.jp2$'
         else:
             filter_p = r'.*_B.*.jp2$'
 



More information about the grass-commit mailing list