Skip to content

What Interpolate_1d do? #2710

Answered by dopplershift
ShareRingNS asked this question in Q&A
Discussion options

You must be logged in to vote

interpolate_1d interpolates to calculate a value within a set of discrete values. For instance, if you have two temperature values, say 20 degC and 25 degC, given at 1000 hPa and 500 hPa, you could calculate an estimate of the value at 750 hPa using this:

t750 = interpolate_1d(units.Quantity(750, 'hPa'), units.Quantity([1000, 500], 'hPa'), units.Quantity([20, 25], 'degC'))

I should also note that interpolate_1d is only intended for internal use and isn't part of the supported API. It is not guaranteed to exist within the codebase for future use.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ShareRingNS
Comment options

@dopplershift
Comment options

Answer selected by dopplershift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants