com1DFA.com1DFA.fetchRelVolume

fetchRelVolume(releaseFile, cfg, pathToDem, secondaryReleaseFile, radius=0.01, timeDepRelFile='')[source]

compute release area volume using release line and thickness info and dem if in config settings secRelArea is True - also include secondary release area in release volume estimate

Parameters
  • releaseFile (pathlib path) – path to release area shp file

  • cfg (dict) – config settings of current sim

  • pathToDem (pathlib path) – path to dem file used for current sim

  • secondaryReleaseFile (pathlib path, None) – path to secondary release area shp file or None if not available

  • radius (float) – include all cells which center is in the release line or close enough

  • timeDepRelFile (str) – path to time dependent release values csv file

Returns

relVolume – volume of release area in m3

Return type

float