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

biasCorrection with delta method returns NA #80

Open
scbrown86 opened this issue Mar 10, 2021 · 0 comments
Open

biasCorrection with delta method returns NA #80

scbrown86 opened this issue Mar 10, 2021 · 0 comments

Comments

@scbrown86
Copy link

Hi,
Using the delta bias correction method returns NA if a window is not set? Also, NA's are returned depending on the values used in window

library(downscaleR)
require(climate4R.datasets)
data("EOBS_Iberia_tas")
data("CORDEX_Iberia_tas")
y <- EOBS_Iberia_tas
x <- CORDEX_Iberia_tas
delta_bc <- biasCorrection(y = y, x = x, method = "delta")
summary(delta_bc$Data) ## All NA

delta_bc <- biasCorrection(y = y, x = x,
                           method = "delta",
                           window = c(30, 15))
summary(delta_bc$Data) # worked

delta_bc <- biasCorrection(y = y, x = x,
                           method = "delta",
                           window = c(365, 183))
summary(delta_bc$Data) # All NA

delta_bc <- biasCorrection(y = y, x = x,
                           method = "delta",
                           window = c(1, 1))
summary(delta_bc$Data) # worked
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