Hello,
I am currently attempting to write a code that will read .km2 files, which contains a header row with columns of information and an array of precipitation measurements. The file is structured as shown in the attached file example.
Each rainfall intensity is given with a 2 minute interval.
I would like to get the start time and end time of the rainfall time series and be able to insert zeros in the indexs with no value.
I would also like to restructure the data as shown in the example below:
[ TIME ] [Intensity]
19790125 1208 3.333
19790125 1210 0.833
19790125 1212 0.833
... ...
I hope that anybody can help!
Best regards
MadsM
I am currently attempting to write a code that will read .km2 files, which contains a header row with columns of information and an array of precipitation measurements. The file is structured as shown in the attached file example.
Each rainfall intensity is given with a 2 minute interval.
I would like to get the start time and end time of the rainfall time series and be able to insert zeros in the indexs with no value.
I would also like to restructure the data as shown in the example below:
[ TIME ] [Intensity]
19790125 1208 3.333
19790125 1210 0.833
19790125 1212 0.833
... ...
I hope that anybody can help!
Best regards
MadsM