Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • CSTools CSTools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • External
  • CSToolsCSTools
  • Issues
  • #98
Closed
Open
Issue created Oct 10, 2022 by aho@ahoMaintainer

Error in CST_Analog vignette

The code doesn't work well in Analogs_vignette.Rmd https://earth.bsc.es/gitlab/external/cstools/-/blob/master/vignettes/Analogs_vignette.Rmd

down <- CST_Analogs(expL = lonlat_data$exp, obsL = lonlat_data$obs)

Error in (function (expL, obsL, time_expL, excludeTime = NULL, obsVar = NULL, : Parameter 'time_obsL' can not be length 0

The error comes from .analogs() line 807. time_obsL has value at the beginning in Analogs().

down <- CST_Analogs(expL = lonlat_data$exp, obsL = lonlat_data$obs,
                     nAnalogs = 2, AnalogsInfo = TRUE)

returns the same error.


The problem is that expL and obsL have the same sdates. And at line747 and 760, time_obsL becomes empty because all the dates are excluded.

The function always works like this, so it's weird that the vignette worked before.

Edited Oct 10, 2022 by aho
Assignee
Assign to
Time tracking