Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cfgrib/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ def build_geography_coordinates(
data=np.array(first["distinctLongitudes"], ndmin=1),
attributes=COORD_ATTRS["longitude"],
)
# latitude and longitude are dimension coordinates
geo_coord_vars["latitude"].attrs["axis"] = "Y"
geo_coord_vars["longitude"].attrs["axis"] = "X"
elif "geography" in encode_cf and grid_type in GRID_TYPES_2D_NON_DIMENSION_COORDS:
geo_dims = ("y", "x")
geo_shape = (first["Ny"], first["Nx"])
Expand Down