Skip to content

Commit 84c437c

Browse files
7.9.2
1 parent d19e2e6 commit 84c437c

7 files changed

Lines changed: 23732 additions & 23729 deletions

File tree

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def description():
4242

4343

4444
def version():
45-
return 'Version 7.9.1 - Matera'
45+
return 'Version 7.9.2 - Matera'
4646

4747

4848
def icon():

core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@
631631
spectralDistNm = 'SpectralDistanceBandSets_'
632632
reflectanceRasterNm = 'reflectance_temp'
633633
NoDataVal = -32768
634-
NoDataValUInt16 = 32767
634+
NoDataValUInt16 = 65535
635635
NoDataValInt32 = 2147483647
636636
NoDataValFloat32 = -3.4028235e+38
637637
NoDataValUInt32 = 4294967295

docs/repository.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version = '1.0' encoding = 'UTF-8'?>
22
<plugins>
3-
<pyqgis_plugin name="Semi-Automatic Classification Plugin - master" version="7.9.1" plugin_id="284">
3+
<pyqgis_plugin name="Semi-Automatic Classification Plugin - master" version="7.9.2" plugin_id="284">
44
<description><![CDATA[The Semi-Automatic Classification Plugin (SCP) allows for the supervised classification of remote sensing images, providing tools for the download, the preprocessing and postprocessing of images.]]></description>
55
<about><![CDATA[Developed by Luca Congedo, the Semi-Automatic Classification Plugin (SCP) allows for the supervised classification of remote sensing images, providing tools for the download, the preprocessing and postprocessing of images. Search and download is available for ASTER, GOES, Landsat, MODIS, Sentinel-1, Sentinel-2, and Sentinel-3 images. Several algorithms are available for the land cover classification. This plugin requires the installation of GDAL, OGR, Numpy, SciPy, and Matplotlib. Some tools require also the installation of SNAP (ESA Sentinel Application Platform). For more information please visit https://fromgistors.blogspot.com .]]></about>
6-
<version>7.9.1</version>
6+
<version>7.9.2</version>
77
<qgis_minimum_version>3.0.0</qgis_minimum_version>
88
<qgis_maximum_version>3.99.0</qgis_maximum_version>
99
<homepage><![CDATA[https://fromgistors.blogspot.com/p/semi-automatic-classification-plugin.html]]></homepage>

maininterface/landsatTab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
class LandsatTab:
3939

4040
def __init__(self):
41-
self.nodataCalc = cfg.NoDataValUInt16 * 0.00001
41+
self.nodataCalc = cfg.NoDataValUInt16 * 0.0001
4242

4343
# landsat input
4444
def inputLandsat(self):
@@ -342,7 +342,7 @@ def landsat(self, inputDirectory, outputDirectory, batch = 'No', bandSetNumber =
342342
# output rasters
343343
cfg.utls.createRasterFromReference(rD, 1, oM, cfg.NoDataValUInt16, 'GTiff', 'UInt16', 0, None, compress = cfg.rasterCompression, compressFormat = 'DEFLATE')
344344
rD = None
345-
o = cfg.utls.multiProcessRaster(rasterPath = tPMDN, functionBand = 'No', functionRaster = cfg.utls.calculateRaster, outputRasterList = oM, nodataValue = NoData, functionBandArgument = argumentList, functionVariable = variableList, progressMessage = cfg.QtWidgetsSCP.QApplication.translate('semiautomaticclassificationplugin', 'Conversion'), parallel = cfg.parallelRaster, outputNoDataValue = cfg.NoDataValUInt16, scale = 0.00001, offset = 0)
345+
o = cfg.utls.multiProcessRaster(rasterPath = tPMDN, functionBand = 'No', functionRaster = cfg.utls.calculateRaster, outputRasterList = oM, nodataValue = NoData, functionBandArgument = argumentList, functionVariable = variableList, progressMessage = cfg.QtWidgetsSCP.QApplication.translate('semiautomaticclassificationplugin', 'Conversion'), parallel = cfg.parallelRaster, outputNoDataValue = cfg.NoDataValUInt16, scale = 0.0001, offset = 0)
346346
if cfg.actionCheck == 'Yes':
347347
for t in range(0, len(outputRasterList)):
348348
cfg.shutilSCP.move(oM[t], outputRasterList[t])

maininterface/sentinel2Tab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
class Sentinel2Tab:
4040

4141
def __init__(self):
42-
self.nodataCalc = cfg.NoDataValUInt16 * 0.00001
42+
self.nodataCalc = cfg.NoDataValUInt16 * 0.0001
4343

4444
# Sentinel-2 input
4545
def inputSentinel(self):
@@ -328,7 +328,7 @@ def sentinelReflectance(self, inputRaster, outputRasterList, functionList, varia
328328
for t in range(0, len(outputRasterList)):
329329
e = functionList[t].replace('LDNm', str(LDNmList[t]))
330330
argumentList.append(e)
331-
o = cfg.utls.multiProcessRaster(rasterPath = inputRaster, functionBand = 'No', functionRaster = cfg.utls.calculateRaster, outputRasterList = oM, nodataValue = NoData, functionBandArgument = argumentList, functionVariable = variableList, progressMessage = cfg.QtWidgetsSCP.QApplication.translate('semiautomaticclassificationplugin', 'Conversion'), parallel = cfg.parallelRaster, outputNoDataValue = cfg.NoDataValUInt16, scale = 0.00001, offset = 0)
331+
o = cfg.utls.multiProcessRaster(rasterPath = inputRaster, functionBand = 'No', functionRaster = cfg.utls.calculateRaster, outputRasterList = oM, nodataValue = NoData, functionBandArgument = argumentList, functionVariable = variableList, progressMessage = cfg.QtWidgetsSCP.QApplication.translate('semiautomaticclassificationplugin', 'Conversion'), parallel = cfg.parallelRaster, outputNoDataValue = cfg.NoDataValUInt16, scale = 0.0001, offset = 0)
332332
if cfg.actionCheck == 'Yes':
333333
for t in range(0, len(outputRasterList)):
334334
cfg.shutilSCP.move(oM[t], outputRasterList[t])

metadata.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name=Semi-Automatic Classification Plugin
33
qgisMinimumVersion=3.00
44
description=The Semi-Automatic Classification Plugin (SCP) allows for the supervised classification of remote sensing images, providing tools for the download, the preprocessing and postprocessing of images.
5-
version=7.9.1
5+
version=7.9.2
66
about=Developed by Luca Congedo, the Semi-Automatic Classification Plugin (SCP) allows for the supervised classification of remote sensing images, providing tools for the download, the preprocessing and postprocessing of images. Search and download is available for ASTER, GOES, Landsat, MODIS, Sentinel-1, Sentinel-2, and Sentinel-3 images. Several algorithms are available for the land cover classification. This plugin requires the installation of GDAL, OGR, Numpy, SciPy, and Matplotlib. Some tools require also the installation of SNAP (ESA Sentinel Application Platform). For more information please visit https://fromgistors.blogspot.com .
77

88
author=Luca Congedo
@@ -14,6 +14,9 @@ icon=semiautomaticclassificationplugin.png
1414
; start of optional metadata
1515
changelog=
1616

17+
7.9.2
18+
-fixed scale value 0.0001 for Landsat and Sentinel-2
19+
1720
7.9.1
1821
-fixed Landsat 8 band 1 band set
1922

0 commit comments

Comments
 (0)