in1Data.getInput.computeRelStats

computeRelStats(line, dem)[source]

compute stats of a polygon and a dem actual area (taking slope into account), projected area, max, mean, min elevation, mean slope

Parameters
  • line (dict) – dictionary with info on line (x, y, Start, Length, rasterData, …)

  • dem (dict) – dictionary with info on dem (header, rasterData, normals, areaRaster)

Returns

lineDict – dictionary with stats info: featureNames, zMax, zMin, Slope, Area, AreaP

Return type

dict