Related to MDK issue https://github.com/OasisLMF/OasisLMF/issues/906. A new, optional input file event_dict.bin gives the OriginalEventRate and EventDescription for each event ID. If the event dictionary file exists, the event rates should be taken from this file rather than calculated from the occurrence file as is the current default in eltcalc.
Three tasks to complete:
[x] New binary evedicttobin to convert the event dictionary file to binary format.
[x] New binary evedicttocsv to convert the event dictionary file to csv format.
[x] Extract EventRate from events dictionary file if present in eltcalc.
Edit: Use a dedicated event_rates.csv file which contains the event_id and OriginalEventRate fields. If this file exists, the event rates should be taken from this file rather than calculated from occurrence file as is the current default in eltcalc. eltcalc should be able to read the event rates file in csv format.
Issue Description
Related to MDK issue https://github.com/OasisLMF/OasisLMF/issues/906.
A new, optional input fileevent_dict.bin
gives theOriginalEventRate
andEventDescription
for each event ID. If the event dictionary file exists, the event rates should be taken from this file rather than calculated from the occurrence file as is the current default ineltcalc
.Three tasks to complete:New binaryevedicttobin
to convert the event dictionary file to binary format.New binaryevedicttocsv
to convert the event dictionary file to csv format.ExtractEventRate
from events dictionary file if present ineltcalc
.Edit: Use a dedicated
event_rates.csv
file which contains theevent_id
andOriginalEventRate
fields. If this file exists, the event rates should be taken from this file rather than calculated from occurrence file as is the current default ineltcalc
.eltcalc
should be able to read the event rates file in csv format.