[GRASS-SVN] r73157 - in grass-addons/grass7/imagery/i.sentinel: . i.sentinel.download i.sentinel.import

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 24 01:50:37 PDT 2018


Author: neteler
Date: 2018-08-24 01:50:37 -0700 (Fri, 24 Aug 2018)
New Revision: 73157

Modified:
   grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py
   grass-addons/grass7/imagery/i.sentinel/i.sentinel.html
   grass-addons/grass7/imagery/i.sentinel/i.sentinel.import/i.sentinel.import.py
Log:
i.sentinel.import: write map history; fix keywords

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	2018-08-24 07:56:20 UTC (rev 73156)
+++ grass-addons/grass7/imagery/i.sentinel/i.sentinel.download/i.sentinel.download.py	2018-08-24 08:50:37 UTC (rev 73157)
@@ -15,8 +15,9 @@
 #############################################################################
 
 #%module
-#% description: Downloads Sentinel data from Copernicus Open Access Hub using sentinelsat library.
+#% description: Downloads Sentinel satellite data from Copernicus Open Access Hub using sentinelsat library.
 #% keyword: imagery
+#% keyword: satellite
 #% keyword: sentinel
 #% keyword: download
 #%end

Modified: grass-addons/grass7/imagery/i.sentinel/i.sentinel.html
===================================================================
--- grass-addons/grass7/imagery/i.sentinel/i.sentinel.html	2018-08-24 07:56:20 UTC (rev 73156)
+++ grass-addons/grass7/imagery/i.sentinel/i.sentinel.html	2018-08-24 08:50:37 UTC (rev 73157)
@@ -13,10 +13,10 @@
 
 <h2>NAME</h2>
 
-<em><b>i.sentinel</b></em>  - Toolset for download and processing of Sentinel products.
+<em><b>i.sentinel</b></em> - Toolset for download and processing of Copernicus Sentinel products.
 
 <h2>KEYWORDS</h2>
-<a href="raster.html">raster</a>, <a href="topic_import.html">import</a>, <a href="keywords.html#Sentinel">Sentinel</a>
+<a href="raster.html">imagery</a>, <a href="topic_import.html">import</a>, <a href="keywords.html#satellite">satellite</a>, <a href="keywords.html#Sentinel">Sentinel</a>
 
 <!-- meta page description: Toolset for download and processing of Sentinel products -->
 <h2>DESCRIPTION</h2>
@@ -25,11 +25,11 @@
 
 <dl>
   <dt><a href="i.sentinel.download.html">i.sentinel.download</a></dt>
-  <dd>downloads Sentinel products
+  <dd>downloads Copernicus Sentinel products
   from <a href="https://scihub.copernicus.eu/">Copernicus Open Access
   Hub</a></dd>
   <dt><a href="i.sentinel.import.html">i.sentinel.import</a></dt>
-  <dd>imports already downloaded Sentinel products into GRASS mapset</dd>
+  <dd>imports already downloaded Sentinel products into GRASS GIS mapset</dd>
 </dl>
 
 <h2>REQUIREMENTS</h2>
@@ -42,8 +42,8 @@
 <h2>AUTHOR</h2>
 
 Martin
-Landa, <a href="http://geomatics.fsv.cvut.cz/research/geoforall/">GeoForAll
-Lab</a>, CTU in Prague, Czech Republic with support
+Landa, <a href="http://geomatics.fsv.cvut.cz/research/geoforall/">GeoForAll Lab</a>,
+CTU in Prague, Czech Republic with support
 of <a href="http://opengeolabs.cz/en/home/">OpenGeoLabs</a> company
 
 <p><i>Last changed: $Date$</i>

Modified: grass-addons/grass7/imagery/i.sentinel/i.sentinel.import/i.sentinel.import.py
===================================================================
--- grass-addons/grass7/imagery/i.sentinel/i.sentinel.import/i.sentinel.import.py	2018-08-24 07:56:20 UTC (rev 73156)
+++ grass-addons/grass7/imagery/i.sentinel/i.sentinel.import/i.sentinel.import.py	2018-08-24 08:50:37 UTC (rev 73157)
@@ -15,8 +15,9 @@
 #############################################################################
 
 #%Module
-#% description: Imports Sentinel data downloaded from Copernicus Open Access Hub using i.sentinel.download.
+#% description: Imports Sentinel satellite data downloaded from Copernicus Open Access Hub using i.sentinel.download.
 #% keyword: imagery
+#% keyword: satellite
 #% keyword: sentinel
 #% keyword: import
 #%end
@@ -187,6 +188,7 @@
             args['resolution_value'] = self._raster_resolution(filename)
         try:
             gs.run_command(module, input=filename, output=mapname, **args)
+            gs.raster_history(mapname)
         except CalledModuleError as e:
             pass # error already printed
 
@@ -210,8 +212,8 @@
                 gs.run_command('v.import', input=f,
                                flags='o', # same SRS as data
                                output=map_name,
-                               quiet=True
-                )
+                               quiet=True)
+                gs.vector_history(map_name)
             except CalledModuleError as e:
                 pass # error already printed
 



More information about the grass-commit mailing list