Skip to content

Correct local TM5 Prandtl factor and ERA5 heat-flux timing - #181

Merged
cfranken merged 5 commits into
mainfrom
fix/tm5-prandtl-era5-flux
Nov 26, 2026
Merged

cfranken merged 5 commits into
mainfrom
fix/tm5-prandtl-era5-flux

Conversation

@cfranken

Copy link
Copy Markdown
Member

Summary

  • Use the reciprocal of the TM5 bldiff convective Prandtl number in tm5_beljaars_viterbo_local_kz, including the stability coefficient and ccon. Leave the separate local Holtslag–Boville closure unchanged.
  • Read accumulated ERA5 sensible and latent heat at the right endpoint of each window, including midnight across files. Keep instantaneous fields at the start of the window. tm5_calc_kzz already uses the right endpoint.
  • Add regression tests for the reported unstable column and for daily and monthly ERA5 inputs.

Validation

411 checks passed across test_pbl_fields.jl, test_era5_surface_reader.jl, and test_tm5_bldiff.jl on Julia 1.12.6. Tracer impact has not been measured; affected ERA5 payloads need reprocessing.

Refs #177 and #178. The separate layer-geometry concern in #177 and the missing-zust warning in #178 are not addressed here.

Copilot AI balanced review requested due to automatic review settings November 24, 2026 22:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@codecov

codecov Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.66%. Comparing base (0b13756) to head (44c2896).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #181      +/-   ##
==========================================
+ Coverage   88.64%   88.66%   +0.01%     
==========================================
  Files         342      342              
  Lines       37148    37174      +26     
==========================================
+ Hits        32929    32959      +30     
+ Misses       4219     4215       -4     
Files with missing lines Coverage Δ
src/Operators/Diffusion/pbl_physics.jl 99.19% <100.00%> (-0.81%) ⬇️
...Preprocessing/PhysicsInputs/era5_surface_reader.jl 84.93% <100.00%> (+2.81%) ⬆️
src/Preprocessing/PhysicsInputs/tm5_pbl_inputs.jl 90.56% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cfranken
cfranken merged commit c89ed1e into main Nov 26, 2026
13 checks passed
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.

2 participants