in3Utils.geoTrans.path2domain
- path2domain(xyPath, rasterTransfo)[source]
Creates a domain (irregular raster) along a path, given the path xyPath, a domain width and a raster cellsize
Parameters:
- xyPath: dict
line dictionary with coordinates x and y
- rasterTransfo: dict
- rasterTransfo[‘w’]: float
Domain width
- rasterTransfo[‘cellSizeSL’]: float
cellsize expected for the new raster
Returns:
- rasterTransfo: dict
rasterTransfo updated with xp, yp Arrays determining a path of width w along a line
- rasterTransfo[‘DBXl’]:
x coord of the left boundary
- rasterTransfo[‘DBXr’]:
x coord of the right boundary
- rasterTransfo[‘DBYl’]:
y coord of the left boundary
- rasterTransfo[‘DBYr’]:
y coord of the right boundary
[Fischer2013] Fischer, Jan-Thomas. (2013). A novel approach to evaluate and compare computational snow avalanche simulation. Natural Hazards and Earth System Sciences. 13. 1655-. 10.5194/nhess-13-1655-2013. Uwe Schlifkowitz/ BFW, June 2011