Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • S s2dverification
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 65
    • Issues 65
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • s2dverification
  • Issues
  • #230
Closed
Open
Issue created Aug 05, 2019 by dverfail@dverfailDeveloper

"Kharin" option in Clim() function

Hi @aho and @nperez ,

@bsolaraj and I found a couple of issues in the Clim() function when the "kharin" option is set to TRUE:

(1) in the computation of the climatology, out_clim_obs is used when we think it should be out_clim_exp (the latter needs to be previously defined):

out_clim_exp <- trend_exp - trend_obs + InsertDim(InsertDim(InsertDim(MeanListDim(out_clim_obs, 
            c(2, 1)), 1, dimexp[1]), 2, dimexp[2]), 3, dimexp[3])

should probably be:

out_clim_exp <- trend_exp - trend_obs + InsertDim(InsertDim(InsertDim(MeanListDim(out_clim_exp, 
            c(2, 1)), 1, dimexp[1]), 2, dimexp[2]), 3, dimexp[3])

with out_clim_exp defined previously as: out_clim_exp <- Mean1Dim(var_exp, posdim = 3, narm = TRUE) Note that the same issue might also apply to the "Fuckar" method, even though we haven't checked if this is really the case.

(2) for the moment, the clim_exp output of Clim() using this option has a startdate dimension (because it keeps the same dimensions as the experiment). This is not specified in the documentation, which states that clim_exp is an "Array with same dimensions as var_exp except the third (starting dates) and, depending on the parameters, the second (members), which disappear." The documentation for the Kharin (and maybe also the Fuckar) method should be updated.

Thanks!

Deborah

@rfernand @fdoblasreyes

Edited Aug 05, 2019 by dverfail
Assignee
Assign to
Time tracking