[GRASS-SVN] r74348 - grass-addons/grass7/imagery/i.sentinel/i.sentinel.download
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 5 02:17:55 PDT 2019
Author: martinl
Date: 2019-04-05 02:17:55 -0700 (Fri, 05 Apr 2019)
New Revision: 74348
Modified:
grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py
Log:
i.sentinelsat.download: fix remaining Sentinel-1 products (SLC, OCN)
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-04 19:48:12 UTC (rev 74347)
+++ grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py 2019-04-05 09:17:55 UTC (rev 74348)
@@ -183,8 +183,10 @@
args['cloudcoverpercentage'] = (0, int(clouds))
if producttype:
args['producttype'] = producttype
- if producttype != 'GRD':
+ if producttype.startswith('S2'):
args['platformname'] = 'Sentinel-2'
+ else:
+ args['platformname'] = 'Sentinel-1'
if not start:
start = 'NOW-60DAYS'
else:
@@ -370,10 +372,10 @@
map_box = get_aoi_box(options['map'])
sortby = options['sort'].split(',')
- if options['producttype'] == 'GRD':
+ if options['producttype'] in ('SLC', 'GRD', 'OCN'):
gs.info("Option <{}> ignored: cloud cover percentage "
- "is not defined for product type GRD".format(
- "clouds"
+ "is not defined for product type {}".format(
+ "clouds", options['producttype']
))
options['clouds'] = None
try:
More information about the grass-commit
mailing list