-
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
Error in SwathDefinition html representation if lon/lat arrays are dask arrays #609
Comments
My guess is this isn't because they are dask but rather a dask array with unknown shape. This comes from doing operations that filter data and drop values rather than replace them with NaNs as we usually do. Usually in satpy we use whatever the dask method is to force the computation of the shape. |
The Problem is actually that the |
LI data is not point data per se, so adding the resolution would make sense in that regard. |
Ah sorry, I misread the error message on my phone. SwathDefinitions have no guarantees about the shape of the data or even the geographic contiguous-ness of the locations. And |
@pnuu Yes true but in the non gridded case it is kind of handled like point data I think. At least it is very difficult to calculate a resolution from non 2D sparse lat/lon arrays I guess. I think what @djhoese said about the |
Code Sample, a minimal, complete, and verifiable piece of code
This was discovered while using the
li_l2_nc
reader but affects allSwathDefinitions
where the lat/lonDataArrays
don't have aresolution
set in the attributes.Problem description
If lon/lat data in the
SwathDefinition
are dask arrays the html representation throws a type error due toNone Type
not having a round method because no resolution can be found in the attributes.Especially in the Li point data case this problem might not be easily solveable.
Expected Output
A html represetation of the
SwathDefinition
.Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
The text was updated successfully, but these errors were encountered: