[GRASS-SVN] r74144 - grass-addons/grass7/imagery/i.sentinel/i.sentinel.download
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 1 07:54:40 PST 2019
Author: martinl
Date: 2019-03-01 07:54:40 -0800 (Fri, 01 Mar 2019)
New Revision: 74144
Modified:
grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py
Log:
i.sentinel.download: fix -l flag when cloud coverage is not defined
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-03-01 11:47:49 UTC (rev 74143)
+++ grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py 2019-03-01 15:54:40 UTC (rev 74144)
@@ -219,10 +219,15 @@
return
for idx in range(len(self._products_df_sorted['uuid'])):
- print ('{0} {1} {2:2.0f}% {3}'.format(
+ if 'cloudcoverpercentage' in self._products_df_sorted:
+ ccp = '{2:2.0f}%'.format(self._products_df_sorted['cloudcoverpercentage'][idx])
+ else:
+ ccp = 'unknown'
+
+ print ('{0} {1} {2} {3}'.format(
self._products_df_sorted['uuid'][idx],
self._products_df_sorted['beginposition'][idx].strftime("%Y-%m-%dT%H:%M:%SZ"),
- self._products_df_sorted['cloudcoverpercentage'][idx],
+ ccp,
self._products_df_sorted['producttype'][idx],
))
More information about the grass-commit
mailing list