ana3AIMEC.aimecTools.analyzeArea
- analyzeArea(rasterTransfo, resAnalysisDF, simRowHash, newRasters, cfg, pathDict, contourDict)[source]
Compare area results to reference.
Compute True positive, False negative… areas.
- Parameters
rasterTransfo (dict) – transformation information
resAnalysisDF (dataFrame) – dataFrame containing Aimec results to update
simRowHash (str) – simulation dataframe hash
newRasters (dict) – dict with tranformed raster for reference and curent simulation
cfg (confiParser) – numerical value of the limit to use for the runout computation as well as the levels for the contour line plot
pathDict (dict) – path to data dem data and lines for aimec analysis
contourDict (dict) – dictionary with one key per sim and its x, y coordinates for contour line of runoutresType for thresholdValue
- Returns
resAnalysisDF (dataFrame) –
- dataFrame containing Aimec results updated with:
- TP: float
ref = True sim2 = True
- FN: float
ref = False sim2 = True
- FP: float
ref = True sim2 = False
- TN: float
ref = False sim2 = False
contourDict (dict) – dictionary with one key per sim and its x, y coordinates for contour line of runoutresType for thresholdValue - updated