-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RegularGridInterpolator returning 4D array using xarray object as input #14824
Comments
test_da looks like this after the coordinate arrays are assigned:
|
Hi @rebeccaringuette, thanks for dropping by. This looks to me more like a usage question. If so, please try StackOverflow or our user mailing list instead. Issues are just for bugs or enhancement proposals since we don't have the bandwidth to do more. If there is a bug, please elaborate on the bug (answering the questions from the bug template at least), otherwize please close the issue. |
Hi,
The bug is that the RegularGridInterpolator function does not properly
execute when given an xarray object as compared to a numpy array. My
work-around should not be necessary and slows everything down. Can this be
fixed?
Rebecca Ringuette
…On Sat, Oct 9, 2021 at 11:11 AM Pamphile ROY ***@***.***> wrote:
Hi @rebeccaringuette <https://github.com/rebeccaringuette>, thanks for
dropping by. This looks to me more like a usage question. If so, please try
StackOverflow or our user mailing list instead. Issues are just for bugs or
enhancement proposals since we don't have the bandwidth to do more.
If there is a bug, please elaborate on the bug, otherwize please close the
issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14824 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALX7QXXICNKYLWXSHCVNQELUGBLTZANCNFSM5FUKC2IQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Well sounds more like an issue on xarray's side than SciPy then, no? We don't support xarray explicitly in the code base (at least now). |
Good point. I'll move the issue to xarray.
Rebecca Ringuette
…On Tue, Oct 12, 2021 at 2:38 PM Pamphile ROY ***@***.***> wrote:
Well sounds more like an issue on xarray's side than SciPy then, no? We
don't support xarray explicitly in the code base (at least now).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14824 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALX7QXQPQE6I25V6QRXAOY3UGR6DTANCNFSM5FUKC2IQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I am using a chunked xarray object from a netCDF4 file as the input to scipy's RegularGridInterpolator as below.
I am dealing with 'medium data', which fits on my disk but not in memory, so I need to avoid converting the object into a numpy array, which takes about 5GB on my computer. I have to do this 15 times, so the second option I described is not practical. My current (irritating) solution is:
which is clumsy and takes several seconds longer than the simplistic result2 call. Is there a better way to do this? Why the differing behavior in the two cases? I get the same behavior using interpn via xarray.
The text was updated successfully, but these errors were encountered: