monocongo / climate_indices

Climate indices for drought monitoring
https://monocongo.github.io/climate_indices/
Other
338 stars 163 forks source link

periodicity 'dekadal'? #554

Open rabons opened 1 month ago

rabons commented 1 month ago

Is your feature request related to a problem? Please describe. I would like to calculate SPI values on dekadal periodicity, i.e. every ten days of a month (days 1-10 are dekad 1, days 11-20 dekad 2, days >= 21 are dekad 3 of each month). This is often used in agricultural drought assessments.

Describe the solution you'd like Ideally, I would like to be able to run the spi command with --periodicity dekad, where the input netCDF file for precipitation is equally in dekadal time steps

Describe alternatives you've considered I may have to consider using a different package altogether.

monocongo commented 1 month ago

Yes, this should be possible. We initially started with only monthly data but later added daily. So this would continue that work to add a new periodicity.

rabons commented 1 month ago

Thank you! Could you briefly point me to the files which would require modifying? I could attempt at doing it myself as a starter.