in3Utils.geoTrans.remeshDEM¶
- remeshDEM(demFile, cfgSim)[source]¶
change DEM cell size by reprojecting on a new grid - first check if remeshed DEM available
the new DEM is as big or smaller as the original DEM and saved to Inputs/DEMremshed as remeshedDEMcellSize
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
demFile (str or pathlib path) – path to DEM in Inputs/
cfgSim (configParser) – meshCellSizeThreshold : threshold under which no remeshing is done meshCellSize : desired cell size
- Returns
pathDem – path of DEM with desired cell size relative to Inputs/
- Return type
str