How to calculate future SPEI using historical and projected precipitation & temperature data #552
Unanswered
DnyaneshWarade
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Future SPEI calculation entails determining the deviation of future water balance values (calculated from projected precipitation and temperature) from the reference historical period (mean and standard deviation of historical period to be considered).
My query is can the current implementation of spei in climate_indices package can calculate future spei as per the above description?
For example, if my reference period is 1980-2023 and I have monthly precipitation and temperature values for this period and future period is 2025-2050 and I have projected precipitation and temperature values for this period, can I use the below to calculate future spei values? If yes, will providing 1980-2050 precipitation & pet values in precips_mm: np.ndarray and pet_mm: np.ndarray respectively, 1980 as data_start_year, 1980 as calibration_year_initial, 2023 as calibration_year_final, work?
def spei(
precips_mm: np.ndarray,
pet_mm: np.ndarray,
scale: int,
distribution: Distribution,
periodicity: compute.Periodicity,
data_start_year: int,
calibration_year_initial: int,
calibration_year_final: int,
fitting_params: dict = None,
) -> np.ndarray:
Beta Was this translation helpful? Give feedback.
All reactions