-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Trouble with sortby() #56
Comments
I think an index is missing from the gribberish python code. Can you send me a link to the grib file you're working with? |
Sure! See below: I also tried the reindex(). It suddenly worked, but then it suddenly didn't again, with the same error as sortby(). |
Should be fixed with main branch or with version 0.20.2 which is building for release now :) .. Lemme know if you still run into issues! |
Wow, works perfectly! Thank you! And thanks for making this lib.
|
I'm getting an error when trying to reorder a grib file from NOAA to make it work with openlayers. Since the raw file comes with 0 to 360 lons, I just minus 180 from the lons above 180. This works fine, but I want to reorder so that the data now goes from -180 to 180.
However, when I try ds.sortby('logintude') I get
AttributeError: 'GribberishBackendArray' object has no attribute 'oindex'
. Same if i try to sort by latitude. Am I doing something wrong?Python code to reproduce:
Content of ds after -180 operation:
Error trace
The text was updated successfully, but these errors were encountered: