-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feature request: skipna keyword #11
Comments
I wonder if this issue is solved? |
No. Isn’t |
Hi, I am facing the same trouble. If there is NaN values in my data, the bias correction won't work properly. |
You could try to drop NaNs in all arrays where one array has NaNs before using bias_correction. Once that works you could share that code here and we can merged it with the skipna keyword. PR welcome. |
the point is NANs come because the timeseries of the model and historical and refernce is not equal. |
Right. So in xarray logic usually the non overlapping part would be dropped. Would be nice to implement that here as well. |
in xarray many functions drop indexes where NaN is the value.
in
bias_correction
I sometimes getValueError: array must not contain infs or NaNs
from https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.lstsq.htmlThis happens when my input data has
NaN
s.Traceback:
How to fix: have a check for NaNs and drop them in
reference
andmodel
ordata_to_be_corrected
The text was updated successfully, but these errors were encountered: