ana3AIMEC.aimecTools.makeDomainTransfoOnTheGo¶
- makeDomainTransfoOnTheGo(avaDir, dem, cfgSetup, pathDict)[source]¶
Make domain transformation
This function returns the information about the domain transformation Data given on a regular grid is projected on a nonuniform grid following a polyline to end up with “straightend raster”
- Parameters
avaDir (pathlib path or str) – path to avalanche directory
dem (dict) – dictionary with header and raster data
pathDict (dict) – dictionary with paths to lines for Aimec analysis
cfgSetup (configparser) – configparser with ana3AIMEC settings defined in ana3AIMECCfg.ini regarding domain transformation (domain width w, and new cellsize, startOfRunoutAreaAngle or interpolation method, resType and referenceFile to get header info)
pathDict (dict) – dictionary with info on avalanche path, splitPoint, project name
- Returns
rasterTransfo –
- domain transformation information:
- gridx: 2D numpy array
x coord of the new raster points in old coord system
- gridy: 2D numpy array
y coord of the new raster points in old coord system
- s: 1D numpy array
new coord system in the polyline direction
- l: 1D numpy array
new coord system in the cross direction
- x: 1D numpy array
coord of the resampled polyline in old coord system
- y: 1D numpy array
coord of the resampled polyline in old coord system
- rasterArea: 2D numpy array
real area of the cells of the new raster
- indStartOfRunout: int
index for start of the runout area (in s)
- Return type
dict