in1Data.getInput.deriveLineRaster

deriveLineRaster(cfg, lineDict, dem, outDir, inputsDir, rasterType, rasterFileType='', saveZeroRaster=False)[source]

derive raster and return path to raster file if derived from polygon, create raster with thickness read from lineDict and save to file fileName based on derivedFrom_shapeFileName - same format as DEM

Parameters:

cfg: configparser object

configuration settings of current simulation

lineDict: dict

dictionary with info on area: thickness and polygon coordinates if initialized from shapefile if read from raster fetch file Path only

dem: dict

dictionary with info on dem file including header and rasterData

outDir: pathlib path

path to directory where to save raster file

inputsDir: pathlib path

path to avalancheDir/Inputs where original input data and remeshed rasters are stored

rasterType: str

name of type of data, available options: rel, ent, tauC, secondaryRel

rasterFileType: str

type of raster file to save: .asc, .tif

saveZeroRaster: bool

whether to save raster with zero values as dummyRasterType to outDir with same header as dem

returns

rasterPath – path to raster file

rtype

pathlib Path