Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug setting destination grid object sigma vector passed to MESSy #314

Merged
merged 1 commit into from
Mar 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix bug setting destination grid object sigma vector passed to MESSy
This update only affects models which use HEMCO to vertically regrid
input data that are not on the model vertical grid, i.e. CESM and WRF-GC.
Previously the 3D vertical sigma array was collapsed into a 1D array
passed to MESSy with the wrong ordering of latitudes and longitudes.

Signed-off-by: Lizzie Lundgren <elundgren@seas.harvard.edu>
  • Loading branch information
lizziel committed Mar 17, 2025
commit 1c1da01821474ec55450dc36aa96094845e3da61
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.10.3] - TBD
### Fixed
- Fixed bug setting destination grid object sigma vector passed to MESSy for vertical regridding

## [3.10.2] - 2025-03-04
### Added
- Added `.zenodo.json` for auto-DOI generation upon version releases
2 changes: 1 addition & 1 deletion src/Core/hcoio_messy_mod.F90
Original file line number Diff line number Diff line change
@@ -790,8 +790,8 @@ SUBROUTINE AXIS_CREATE( HcoState, lon, lat, lev, ax, RC )
! -------------------------------------------------------------
LOW = 1
UPP = 1
DO J = 1, YLEV !lat
DO I = 1, XLEV !lon
DO J = 1, YLEV !lat
UPP = LOW + ZLEV - 1 ! Upper index
ax(N)%dat%vd(LOW:UPP) = lev(I,J,:) ! Pass to vector
LOW = UPP + 1 ! Next lower index
Loading