-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Copy link
Description
emsarray/src/emsarray/conventions/shoc.py
Lines 94 to 103 in 82ad399
| latitude = next( | |
| name for name, variable in self.dataset.variables.items() | |
| if variable.dims == self._dimensions | |
| and variable.attrs["standard_name"] == "latitude" | |
| ) | |
| longitude = next( | |
| name for name, variable in self.dataset.variables.items() | |
| if variable.dims == self._dimensions | |
| and variable.attrs["standard_name"] == "longitude" | |
| ) |
This code tries to find latitude and longitude variables. If a variable has the correct dimensions but does not have a standard name, this will raise a KeyError. The code should be updated to handle this case.