pankajkarman / bias_correction

python library for bias correction
MIT License
30 stars 8 forks source link

Errors in running quantile_mapping and normal_mapping #20

Open Darren-Ray opened 1 year ago

Darren-Ray commented 1 year ago

Hi, Thanks for the nice package. I am running bias_correction v0.4 in a Miniconda virtual environment with Python3.11. The monthly rainfall dataset I am using works for the basic_quantile and modified quantile

ds = xr.open_dataset("LME_GPCC_monthly_rainfall.nc") xbc = XBiasCorrection(ds['obs_data'], ds['model_data'], ds['sce_data']) BCda1 = xbc.correct(method='basic_quantile')

but with quantile_mapping returns:

ValueError: zero-size array to reduction operation minimum which has no identity

and the normal_mapping returns: ValueError: array must not contain infs or NaNs

LME_GPCC_monthly_rainfall.zip