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
  • !152

Allow member dimension to be NULL in QuantileMapping

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Eva Rifà requested to merge develop-QuantileMapping_memb_dim into master Mar 23, 2023
  • Overview 0
  • Commits 2
  • Pipelines 2
  • Changes 4

QuantileMappping doesn't allow to have member dimension to NULL. For example this:

exp <- 1 : c(1 * 1 * 6 * 3 * 8 * 8)
dim(exp) <- c(dataset = 1,  sdate = 6, ftime = 3, lat = 8, lon = 8)

obs <- 101 : c(100 + 1 * 1 * 6 * 3 * 8 * 8)
dim(obs) <- c(dataset = 1, sdate = 6, ftime = 3, lat = 8, lon = 8)

QuantileMapping(exp, obs, memb_dim = NULL)
# Error in obs[, -sd] : incorrect number of dimensions

With the change:

res <- QuantileMapping(exp, obs, memb_dim = NULL)
dim(res)
# sdate dataset  ftime   lat    lon 
#   6       1      3      8      8 
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-QuantileMapping_memb_dim