in3Utils.geoTrans.remeshDEM

remeshDEM(cfg, dem)[source]

change DEM cell size by reprojecting on a new grid

Interpolation is based on griddata with a cubic method. Here would be the place to change the order of the interpolation or to switch to another interpolation method.

Parameters
  • cfg (configParser) – meshCellSizeThreshold : threshold under which no remeshing is done meshCellSize : desired cell size

  • dem (dict) – dem dictionary

Returns

dem – reprjected dem dictionary

Return type

dict