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
  • Merge requests
  • !185

CST_Subset: Correct subset indices for metadata

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Eva Rifà requested to merge develop-CST_Subset_metadata into master Oct 02, 2023
  • Overview 5
  • Commits 1
  • Pipelines 1
  • Changes 1

Hi @vagudets,

There is an issue in CST_Subset in this line.

library(CSTools)
load("/esarchive/scratch/erifarov/git/cstools/data/lonlat_temp_st.rda")
data <- CST_Subset(x = lonlat_temp_st$exp, along = c('ftime', 'sdate'), indices = list(2,5))

# Error in indices[[which(along == dim_along)]] : subscript out of bounds

# Corrected function
source("https://earth.bsc.es/gitlab/external/cstools/-/raw/develop-CST_Subset_metadata/R/CST_Subset.R")

If you agree I'll merge the branch since it's a small change.

Regards,
Eva

Edited Oct 03, 2023 by Eva Rifà
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-CST_Subset_metadata