This post is about a major update for the Semi-Automatic Classification Plugin for QGIS, version 4.5.0.
-added reflectance conversion for Landsat 1, 2, and 3 MSS
-improved the calculation of Band calc which now allows for calculation between
rasters with different size and resolution
-experimental version
-bug fixing
-improved the calculation of Band calc which now allows for calculation between
rasters with different size and resolution
-experimental version
-bug fixing
This version improves the capability of Landsat conversion to reflectance for Landsat MSS 1, 2, and 3, which acquired images from the 1970s.
The tool Band calc has been improved, allowing for the calculation between rasters with different extension and pixel resolution.
For testing this new function, download the sample rasters from here (data available from the U.S. Geological Survey) and load them in QGIS.You can see that the images have different extensions and different resolutions (30m for band 2 and band 5, and 15m for band 8).
In SCP open the tool Band calc and click Refresh list. Then, write the expression: "raster1" + "raster2" + "raster3" and click Calculate .
For any comment or question, remember that a Facebook group and a Google+ Community about the Semi-Automatic Classification Plugin are available.
The tool Band calc has been improved, allowing for the calculation between rasters with different extension and pixel resolution.
For testing this new function, download the sample rasters from here (data available from the U.S. Geological Survey) and load them in QGIS.You can see that the images have different extensions and different resolutions (30m for band 2 and band 5, and 15m for band 8).
In SCP open the tool Band calc and click Refresh list. Then, write the expression: "raster1" + "raster2" + "raster3" and click Calculate .
A new raster will be automatically calculated with the maximum resolution of the band 8 (i.e. 15m). The output extent is the intersection of input rasters.
If you repeat the calculation unchecking the checkbox Intersection, the output extension is the sum of all the input raster extensions.
You can notice a black border (with value 0) in zones where there is not an image input.
I have also added a new option for considering NoData (value that we want to hide) in the output raster.
Repeat the calculation checking the checkbox Use NoData value. Now the output raster is without the black border because of the NoData value.