Skip to content

Bugfix: Use correct physics constant for theta in AMDAR PBLH METplus use case #3273

@jason-english

Description

@jason-english

Describe the Problem

Correct a minor error in the potential temperature (theta) computation. Theta should be calculated using reference pressure (100000 Pa), not SLP (101325 Pa).

Expected Behavior

The primary purpose of this change is to have physics accuracy. This should have a small, but real, impact on the PBLH computation. The impact will be small because the correction will shift the entire theta profile, therefore having a negligible impact on the delta theta computation.

Environment

I may try this on Ursa; I previously used Jet before it was shut down.

To Reproduce

See METplus use cases: Planetary Boundary Layer (PBL); the error is in the python embedding script

Relevant Deadlines

April 30, 2026

Funding Source

NONE

Assignee

Jason English
Daniel Adriaansen

Define Related Issue(s)

NONE

Bugfix Checklist

See the METplus Workflow for details.

  • Complete the issue definition above, including the Time Estimate and Funding Source.

  • Fork this repository or create a branch of main_<Version>.
    Branch name: bugfix_<Issue Number>_main_<Version>_<Description>

  • Fix the bug and test your changes.

  • Add/update log messages for easier debugging.

  • Add/update unit tests.

  • Add/update documentation.

  • Add any new Python packages to the METplus Components Python Requirements table.

  • Push local changes to GitHub.

  • Submit a pull request to merge into main_<Version>.
    Pull request: bugfix <Issue Number> main_<Version> <Description>

  • Define the pull request metadata, as permissions allow.
    Select: Reviewer(s) and Development issue
    Select: Milestone as the next bugfix version
    Select: Coordinated METplus-X.Y Support project for support of the current coordinated release

  • Iterate until the reviewer(s) accept and merge your changes.

  • Delete your fork or branch.

  • Complete the steps above to fix the bug on the develop branch.
    Branch name: bugfix_<Issue Number>_develop_<Description>
    Pull request: bugfix <Issue Number> develop <Description>
    Select: Reviewer(s) and Development issue
    Select: Milestone as the next official version
    Select: METplus-Wrappers-X.Y.Z Development project for development toward the next official release

  • Close this issue.

Metadata

Metadata

Labels

Type

No type

Projects

Status

🩺 Needs Triage

Relationships

None yet

Development

No branches or pull requests

Issue actions