Skip to content

Bug fix: vertical interpolation routines return NaN if zdata exactly equals desiredloc - #321

Open
MandaChasteen-NOAA wants to merge 1 commit into
NCAR:developfrom
MandaChasteen-NOAA:develop
Open

MandaChasteen-NOAA wants to merge 1 commit into
NCAR:developfrom
MandaChasteen-NOAA:develop

Conversation

@MandaChasteen-NOAA

Copy link
Copy Markdown

Issue: the vertical interpolation routines in fortran/wrf_user.f90 (DINTERP3DZ and DINTER3DZ_2DLEV) evaluate zdata values at two adjacent vertical levels against the specified desiredloc value to determine whether desiredloc lies between them. If one of the levels has zdata exactly equal to desiredloc, the check fails, and the interpolated variable returns a missing value at this grid point.

Fix: add an ELSE IF block to check whether zdata(i,j,kp) exactly equals desiredloc, and if so, simply return the value of data3d(i,j,kp)

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.

1 participant