out1Peak.outPlotAllPeakDiffs.plotAreaDiff
- plotAreaDiff(refRaster, refMask, simRaster, compRasterMask, resType, rasterHeader, thresholdValueSimulation, outDir, indicatorDict, simName, cropFile=None)[source]
plot comparison of reference and simulation and area indicators
- Parameters
refRaster, simRaster (numpy ndarray) – reference raster, simulation raster
refMask, compRasterMask (numpy ndarray) – array with 1 indicating reference (simulation) data found exceeding threshold and 0 not found
resType (str) – result type of simulation
rasterHeader (dict) – info on extent
thresholdValueSimulation (float) – threshold value to mask simulation raster
outDir (pathlib path) – path to save plot
indicatorDict (dict) –
- dictionary with info on true positive, false positive, false negative
arrays with 1 indicating true positive, false positive, false negative areas and 0 all other entries number of cells where tp, fp, np total area for tp, fp, fn
simName (str) – name of simulation
cropFile (None or pathlib path) – None or path to cropfile with polygon used to perfrom analysis