com1DFA.com1DFA.prepareArea¶
- prepareArea(releaseLine, dem, relThList='', combine=True)[source]¶
convert shape file polygon to raster
- Parameters
releaseLine (dict) – line dictionary
dem (dict) – dictionary with dem information
relThList (list) – release thickness values for all release features
combine (Boolean) – if True sum up the rasters in the area list to return only 1 raster if False return the list of distinct area rasters this option works only if relThList is not empty
- Returns
Raster (2D numpy array) – raster of the area (returned if relRHlist is empty OR if combine is set to True)
RasterList (list) – list of 2D numpy array rasters (returned if relRHlist is not empty AND if combine is set to True)