[GRASS-SVN] r74360 - grass-addons/grass7/imagery/i.sentinel/i.sentinel.download
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 9 11:30:16 PDT 2019
Author: martinl
Date: 2019-04-09 11:30:15 -0700 (Tue, 09 Apr 2019)
New Revision: 74360
Modified:
grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py
Log:
i.sentinelsat.download: do not define default answer for clouds option
Modified: grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py
===================================================================
--- grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py 2019-04-09 18:10:24 UTC (rev 74359)
+++ grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py 2019-04-09 18:30:15 UTC (rev 74360)
@@ -6,7 +6,7 @@
# AUTHOR(S): Martin Landa
# PURPOSE: Downloads Sentinel data from Copernicus Open Access Hub
# using sentinelsat library.
-# COPYRIGHT: (C) 2018 by Martin Landa, and the GRASS development team
+# COPYRIGHT: (C) 2018-2019 by Martin Landa, and the GRASS development team
#
# This program is free software under the GNU General Public
# License (>=v2). Read the file COPYING that comes with GRASS
@@ -57,7 +57,6 @@
#% key: clouds
#% type: integer
#% description: Maximum cloud cover percentage for Sentinel scene
-#% answer: 30
#% required: no
#% guisection: Filter
#%end
@@ -388,11 +387,12 @@
sortby = options['sort'].split(',')
if options['producttype'] in ('SLC', 'GRD', 'OCN'):
- gs.info("Option <{}> ignored: cloud cover percentage "
- "is not defined for product type {}".format(
- "clouds", options['producttype']
- ))
- options['clouds'] = None
+ if options['clouds']:
+ gs.info("Option <{}> ignored: cloud cover percentage "
+ "is not defined for product type {}".format(
+ "clouds", options['producttype']
+ ))
+ options['clouds'] = None
try:
sortby.remove('cloudcoverpercentage')
except ValueError:
More information about the grass-commit
mailing list