-
Notifications
You must be signed in to change notification settings - Fork 15
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
dimension mismatch upon running pixel_overlaps #50
Comments
I'm running into a similar issue with a different dataset (temperature and precipitation data) when trying to aggregate over US counties with a shapefile. The same files used to work fine on a previous version of xagg. |
Same issue here |
Hey all - sorry for the delay. Could one of you post example files that cause this issue? I'm having trouble reproducing the bug locally. (and let me know what version of |
Here are a couple of files and a minimum working example that (at least for me) produced the bug. I'm using xagg version 0.3.1 installed from conda-forge. |
I think the problem may be lines 230-237 of xagg/aux.py:
Note the 'bnds' dimension to create |
Yeah that looks plausible, thanks @simonmoulds @ccallahan45 . The really weird thing is I still can't replicate the problem locally, even with @ccallahan45 's replication data. Running
In any case, let me fix those lines, and hopefully that'll fix this issue. |
Could someone for whom this error occurs locally test the new release #52 locally and make sure it works? Thanks! |
Thanks @ks905383 - this is now working for me. |
Hello, But I see the version of xagg with the fix is version 0.3.1.1 I recommend to please update the github page installation instructions |
Fixed, thanks for pointing that out. |
Hello!
I attempted to run
xa.pixel_overlaps
using tropical cyclone wind data and a shapefile (GeoDataFrame) of US state boundaries. I received the following error: "ValueError: new dimensions ('lat', 'bnds') must be a superset of existing dimensions ('lat', 'bnd')".Based on the traceback, this appears to be occurring when the latitude and longitude bounds are created. The creation of the "bnds_tmp" variable appears to concatenate a variable with the dimension "bnds" to a variable with the dimension "bnd."
Full error message is included here:
thanks!
The text was updated successfully, but these errors were encountered: