ana3AIMEC.ana3AIMEC.postProcessAIMEC

postProcessAIMEC(cfg, rasterTransfo, pathDict, resAnalysisDF, newRasters, timeMass, simRowHash, contourDict)[source]

Apply domain transformation and analyse result data (for example pressure, thickness, velocity…)

Apply the domain tranformation to peak results Analyse them. Calculate runout, Max Peak Values, Average Peak Values… Get mass and entrainement

Parameters
  • cfg (configParser objec) – parameters for AIMEC analysis

  • rasterTransfo (dict) – transformation information

  • pathDict (dict) – dictionary with paths to dem and lines for Aimec analysis

  • resAnalysisDF (dataFrame) – dataframe with simulations to analyze and associated path to raster data

  • newRasters (dict) – dictionary containing pressure, velocity and flow thickness rasters after transformation for the reference and the current simulation

  • timeMass (1D numpy array) – time array for mass analysis (if flagMass=True, otherwise None)

  • simRowHash (str) – dataframe hash of the current simulation to analyze

  • contourDict (dict) – dictionary with one key per sim and its x, y coordinates for contour line of runoutresType for thresholdValue

Returns

  • resAnalysisDF (dataFrame) –

    input DF with results from Aimec Analysis updated with results from curent simulation:
    -maxACrossMax: float

    max max A (A depends on what is in resTypes)

    -ACrossMax: 1D numpy array

    max A in each cross section (A depends on what is in resTypes)

    -ACrossMean: 1D numpy array

    mean A in each cross section (A depends on what is in resTypes)

    -xRunout: float

    x coord of the runout point calculated from the MAX peak result in each cross section (runoutResType provided in the ini file)

    -yRunout: float

    y coord of the runout point calculated from the MAX peak result in each cross section (runoutResType provided in the ini file)

    -sRunout: float

    projected runout distance calculated from the MAX peak result in each cross section (runoutResType provided in the ini file)

    -xMeanRunout: float

    x coord of the runout point calculated from the MEAN peak result in each cross section (runoutResType provided in the ini file)

    -yMeanRunout: float

    y coord of the runout point calculated from the MEAN peak result in each cross section (runoutResType provided in the ini file)

    -sMeanRunout: float

    projected runout distance calculated from the MEAN peak result in each cross section (runoutResType provided in the ini file)

    -elevRel: float

    elevation of the release area (based on first point with peak field > thresholdValue)

    -deltaH: float

    elevation fall difference between elevRel and altitude of run-out point

    -TP: float

    ref = True sim2 = True

    -FN: float

    ref = False sim2 = True

    -FP: float

    ref = True sim2 = False

    -TN: float

    ref = False sim2 = False

    if mass analysis is performed -relMass: float

    release mass

    -entMass: float

    entrained mass

    -finalMass: float

    final mass

    -relativMassDiff: float

    the final mass diff with ref (in %)

    -growthIndex: float

    growth index

    -growthGrad: float

    growth gradient

  • contourDict (dict) – dictionary with one key per sim and its x, y coordinates for contour line of runoutresType for thresholdValue - updated with info for current simulation