NOAA-OCM / QNSPECT

QGIS Plugin for NOAA Nonpoint Source Pollution and Erosion Comparison Tool (NSPECT)
GNU General Public License v2.0
7 stars 5 forks source link

Bug/misc #109

Closed ar-siddiqui closed 2 years ago

ar-siddiqui commented 2 years ago
ar-siddiqui commented 2 years ago

@DaveEslinger please review, minor changes only.

ar-siddiqui commented 2 years ago

All the calculations seem to be correct. However, I am getting a warning message:

GDAL command: gdal_calc.bat --overwrite --calc "100 * ((A - B) / B)" --format GTiff --type Float32 --NoDataValue -999999.0 -A "E:/GIS/QNSPECT/Testing/base05122022/Runoff Local.tif" --A_band 1 -B "E:/GIS/QNSPECT/Testing/meddev05122022/Runoff Local.tif" --B_band 1 --overwrite --outfile "C:\Users\davee\AppData\Local\Temp\processing_MbaJAK\489e9501b84c43e69b3a953178dae5f3\Output\Runoff Local Percent.tif" GDAL command output: :1: RuntimeWarning: invalid value encountered in true_divide

I suspect it is from 0's in the second raster.

This is a separate issue #100 that exist irrespective of the changes in this PR.