[GRASS-SVN] r72785 - in grass-addons/grass7/imagery: i.landsat8.qc i.landsat8.swlst

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 8 22:50:59 PDT 2018


Author: nikosa
Date: 2018-06-08 22:50:59 -0700 (Fri, 08 Jun 2018)
New Revision: 72785

Modified:
   grass-addons/grass7/imagery/i.landsat8.qc/i.landsat8.qc.py
   grass-addons/grass7/imagery/i.landsat8.swlst/README.md
   grass-addons/grass7/imagery/i.landsat8.swlst/column_water_vapor.py
   grass-addons/grass7/imagery/i.landsat8.swlst/i.landsat8.swlst.py
Log:
i.landsat8.swlst: flag 'k' inverted and rename to 'e' (late sync with https://gitlab.com/NikosAlexandris/i.landsat8.swlst)

Modified: grass-addons/grass7/imagery/i.landsat8.qc/i.landsat8.qc.py
===================================================================
--- grass-addons/grass7/imagery/i.landsat8.qc/i.landsat8.qc.py	2018-06-07 14:45:42 UTC (rev 72784)
+++ grass-addons/grass7/imagery/i.landsat8.qc/i.landsat8.qc.py	2018-06-09 05:50:59 UTC (rev 72785)
@@ -152,7 +152,7 @@
     # Define bitpattern characteristics according to
     # http://landsat.usgs.gov/qualityband.php
     """
-    Currently populated bits:
+    Populated bits:
 
     0     Designated Fill
     1     Dropped Frame
@@ -202,16 +202,16 @@
                    'Yes': '1'}
 
     """
-The double bits (4-5, 6-7, 8-9, 10-11, 12-13, and 14-15), read from left to
-right, represent levels of confidence that a condition exists:
-00 = 'Not Determined' = Algorithm did not determine the status
-                        of this condition
-01 = 'No' = Algorithm has low to no confidence that this condition exists
-            (0-33 percent confidence)
-10 = 'Maybe' = Algorithm has medium confidence that this condition exists
-               (34-66 percent confidence)
-11 = 'Yes' = Algorithm has high confidence that this condition exists
-             (67-100 percent confidence).
+    The double bits (4-5, 6-7, 8-9, 10-11, 12-13, and 14-15), read from left to
+    right, represent levels of confidence that a condition exists:
+    00 = 'Not Determined' = Algorithm did not determine the status
+                            of this condition
+    01 = 'No' = Algorithm has low to no confidence that this condition exists
+                (0-33 percent confidence)
+    10 = 'Maybe' = Algorithm has medium confidence that this condition exists
+                (34-66 percent confidence)
+    11 = 'Yes' = Algorithm has high confidence that this condition exists
+                (67-100 percent confidence).
     """
 
     # Define double bits dictionary

Modified: grass-addons/grass7/imagery/i.landsat8.swlst/README.md
===================================================================
--- grass-addons/grass7/imagery/i.landsat8.swlst/README.md	2018-06-07 14:45:42 UTC (rev 72784)
+++ grass-addons/grass7/imagery/i.landsat8.swlst/README.md	2018-06-09 05:50:59 UTC (rev 72785)
@@ -1,4 +1,4 @@
-*i.landsat8.swlst* is a GRASS GIS add-on, implementating a practical Split-Window (SW)
+*i.landsat8.swlst* is a GRASS GIS add-on, implementing a practical Split-Window (SW)
 algorithm, estimating land surface temperature (LST), from the Thermal Infra-Red
 Sensor (TIRS) aboard Landsat 8 with an accuracy of better than 1.0 K.
 
@@ -32,7 +32,7 @@
 
   * The `clouds` option can be any user-defined map. Essentialy, it applies
     the given map as an inverted mask.
-    
+
   * The emissivity maps, derived by the module itself, can be saved once
     via the `emissivity_out` and `delta_emissivity_out` options and used
     afterwards via the `emissivity` and `delta_emissivity` options. Expert
@@ -154,6 +154,7 @@
 
 [Low]
 
+- Test for too small region?
 - Deduplicate code in `split_window_lst` class, in functions
 `_build_average_emissivity_mapcalc()` and
 `_build_delta_emissivity_mapcalc()`
@@ -210,3 +211,4 @@
 - Georgios Alexandris, Anthoula Alexandri
 - Special thanks to author Huazhong Ren for commenting on questions (personal
 communication)
+- Stefan Blumentrath

Modified: grass-addons/grass7/imagery/i.landsat8.swlst/column_water_vapor.py
===================================================================
--- grass-addons/grass7/imagery/i.landsat8.swlst/column_water_vapor.py	2018-06-07 14:45:42 UTC (rev 72784)
+++ grass-addons/grass7/imagery/i.landsat8.swlst/column_water_vapor.py	2018-06-09 05:50:59 UTC (rev 72785)
@@ -99,8 +99,8 @@
     Ren, H., Du, C., Liu, R., Qin, Q., Yan, G., Li, Z. L., & Meng, J. (2015).
     Atmospheric water vapor retrieval from Landsat 8 thermal infrared images.
     Journal of Geophysical Research: Atmospheres, 120(5), 1723-1738.
-    
 
+
     Old reference:
 
     Ren, H.; Du, C.; Qin, Q.; Liu, R.; Meng, J.; Li, J. Atmospheric water vapor

Modified: grass-addons/grass7/imagery/i.landsat8.swlst/i.landsat8.swlst.py
===================================================================
--- grass-addons/grass7/imagery/i.landsat8.swlst/i.landsat8.swlst.py	2018-06-07 14:45:42 UTC (rev 72784)
+++ grass-addons/grass7/imagery/i.landsat8.swlst/i.landsat8.swlst.py	2018-06-09 05:50:59 UTC (rev 72785)
@@ -85,12 +85,12 @@
 
 #%Module
 #%  description: Practical split-window algorithm estimating Land Surface Temperature from Landsat 8 OLI/TIRS imagery (Du, Chen; Ren, Huazhong; Qin, Qiming; Meng, Jinjie; Zhao, Shaohua. 2015)
-#%  keyword: imagery
-#%  keyword: split window
-#%  keyword: column water vapor
-#%  keyword: land surface temperature
-#%  keyword: lst
-#%  keyword: landsat8
+#%  keywords: imagery
+#%  keywords: split window
+#%  keywords: column water vapor
+#%  keywords: land surface temperature
+#%  keywords: lst
+#%  keywords: landsat8
 #%End
 
 #%flag
@@ -99,8 +99,8 @@
 #%end
 
 #%flag
-#%  key: k
-#%  description: Keep current computational region settings
+#%  key: e
+#%  description: Match computational region to extent of thermal bands
 #%end
 
 #%flag
@@ -350,7 +350,7 @@
     """
     grass.run_command('g.remove', flags='f', type="rast",
                       pattern='tmp.{pid}*'.format(pid=os.getpid()), quiet=True)
-    
+
     if grass.find_file(name='MASK', element='cell')['file']:
         r.mask(flags='r', verbose=True)
 
@@ -1009,7 +1009,7 @@
 
     qapixel = options['qapixel']
     lst_output = options['lst']
-    
+
     # save Brightness Temperature maps?
     global brightness_temperature_prefix
     if options['prefix_bt']:
@@ -1028,7 +1028,7 @@
     # optional maps
     average_emissivity_map = options['emissivity']
     delta_emissivity_map = options['delta_emissivity']
-    
+
     # output for in-between maps?
     global emissivity_output, delta_emissivity_output
     emissivity_output = options['emissivity_out']
@@ -1041,11 +1041,10 @@
     # flags
     global info, null
     info = flags['i']
-    # keep_region = flags['k']
-    scene_extent = flags['k']
+    scene_extent = flags['e']
     timestamping = flags['t']
     null = flags['n']
-    
+
     global celsius
     celsius = flags['c']
 
@@ -1057,7 +1056,6 @@
     #
 
     # Set Region
-    # if not keep_region:
     if scene_extent:
         grass.use_temp_region()  # safely modify the region
         msg = "\n|! Matching region extent to map {name}"
@@ -1075,7 +1073,6 @@
 
         g.message(msg)
 
-    # elif keep_region:
     elif scene_extent:
         grass.warning(_('Operating on current region'))
 
@@ -1243,7 +1240,6 @@
     #run("g.rename", rast=(tmp_lst, lst_output))
 
     # restore region
-    # if not keep_region:
     if scene_extent:
         grass.del_temp_region()  # restoring previous region settings
         g.message("|! Original Region restored")



More information about the grass-commit mailing list