Skip to content

Error :: Error in check.quantile.validity #125

@aseemsharma1

Description

@aseemsharma1

I am getting an error as below when run the climpact.ncdf.wrapper.r file for the sample data that was provided within the package.
I am using the latest version of climpact in R version 4.4.3 in Rstudio. Below are the screenshot of error and R version. Where and why this error is coming and how to fix it ?

This error is coming for the sample data provided with the package.
The steps I took are:

  • used climpact.ncdf.thresholds.wrapper.r to create the threshold file (used all default as provided for the provided sample data)
  • Used above step created threshold as a threshold file to run the create.indices.from.files function

Error

Error in check.quantile.validity(quantiles, present.var.list, days.in.base) : 
  Temperature in-base quantiles must contain 10th and 90th percentiles.

R session info

> sessionInfo()
R version 4.4.3 (2025-02-28)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.5 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0 
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8        LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8   
 [6] LC_MESSAGES=C.UTF-8    LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C           LC_TELEPHONE=C        
[11] LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

time zone: America/Los_Angeles
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] terra_1.7-78            lmomco_2.5.1            SPEI_1.8.1              climdex.pcic_1.1-11     ncdf4_1.24             
[6] climdex.pcic.ncdf_0.5-4 PCICt_0.5-4.4          

loaded via a namespace (and not attached):
 [1] gtable_0.3.5        dplyr_1.1.4         compiler_4.4.3      ncdf4.helpers_0.3-7 tidyselect_1.2.1    Rcpp_1.0.12        
 [7] parallel_4.4.3      udunits2_0.13.2.1   scales_1.3.0        lattice_0.22-5      plyr_1.8.9          ggplot2_3.5.1      
[13] R6_2.5.1            Lmoments_1.3-1      TLMoments_0.7.5.3   generics_0.1.3      MASS_7.3-65         backports_1.5.0    
[19] checkmate_2.3.1     tibble_3.2.1        snow_0.4-4          functional_0.6      munsell_0.5.1       lubridate_1.9.3    
[25] pillar_1.9.0        rlang_1.1.4         utf8_1.2.4          reshape_0.8.9       timechange_0.3.0    cli_3.6.3          
[31] magrittr_2.0.3      grid_4.4.3          rstudioapi_0.16.0   lifecycle_1.0.4     vctrs_0.6.5         glue_1.7.0         
[37] codetools_0.2-19    zoo_1.8-12          goftest_1.2-3       fansi_1.0.6         lmom_3.0            colorspace_2.1-0   
[43] tools_4.4.3         pkgconfig_2.0.3    ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions