You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The component footprinttocsv allows the user to select a range of event ID values to convert. Should a range not be specified, a default range of [1, 999999999] is used. Therefore, in cases where the event ID lies above the upper default value but lower than INT_MAX, no output for those events would be produced, even though the event ID is valid.
Steps to Reproduce (Bugs only)
Create a footprint file in csv format with a single entry with event ID greater than 999,999,999.
Convert it to binary format with footprinttobin.
Convert the binary file back to csv format with footprinttocsv without specifying a range for event IDs.
Version / Environment information
Bug found in ktools v3.12.2, but likely to have existed for a while.
Example data / logs
Using footprint file where event IDs are greater than the default maximum value:
$ footprinttocsv | head -5
event_id, areaperil_id, intensity_bin_id, probability
$ footprinttocsv -e 1-2000000000 | head -5
event_id, areaperil_id, intensity_bin_id, probability
1000000001, 1, 3, 1.0000000000e+00
1000000001, 2, 1, 1.0000000000e+00
1000000001, 3, 1, 1.0000000000e+00
1000000002, 1, 5, 1.0000000000e+00
The text was updated successfully, but these errors were encountered:
Issue Description
The component
footprinttocsv
allows the user to select a range of event ID values to convert. Should a range not be specified, a default range of [1, 999999999] is used. Therefore, in cases where the event ID lies above the upper default value but lower thanINT_MAX
, no output for those events would be produced, even though the event ID is valid.Steps to Reproduce (Bugs only)
footprinttobin
.footprinttocsv
without specifying a range for event IDs.Version / Environment information
Bug found in ktools v3.12.2, but likely to have existed for a while.
Example data / logs
Using footprint file where event IDs are greater than the default maximum value:
The text was updated successfully, but these errors were encountered: