Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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
  • #250

Closed
Open
Created Dec 09, 2021 by Lars Bärring@a001257Developer

Accept Fahrenheit as temperature units

Currently several (all?) temperature based index_functions contain the following check of input data

assert (units == Unit("Kelvin")) or (units == Unit("degree_Celsius"))

which does not allow for US (and some other) observational datasets. Consider replacing this with the following

assert unit in temperature_units

and somewhere else:

temperature_units = [
    Unit("Kelvin"), 
    Unit("degree_Celsius"), 
    Unit("degree_Fahrenheit"),
]
# other T-units seems less likely, but
# can easily be added at this one place
Assignee
Assign to
Time tracking