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
  • #59
You need to sign in or sign up before continuing.
Closed
Open
Issue created Jun 20, 2025 by Verónica Torralba-Fernández@vtorralbaDeveloper

CST_PeriodAccumulation duplicated time dimensio

Hi @vagudets @tkariyat

I'm trying to compute the spei using the functions included in CSIndicators. I've a problem with the CST_PeriodAccumulation function. It provides an array with the 'time' dimension duplicated. You can see the example below.

# Input
dim(data_obs_diff$data)
dat       var      sday     sweek     syear      time  latitude longitude 
1         1         1         1         5         3        49        61 
ensemble 
1 

# Accumulation
data_obs_accum <- CST_PeriodAccumulation(
  data = data_obs_diff,
  rollwidth = 3,
  sdate_dim = "syear",
  ncores = 1)

# Output
dim(data_obs_accum$data)
dat       var      sday     sweek     syear      time  latitude longitude 
1         1         1         1         5         3        49        61 
ensemble  time 
1          1

Do you think this can be fixed?

Thanks,

Vero

Assignee
Assign to
Time tracking