ana3AIMEC.aimecTools.makeDomainTransfo¶
- makeDomainTransfo(pathDict, inputsDF, 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
inputsDF (dataFrame) – dataframe with simulations to analyze and associated path to raster data
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)
- 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