ana3AIMEC.aimecTools.getSArea

getSArea(rasterTransfo, dem)[source]

Get the s curvilinear coordinate and area on the new raster

Find the scoord corresponding to the transformation and the Area of the cells of the new raster

Parameters
  • rasterTransfo (dict) – dictionary containing

    • domainWidth: float

    • cellSize: float

    • gridx: 2D numpy array, x coord of the new raster points in old coord system

    • gridy: 2D numpy array, y coord of the new raster points in old coord system

  • dem (dict) – dem dictionary with normal and area information

Returns

rasterTransfo – rasterTransfo dictionary updated with

  • s: 1D numpy array, new coord system in the polyline direction

  • rasterArea: 2D numpy array, real area of the cells of the new raster

Return type

dict