com1DFA.deriveParameterSet.checkRasterMeshSize

checkRasterMeshSize(cfgSim, rasterFile, typeIndicator='DEM', onlySearch=False)[source]

check if cell size of raster in Inputs/ is same as desired meshCellSize if not - check for remeshed raster or remesh the raster If onlySearch is True: no remeshing is being done, only search for the right one

Parameters
  • cfgSim (dict) – configuration settings of com module

  • rasterFile (str or pathlib path) – to raster in Inputs/

  • typeIndicator (str) – indicate which type the raster is. Possible values DEM or RELTH

  • onlySearch (bool) – if True - only searching for remeshed DEM but not remeshing if not found

Returns

pathToRaster – path to raster with correct cellSize relative to Inputs/

Return type

str