-
Notifications
You must be signed in to change notification settings - Fork 94
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
The finding of the optimal radius of influence makes assumption on the ordering of the dimensions in the longitude array #554
Comments
As mentioned in your pull request we can't assume xarray is available in Pyresample. That is standard in Satpy, but not pyresample. If I'm understanding your PR correctly, your swath DataArrays have xarray dimensions
|
Ok, thanks for the comments and suggestions. And, yes, the dimensions are Concerning option 2: Yes, but actually in this case it is the data format which is "wrong", or non-standard. So, for now I rather keep the reader as it is, and wait for the agency (ESA) to fix the format. They have acknowledged the issue at least. But, as the reader returns an xarray DataArray I thought it would be appropriate to actually try use that information, rather than make assumption on the data layout. Having said that, I also like your option 1. So, would you prefer:
|
I don't agree with this, but I'm not doing the coding so I can accept it. Everyone is admitting it is "wrong" (or at least unexpected) and the solution should be a simple
I prefer 2. It (at least theoretically) should only improve the accuracy of this method which is at best a guess. I'd prefer to avoid Xarray workarounds as much as possible, especially when the alternative is "make this functionality work better", but I could also be missing some complexity in this task so I could be convinced otherwise. |
I agree that option 2 is preferable, and that the reader should be adapted such that the order of dimensions is |
Code Sample, a minimal, complete, and verifiable piece of code
The problem is well illustrated by reading and trying to remap the AWS tesdata:
See the comments in the Satpy PR here: pytroll/satpy#2565
In the method to determine the optimal radius of influence to be used when reampping data (
pyresample/pyresample/geometry.py
Line 664 in 6a8afc0
The specific code lines that should be adapted in case that
self.lons
is anxarray.DataArray
is this part I believe:I would propose something like this instead:
Problem description
[this should also explain why the current behaviour is a problem and why the
expected output is a better solution.]
Expected Output
Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
The text was updated successfully, but these errors were encountered: