From d1e59898907b5f5db91ba9401340725d28ab51c1 Mon Sep 17 00:00:00 2001 From: Helen Kershaw Date: Wed, 6 Nov 2024 15:46:50 -0500 Subject: [PATCH] fix: outgoing vertical coordinate should be 'height' in meters using zGridCenter fixes #524 Following the call tree, using oncenters always convert_vertical_obs -> convert_vert_distrib case (VERTISHEIGHT) -> find_vert_indices -> find_vert_level(oncenters = true) case (VERTEIGHT) if (oncenters) -> find_height_bounds(zGridCenter) --- models/mpas_atm/model_mod.f90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/mpas_atm/model_mod.f90 b/models/mpas_atm/model_mod.f90 index 29282f7a8a..e62bd602ed 100644 --- a/models/mpas_atm/model_mod.f90 +++ b/models/mpas_atm/model_mod.f90 @@ -4686,8 +4686,8 @@ subroutine convert_vert_distrib(state_handle, ens_size, location, obs_kind, ztyp fdata = 0.0_r8 do i = 1, n where (istatus == 0) - fdata(i, :) = zGridFace(k_low(i, :),c(i))*(1.0_r8 - fract(i, :)) + & - zGridFace(k_up (i, :),c(i))*fract(i, :) + fdata(i, :) = zGridCenter(k_low(i, :),c(i))*(1.0_r8 - fract(i, :)) + & + zGridCenter(k_up (i, :),c(i))*fract(i, :) end where enddo