[ncl-talk] SPEI (drought index) calculation...

qudsia zafar missquaddus at gmail.com
Thu Apr 17 02:32:40 MDT 2025


Hi i am using cru datasets (ts 4.08) for precipitation and potential
evapotranspiration. I have done (precip_minus_pet = prc - pet) and then
I have used the function 'dim_gamfit_n' to estimate shape and scale
parameters for the gamma distribution fitting.

However in the next step of spei calculation I need to do the following:

spei = gmm_transform(precip_minus_pet, shape, scale)

I have now all the three data (precip_minus_pet, shape, scale) but i don't
know if NCL has a gamma transformation function available? I have seen
'cdfgam_p' but I don't know if this corresponds to the gamma transform?.
Kindly advise which function can be used in the final step of spei
calculation. Many Thx..

qudsia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20250417/9c21a4d9/attachment.htm>


More information about the ncl-talk mailing list