Replies: 1 comment 1 reply
-
This vectorizes the interpolation, but only slightly faster since it still loops to create the base coordinates.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looping through some 3D coordinates (time, lat, lon), find the nearest grid point and extract a 6x6 degree values from the gridded field, add it to an initialized with zeros array, and take the mean.
However, I was wondering if there's a vectorized way to do this rather than a loop method because it takes really long for many coordinate points?
I could interpolate it like this, but doesn't satisfy the 6x6 degree requirement.
Beta Was this translation helpful? Give feedback.
All reactions