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
  • Potential temperature
  • Equivalent Potential temperature
  • Virtual potential temperature
  • Saturation potential temperature

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

  • Vapour pressure
  • Vapour pressure from RH

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