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

Problems with biasCorrection with LOO in some months #83

Open
MariaMercedesPoggi opened this issue May 14, 2021 · 0 comments
Open

Problems with biasCorrection with LOO in some months #83

MariaMercedesPoggi opened this issue May 14, 2021 · 0 comments

Comments

@MariaMercedesPoggi
Copy link

Hi climate4R group!
I'm having trouble running the biasCorrection function for my dataset, which has information of a sesonal model for the May-Jun-Ago. The error that arises is: "Error in if (any(years < min(all.years) | years > max(all.years))) { :"
I share a mini example, where the same error appears:

data(VALUE_Iberia_pr)
y <- VALUE_Iberia_pr
data(NCEP_Iberia_pr)
x <- gridArithmetics(NCEP_Iberia_pr, 86400, operator = "*")
y.feb <- subsetGrid(y, season = 2)
x.feb <- subsetGrid(x, season = 2)
cal <- biasCorrection(y = y.feb, x = x.feb, precipitation = TRUE, method = "eqm", wet.threshold = 0.1, cross.val = "loo")

I've been tracking down the error, but didn't have much luck. Any help is welcome! Thank you!
Mercedes

@MariaMercedesPoggi MariaMercedesPoggi changed the title Problems with biasCorrection with LOO in boreal summer months Problems with biasCorrection with LOO in some months May 14, 2021
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