watem-sedem / rfactor

R-factor
https://watem-sedem.github.io/rfactor/
GNU Lesser General Public License v3.0
6 stars 2 forks source link

Time interval different from 10min #96

Closed claudiacagn closed 1 month ago

claudiacagn commented 1 month ago

Hello! I would like to know if the "rfactor" library can be called with rainfall timeseries having acquisition intervals different from 10minutes. Thank you Claudia

Sachagobeyn commented 1 month ago

Hi Claudia,

This should work, you have a dataframe-like input as stated in https://watem-sedem.github.io/rfactor/get-started.html#from-10-rain-data-to-ei-for-a-single-station-year but with 15 minutes.

Does this help you further?

claudiacagn commented 1 month ago

Hi Sacha, since the rainfall data I have are natively measured every 1 min, I'm planning to calculate the R factor for 1 min, 10min and 30min time intervals. The 30mins interval seems to return unrealistically high values, so I wonder whether the 15 min interval should not be exceeded. On the other hand, the 1 min data should work, shouldn't they? Thank you for the clarification! Claudia

Sachagobeyn commented 1 month ago

Technically it should work, I would suggest to use the https://watem-sedem.github.io/rfactor/api/rfactor.html#rfactor.rfactor.maximum_intensity to compute intensity as other methods are tailored to 10 minutes. Also check for the enery function if there are notes on the time resolution

claudiacagn commented 1 month ago

Thank you for the suggestion, I should have solved it by modifying the energy functions. For me the issue can be marked as solved!