Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • CSIndicators CSIndicators
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • CSIndicatorsCSIndicators
  • Issues
  • #42
Closed
Open
Issue created Dec 01, 2023 by Eva Rifà@erifarovMaintainer

Time aggregation functions not drop time dimension

This issue is regarding time aggregation functions:

  • PeriodAccumulation
  • PeriodMean
  • PeriodMax
  • PeriodMin
  • PeriodVariance
  • AccumulationExceedingThreshold
  • TotalSpellTimeExceedingThreshold
  • TotalTimeExceedingThreshold

Current behaviour
Now, when a time dimension is aggregated, it drops.

exp <- CSTools::lonlat_prec_st
dim(exp$data)
exp$attrs$Dates <- Reorder(exp$attrs$Dates, c(2,1))
res <- CST_PeriodAccumulation(data = exp, time_dim = 'ftime',
                              start = list(10, 03), end = list(20, 03))
dim(res$data)
# Same for Dates

Development needed
I think that it would be good to not drop the accumulated dimension since the common structure for a climate data array is with forecast time dimension. As an example, the function from CSTools: SaveExp, needs to add a time dimension of lenght 1 internally to work.

Edited Dec 01, 2023 by Eva Rifà
Assignee
Assign to
Time tracking