Commit cefd0725 authored by cchou's avatar cchou
Browse files

percentile examples added in documentation

parent 45d9b8f9
Pipeline #4942 failed with stage
in 2 minutes and 21 seconds
  • Author Developer

    Hi @nperez,

    I revised the ftime/time names used in the two functions with/without CST_ prefix. Here in the commit, I can see those changes. But I found in CI/CD log file it did not run the updated script as follows.

    exp <- CSTools::lonlat_data$exp
    DOT <- CST_TotalTimeExceedingThreshold(exp, threshold = 280, time_dim = 'ftime')
    exp$data <- array(rnorm(5 * 3 * 214 * 2, mean = 25, sd = 3),
    > +                    c(memb = 5, sdate = 3, time = 214, lon = 2)) 
    exp$Dates[[1]] <- c(seq(as.Date("01-05-2000", format = "%d-%m-%Y"), 
    > +                     as.Date("30-11-2000", format = "%d-%m-%Y"), by = 'day'),
    > +                 seq(as.Date("01-05-2001", format = "%d-%m-%Y"), 
    > +                     as.Date("30-11-2001", format = "%d-%m-%Y"), by = 'day'),
    > +                 seq(as.Date("01-05-2002", format = "%d-%m-%Y"), 
    > +                     as.Date("30-11-2002", format = "%d-%m-%Y"), by = 'day'))
    #threshold <- QThreshold()
    SU35 <- CST_TotalTimeExceedingThreshold(exp, threshold = 35)
    > Error in Apply(list(data), target_dims = time_dim, fun = .exceedthreshold,  : 
    >   Could not find dimension 'ftime' in 1th object provided in 'data'.

    Do you know why it ran the older script?

    Thanks in advance.

    Chung

  • No, I don't know.

Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment