import numpy as np
from oasislmf.pytools.common.data import oasis_int, oasis_float
[docs]
SELT_output = [
('EventId', oasis_int, '%d'),
('SummaryId', oasis_int, '%d'),
('SampleId', oasis_int, '%d'),
('Loss', oasis_float, '%.2f'),
('ImpactedExposure', oasis_float, '%.2f'),
]
[docs]
MELT_output = [
('EventId', oasis_int, '%d'),
('SummaryId', oasis_int, '%d'),
('SampleType', oasis_int, '%d'),
('EventRate', oasis_float, '%.6f'),
('ChanceOfLoss', oasis_float, '%.6f'),
('MeanLoss', oasis_float, '%.6f'),
('SDLoss', oasis_float, '%.6f'),
('MaxLoss', oasis_float, '%.6f'),
('FootprintExposure', oasis_float, '%.6f'),
('MeanImpactedExposure', oasis_float, '%.6f'),
('MaxImpactedExposure', oasis_float, '%.6f'),
]
[docs]
QELT_output = [
('EventId', oasis_int, '%d'),
('SummaryId', oasis_int, '%d'),
('Quantile', oasis_float, '%.6f'),
('Loss', oasis_float, '%.6f'),
]
[docs]
SELT_dtype = np.dtype([(c[0], c[1]) for c in SELT_output])
[docs]
MELT_dtype = np.dtype([(c[0], c[1]) for c in MELT_output])
[docs]
QELT_dtype = np.dtype([(c[0], c[1]) for c in QELT_output])
[docs]
SELT_fmt = ','.join([c[2] for c in SELT_output])
[docs]
MELT_fmt = ','.join([c[2] for c in MELT_output])
[docs]
QELT_fmt = ','.join([c[2] for c in QELT_output])