You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using loess instead of a 4th degree polynomial to extract the forced response when calculating partitioning on different indicators. The timeseries in the example above is heat_wave_total_length in Gaspe.
Contribution
I would be willing/able to open a Pull Request to address this bug.
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Setup Information
env: xscen-0.9
Description
I am trying to do a loess smoothing on a array that is nearly all zeros and I get the following error.
I think the issue stems from here:
xclim/xclim/sdba/loess.py
Line 167 in 7ca606d
residual =0 because the fit is too good. Then, dividing by 0 on line 167 creates a inf. On the next iteration, w has nans and breaks on line 162.
I'm not quite sure how the weigths work and what would be an appropriate way to fix that...
Steps To Reproduce
Additional context
I am using loess instead of a 4th degree polynomial to extract the forced response when calculating partitioning on different indicators. The timeseries in the example above is
heat_wave_total_length
in Gaspe.Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: