Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C climix
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • 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
  • climix
  • climix
  • Issues
  • #132
Closed
Open
Created Nov 18, 2019 by Lars Bärring@a001257Developer

Correct handling of units (as per discussion)

Currently the output units is drawn from the user unit column[of the master table]. This is usually, but not not always correct, and irrespective of which it is an ad hoc solution that should have a more permanent and correct solution. For example the temperature_sum unit should be Kelvin seconds (in canonical units) but this currently cannot infer this from the input units, which is Kelvin. As discussed, it seems like that intensive quantities and extensive quantities have to be handled differently. Or, more precisely, if input is an intensive quantity and output is an extensive quantity (as is the case for temperature_sum and some of the indices related to precipitation)

We could use something like [I]/[O]=c[C], where [I] and [O] is respectively input and output units, c is a numeric constant having unit [C]. The input unit is given by the input data file, and the output unit is given by the metadata defining the index.

Now, if [C]=1/s the aggregation involves a transformation of an intensive quantity to an extensive quantity, and if [C]=s it is the other way around.

[cf #60 (closed), #81 (closed)]

Assignee
Assign to
Time tracking