Skip to content

Error in (min(piece, na.rm = TRUE) - head):(max(piece, na.rm = TRUE)  #87

@cyndyfem

Description

@cyndyfem

Hi,
I tried to bias correct CMIP6 data using era5. I tried using eqm, pqm and qdm. They all returned thesame error. Only ISIMIP3 worked.
Please see the error below.

precipitation

BCC_pr_eqm <- biasCorrection(y = OBS_pr, x = BCC_pr, precipitation = TRUE,

  •                          method = "eqm", wet.threshold = 0.1, window = c(30, 15), cross.val = "kfold",
    
  •                          folds = fold, parallel=T , max.ncores=12, ncores= 16)
    

[2021-12-09 20:48:29] Trying to determine the time zone...
[2021-12-09 20:48:29] Time zone identified and set to GMT
See 'setGridDates.asPOSIXlt' to change the time zone
[2021-12-09 20:48:29] Trying to determine the time zone...
[2021-12-09 20:48:29] Time zone identified and set to GMT
See 'setGridDates.asPOSIXlt' to change the time zone
[2021-12-09 20:48:29] Trying to determine the time zone...
[2021-12-09 20:48:29] Time zone identified and set to GMT
See 'setGridDates.asPOSIXlt' to change the time zone
Validation 1, 5 remaining
[2021-12-09 20:48:30] Argument precipitation is set as TRUE, please ensure that this matches your data.
Error in (min(piece, na.rm = TRUE) - head):(max(piece, na.rm = TRUE) + :
result would be too long a vector
In addition: Warning messages:
1: In array(data = c(as.numeric(yearList[seq(2, length(yearList), 3)]), :
NAs introduced by coercion
2: In array(data = c(as.numeric(yearList[seq(2, length(yearList), 3)]), :
NAs introduced by coercion
3: In min(indDays[indObs]) :
no non-missing arguments to min; returning Inf
4: In max(indDays[indObs]) :
no non-missing arguments to max; returning -Inf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions