-
Notifications
You must be signed in to change notification settings - Fork 287
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 reading NetCDF file dimensions with units degrees #4460
Comments
Just to add, iris 3.0.4 doesn't seem to have this problem. |
@PAGWatson You beat me to it 😉 I'm going to regression test against different versions of |
@PAGWatson Okay, so I've narrowed down exactly where this regression in behaviour occurs. Essentially, PR #4198 caused the regression in expected behaviour. This PR was part of the content of With commit dccb6a5 we have the behaviour as you've stated in this issue, and the previous commit data / (unknown) (latitude: 180; longitude: 360)
Dimension coordinates:
latitude x -
longitude - x |
@PAGWatson I've added this to the See v3.2.x GH Discussions for a pulse on the state of play for the |
@PAGWatson Thanks for raising this issue 🍻, and apologies again for the regression. The sample code that you provided really helped expedite this investigation, so thanks for sharing that - super useful 🤩 |
Ping @pp-mo Heads-up 😉 |
@bjlittle Great, thanks for looking into this. |
Just FYI, I am now looking into this. |
🐛 Bug Report
(Edited to show the error is associated with the coordinates having units 'degrees' rather than no units.)
I can create a NetCDF file of a field with 'longitude' and 'latitude' coordinates with units 'degrees' using the netCDF4 module version 1.5.8. Its metadata appears correct according to ncdump and the data it contains looks correct according to ncview. When I read the file using iris 3.1.0, however, it assigns the name 'grid_latitude' to both coordinates.
How To Reproduce
Steps to reproduce the behaviour:
Creating the file, reading it in with iris and printing the cube:
This gives the result
Expected behaviour
That iris would name the coordinates "latitude" and "longitude".
Environment
The text was updated successfully, but these errors were encountered: