Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • s2dv s2dv
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 17
    • Issues 17
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • s2dvs2dv
  • Issues
  • #111
Closed
Open
Issue created Nov 07, 2023 by aho@ahoMaintainer

Corr(): wrong output dimensions when dat_dim and memb_dim are NULL

Summary

The outputs except corr have dimensions "nexp" and "nobs" when dat_dim and memb_dim are NULL. The condition here https://earth.bsc.es/gitlab/es/s2dv/-/blob/master/R/Corr.R#L440 needs to be improved.

Example

exp11 <- array(10 + rnorm(72), dim = c(sdate = 6, lat = 3, lon = 4))
obs11 <- array(10 + rnorm(72), dim = c(sdate = 6, lat = 3, lon = 4))
res <- Corr(exp11, obs11, dat_dim = NULL, memb_dim = NULL)
dim(res$p.val)
nexp nobs  lat  lon 
   1    1    3    4 
Assignee
Assign to
Time tracking