ana3AIMEC.aimecTools.makeDomainTransfo
- makeDomainTransfo(pathDict, dem, refCellSize, cfgSetup)[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
pathDict (dict) – dictionary with paths to dem and lines for Aimec analysis
dem (dict) – dem dictionary with header and raster data
refCellSize (float) – cell-size corresponding to reference
cfgSetup (configparser) – configparser with ana3AIMEC settings defined in ana3AIMECCfg.ini regarding domain transformation (domain width w, and new cellsize, startOfRunoutAreaAngle or interpolation method and referenceFile to get header info)
- 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) if defineRunoutArea is False - indStartOfRunout=0 (start of thalweg)
- Return type
dict