Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C climix
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • climix
  • climix
  • Issues
  • #273

Reference period definition in index_definitions.yml

To conclude after offline conversation. Some index definitions utilises a reference period in the definition for the calculation and there is no obvious way in how this should be handled. A suggestion would be to included the reference period in the clix-meta index definition, given the following example:

    index_function:
      name: count_thresholded_percentile_occurrences
      parameters:
        data_threshold:
          kind: quantity
          standard_name: lwe_precipitation_rate
          long_name: "Wet day threshold"
          data: 1
          units: "mm day-1"
        data_condition:
          kind: operator
          operator: ">="
        percentile:
          kind: quantity
          standard_name:
          proposed_standard_name: quantile
          long_name: "Percentile value"
          data: "{PRC}"
          units: "%"
        percentile_condition:
          kind: operator
          operator: ">"
        reference_period:
          kind: time_period
          data: ['1961-01-01 00:00:00', '1991-01-01 00:00:00']

the reference period could then be used in the index calculation and the output should contain a global attribute giving information about which reference period that was used.

global attributes:
		:reference_period = "1961-01-01 00:00:00 to 1991-01-01 00:00:00"

or something similar.

Notes there were also a discussion about having an additional Auxiliary coordinate variable with the following information:

reference_period:(var_name: "reference_period", standard_name: "reference_epoch", value: mean(n1,n2), bounds: [n1, n2], unit: "days since 1961-01-01 00:00:00")

where n1 and n2 are the point values for the start and end of the time period defined by the unit.

Edited Dec 20, 2022 by Carolina Nilsson
Assignee
Assign to
Time tracking