Skip to content

Conversation

@daflack
Copy link
Contributor

@daflack daflack commented Jan 2, 2026

Creates a series of basic conversion operators, not worrying about grid staggering or vertical levels at this point. The humidity, pressure, and temperature are all treated together due to the fact that they are strongly linked to each other and require the mix of code to be calculated.

Fixes #1852.

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

  • Documentation has been updated to reflect change.
  • New code has tests, and affected old tests have been updated.
  • All tests and CI checks pass.
  • Ensured the pull request title is descriptive.
  • Conda lock files have been updated if dependencies have changed.
  • Attributed any Generative AI, such as GitHub Copilot, used in this PR.
  • Marked the PR as ready to review.

@daflack daflack self-assigned this Jan 2, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

Coverage

@daflack
Copy link
Contributor Author

daflack commented Jan 2, 2026

Conversions required, once basic code is done (excluding tests and full documentation will tick off)

A set of conversion operators for different humidity variables to be stored under humidity.py:

  • specific humidity to mixing ratio
  • mixing ratio to specific humidity
  • specific humidity to relative humidity
  • mixing ratio to relative humidity
  • relative humidity to specific humidity
  • relative humidity to mixing ratio

A set of derived temperature operators in 'temperature.py':

  • Virtual temperature
  • Dewpoint temperature
  • Wet-bulb temperature
  • Potential temperature
  • Equivalent potential temperature
  • Virtual potential temperature
  • Saturation potential temperature
  • Wet-bulb potential temperature

A set of derived pressure operators in 'pressure.py':

  • Vapour pressure
  • Vapour pressure from RH
  • Exner pressure

@daflack daflack force-pushed the 1852_conversion_operators branch 2 times, most recently from 5be21d9 to e917bd6 Compare January 5, 2026 13:43
@daflack
Copy link
Contributor Author

daflack commented Jan 5, 2026

Once full documentation done, will tick off.

A set of conversion operators for different humidity variables to be stored under humidity.py:

  • specific humidity to mixing ratio
  • mixing ratio to specific humidity
  • specific humidity to relative humidity
  • mixing ratio to relative humidity
  • relative humidity to specific humidity
  • relative humidity to mixing ratio

A set of derived temperature operators in 'temperature.py':

  • Virtual temperature
  • Dewpoint temperature
  • Wet-bulb temperature
  • Potential temperature
  • Equivalent potential temperature
  • Virtual potential temperature
  • Saturation potential temperature
  • Wet-bulb potential temperature

A set of derived pressure operators in 'pressure.py':

  • Vapour pressure
  • Vapour pressure from RH
  • Exner pressure

@daflack
Copy link
Contributor Author

daflack commented Jan 5, 2026

Once tests done, will tick off.

A set of conversion operators for different humidity variables to be stored under humidity.py:

  • specific humidity to mixing ratio
  • mixing ratio to specific humidity
  • specific humidity to relative humidity
  • mixing ratio to relative humidity
  • relative humidity to specific humidity
  • relative humidity to mixing ratio

A set of derived temperature operators in 'temperature.py':

  • Virtual temperature
  • Dewpoint temperature
  • Wet-bulb temperature
  • Potential temperature
  • Equivalent potential temperature
  • Virtual potential temperature
  • Saturation potential temperature
  • Wet-bulb potential temperature

A set of derived pressure operators in 'pressure.py':

  • Vapour pressure
  • Vapour pressure from RH
  • Exner pressure

@daflack daflack force-pushed the 1852_conversion_operators branch from 13c9d93 to 45e8bcd Compare January 6, 2026 09:43
@daflack daflack force-pushed the 1852_conversion_operators branch from dde531a to 667889d Compare January 7, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Basic conversion operators

2 participants