downscaleR icon indicating copy to clipboard operation
downscaleR copied to clipboard

Error in biasCorrection function

Open dinilu opened this issue 4 years ago • 0 comments

Hi! I think I may have found an issue in biasCorrection function. The error can be reproduced by running the code in the notebook 2018_climate4R_example1 (https://github.com/SantanderMetGroup/notebooks/blob/master/2018_climate4R_example1.ipynb) from the project github page. I have tried also to run the function with different datasets and found the same error message. The only code and data that seems to work for me is the example code in the help page of the function.

The line of code and the error message is as follows:

SUf.bc <- biasCorrection(y = SU, x = SUh, method = "pqm", fitdistr.args = list(densfun = "normal"))

Error in arr[, , , ind, , ] <- grid[["Data"]] : número de items para para sustituir no es un múltiplo de la longitud del reemplazo
2. fillGridDates(y)
1. biasCorrection(y = SU, x = SUh, method = "pqm", fitdistr.args = list(densfun = "normal"))

dinilu avatar Sep 03 '20 15:09 dinilu