Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in running quantile_mapping and normal_mapping #20

Open
Darren-Ray opened this issue Jun 7, 2023 · 0 comments
Open

Errors in running quantile_mapping and normal_mapping #20

Darren-Ray opened this issue Jun 7, 2023 · 0 comments

Comments

@Darren-Ray
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant