Skip to content

Commit eae5c5c

Browse files
authored
Add more standard names (#114)
1 parent 5f7e385 commit eae5c5c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cf_xarray/accessor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
# Internally we only use X, Y, Z, T
4646
coordinate_criteria: MutableMapping[str, MutableMapping[str, Tuple]] = {
4747
"standard_name": {
48+
"X": ("projection_x_coordinate",),
49+
"Y": ("projection_y_coordinate",),
4850
"T": ("time",),
4951
"time": ("time",),
5052
"vertical": (
@@ -72,8 +74,8 @@
7274
"ocean_sigma_z_coordinate",
7375
"ocean_double_sigma_coordinate",
7476
),
75-
"latitude": ("latitude",),
76-
"longitude": ("longitude",),
77+
"latitude": ("latitude", "grid_latitude"),
78+
"longitude": ("longitude", "grid_longitude"),
7779
},
7880
"_CoordinateAxisType": {
7981
"T": ("Time",),
@@ -1320,9 +1322,7 @@ def add_bounds(self, dims: Union[Hashable, Iterable[Hashable]]):
13201322
return self._maybe_to_dataarray(obj)
13211323

13221324
def bounds_to_vertices(
1323-
self,
1324-
keys: Union[str, Iterable[str]] = None,
1325-
order: str = "counterclockwise",
1325+
self, keys: Union[str, Iterable[str]] = None, order: str = "counterclockwise"
13261326
) -> Dataset:
13271327
"""
13281328
Convert bounds variable to vertices.

0 commit comments

Comments
 (0)