Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • SUNSET SUNSET
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • 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
  • SUNSETSUNSET
  • Merge requests
  • !104

Draft: Merge new syear metrics and statistics module

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Nadia Milders requested to merge dev-check_scorecards into master Nov 14, 2023
  • Overview 0
  • Commits 7
  • Pipelines 1
  • Changes 9

This merge request is to track the changes in this branch. The changes made here are to allow the calculation of the aggregated significance of the skill metrics for the scorecards.

New recipe checks have been included to ensure that the required metrics for the scorecards are computed. This change applies to the script: tools/check_recipe.R.

The following new metrics have been included in the modules/Skill/Skill.R script; crps_clim_syear, crps_syear, rps_clim_syear and rps_syear. These metrics are not temporally aggregated so include an additional dimension: syear. Due to this they cannot be saved with the current function save_metrics. The s2dv functions CRPS and RPS have been updated to include the parameter return_mean to allows the syear dimension to be kept when return_mean = False. These changes are not yet applied in s2dv so can be found in the folder; modules/Skill/R/tmp/.

A new module has been included, modules/Statistics/Statistics.R. Currently this calculates the following statistics; covariance, variance and standard deviation. These statistics have the following dimensions:

> dim(statistics$cov)
      dat       var      sday     sweek      time  latitude longitude 
        1         1         1         1         2         6        11 

Both the new syear metrics and the statistics cannot be saved with the current saving functions, so a new saving function using the CSTool function: CST_SaveExp, will be created to save these metrics and statistics.

FYI @erifarov

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: dev-check_scorecards