Skip to content

Extrapolation in Regrid_Data_Plane #1570

Discussion options

You must be logged in to vote

@cjmelick I'll try to clarify the existing logic to help us decide what, if anything, should be done about it.

First, the regridding logic mostly resides in the vx_regrid library. The met_regrid_generic() function handles many of the regridding types. The from_grid and to_grid variables store the definition of the source and destination grids. And the high-level logic is this:

  1. Loop over the to_grid (x, y) points and convert each to (lat, lon).
  2. Convert that (lat, lon) to from_grid (x, y) coordinates.
  3. If that (x, y) point is off the from_grid AND the from_grid is NOT a global grid, the result is bad data.
  4. Otherwise interpolate nearby values to that from (x, y) grid point location.

You men…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JohnHalleyGotway
Comment options

You must be logged in to vote
1 reply
@JohnHalleyGotway
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment