oasislmf.pytools.converters.bintocsv.utils.cdf¶
Attributes¶
Functions¶
|
Get the cdf data produced by getmodel. |
|
Module Contents¶
- oasislmf.pytools.converters.bintocsv.utils.cdf.get_cdf_data(event_id, damagecdfrecs, recs, rec_idx_ptr, cdf_dtype)[source]¶
Get the cdf data produced by getmodel. Note that the input arrays are lists of cdf entries, namely the shape on axis=0 is the number of entries. Args:
event_id (int): event_id damagecdfrecs (ndarray[damagecdfrec]): cdf record keys recs (ndarray[ProbMean]): cdf record values rec_idx_ptr (ndarray[int]): array with the indices of rec where each cdf record starts. cdf_dtype (np.dtype): cdf numpy dtype.
- Returns:
data (ndarray[cdf_dtype]): cdf data extracted from recs/getmodel.