in1Data.getInput.checkForMultiplePartsShpArea
- checkForMultiplePartsShpArea(avaDir, lineDict, modName, type='')[source]
check if in polygon read from shape file holes are present, if so error and save a plot to Outputs/com1DFA procedure: check if polygon has several parts
- Parameters
avaDir (str) – path to avalanche directory
lineDict (dict) – dictionary with info read from shape file used: x, y, Start, Length, nParts, nFeatures
modName (str) – name of computational module where to save error plots to Outputs subfolder
type (str) – type of shp file area (release, secondary release, entrainment, resistance)
- Returns
error if number of parts is bigger 1
save plot showing all parts of each polygon feature in Outputs/modName