gfail.models.zhu_2017_slim¶
- class gfail.models.zhu_2017_slim.Zhu2017Model(shakefile, config, bounds=None, uncertfile=None, trimfile=None, slopefile=None, saveinputs=False)[source]¶
Bases:
LogisticModelBase
Initialize LogisticModelBase object.
- Parameters
shakefile (str) – Path to ShakeMap grid.xml file.
config (dict) – Dict like object as a result of reading in “logbase” format INI files.
bounds (dict) – Fields are ‘xmin’, ‘xmax’, ‘ymin’, ‘ymax’.
uncertfile (str) – Path to ShakeMap uncertainty.xml file.
trimfile (str) – Path to shapefile to use for masking ocean pixels.
slopefile (str) – File containing slope data to be used for slope masking.
saveinputs (bool) – Save input layer grids with model output.
Notes: All input data grids are loaded in one at a time, and saved to a temporary folder that is deleted when the object is deleted. The file names loaded are stored in the self.layers dictionary.
- COEFFS = {'b0': 0, 'b1': 0.334, 'b2': 1.0}¶
- TERMS = {'b1': 'np.log(pgv._data*(1/(1+np.power(2.71828,-2*(MW-6)))))', 'b2': 'X0._data'}¶
- TERMLAYERS = {'b1': 'pgv', 'b2': 'X0'}¶