in1Data.getInput.preprocessAssets
- preprocessAssets(avalancheDir, dem, cfg)[source]
- fetch an assets raster with same extent as simulation DEM and create assets class info
nan values and 0 are disregarded as asset class
- Parameters
avalancheDir (str or pathlib.Path) – path to avalanche directory
dem (dict) – dictionary with info on DEM
cfg (configparser object) – configuration settings for remeshing
- Returns
uniqueAssets (list) – list of asset class values ordered from low to high
assets (dict) – dictionary with assets info
assetsValues (dict) – dictionary with affected cell numbers for each asset class value