oasislmf.pytools.converters.bintocsv.utils.cdf ============================================== .. py:module:: oasislmf.pytools.converters.bintocsv.utils.cdf Attributes ---------- .. autoapisummary:: oasislmf.pytools.converters.bintocsv.utils.cdf.logger Functions --------- .. autoapisummary:: oasislmf.pytools.converters.bintocsv.utils.cdf.get_cdf_data oasislmf.pytools.converters.bintocsv.utils.cdf.cdf_tocsv Module Contents --------------- .. py:data:: logger .. py:function:: get_cdf_data(event_id, damagecdfrecs, recs, rec_idx_ptr, cdf_dtype) 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. .. py:function:: cdf_tocsv(stack, file_in, file_out, file_type, noheader, run_dir)