ana3AIMEC.aimecTools.getMaxMeanValues¶
- getMaxMeanValues(rasterdataA, rasterArea)[source]¶
Compute average, max values in each cross section for a given input raster
Read mass balance files to get mass properties of the simulation (total mass, entrained mass…). Checks for mass conservation
- Parameters
rasterdataA (2D numpy array) – raster data
rasterArea (2D numpy array) – raster area corresponding to rasterdataA
- Returns
mma (float) – maximum maximum of rasterdataA
aCrossMax (1D numpy array) – max of rasterdataA in each cross section
aCrossMean (1D numpy array) – mean of rasterdataA in each cross section (area weighted)