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

Draft: BiasCorrection accepting 'window' dimension for the subseasonal case

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Nuria Pérez-Zanón requested to merge develop-BiasCor_window into master Oct 26, 2022
  • Overview 3
  • Commits 4
  • Pipelines 4
  • Changes 3

Hi @lpalma

In this branch I have included a new parameter 'window_dim' in BiasCorrection() function. By default this parameter is NULL, but for the subseasonal case it will allow to include 'sday' dimension while doing the cross-validation in the 'syear' dimension.

Do you mind taking a look and sharing here how far it is to be useful?

Thanks a lot,

Núria

Some code to tests it:

# check atomic
var_obs <- array(1:24, c(syear = 8, sday = 3))
var_exp <- array(1:240, c(member = 10, syear = 8, sday = 3))
res <- .sbc(var_obs, var_exp)
# check original
mod1 <- 1 : (1 * 3 * 4 * 5 * 6 * 7)
dim(mod1) <- c(dataset = 1, member = 3, sdate = 4, ftime = 5, lat = 6, lon = 7)
obs1 <- 1 : (1 * 1 * 4 * 5 * 6 * 7)
dim(obs1) <- c(dataset = 1, member = 1, sdate = 4, ftime = 5, lat = 6, lon = 7)
a <- BiasCorrection(exp = mod1, obs = obs1)
# check window
a <- BiasCorrection(exp = mod1, obs = obs1, window_dim = 'ftime')

FYI @vtorralba

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-BiasCor_window