Skip to content

Commit

Permalink
fix: outgoing vertical coordinate should be 'height' in meters using …
Browse files Browse the repository at this point in the history
…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)
  • Loading branch information
hkershaw-brown committed Nov 6, 2024
1 parent e218864 commit d1e5989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/mpas_atm/model_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d1e5989

Please sign in to comment.