-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
I am very unsure about this. Originally, they were synonyms. In 21c0387 I undid that.
Here is the current state of affairs
cf-xarray/cf_xarray/accessor.py
Lines 24 to 89 in 21c0387
coordinate_criteria: dict = { | |
"standard_name": { | |
"T": ("time",), | |
"time": ("time",), | |
"Z": ( | |
"air_pressure", | |
"height", | |
"geopotential_height", | |
"altitude", | |
"model_level_number", | |
"atmosphere_ln_pressure_coordinate", | |
"atmosphere_sigma_coordinate", | |
"atmosphere_hybrid_sigma_pressure_coordinate", | |
"atmosphere_hybrid_height_coordinate", | |
"atmosphere_sleve_coordinate", | |
"height_above_geopotential_datum", | |
"height_above_reference_ellipsoid", | |
"height_above_mean_sea_level", | |
), | |
"latitude": ("latitude",), | |
"longitude": ("longitude",), | |
}, | |
"_CoordinateAxisType": { | |
"T": ("Time",), | |
"Z": ("GeoZ", "Height", "Pressure"), | |
"Y": ("GeoY",), | |
"latitude": ("Lat",), | |
"X": ("GeoX",), | |
"longitude": ("Lon",), | |
}, | |
"axis": {"T": ("T",), "Z": ("Z",), "Y": ("Y",), "X": ("X",)}, | |
"positive": {"Z": ("up", "down"), "vertical": ("up", "down")}, | |
"units": { | |
"latitude": ( | |
"degree_north", | |
"degree_N", | |
"degreeN", | |
"degrees_north", | |
"degrees_N", | |
"degreesN", | |
), | |
"longitude": ( | |
"degree_east", | |
"degree_E", | |
"degreeE", | |
"degrees_east", | |
"degrees_E", | |
"degreesE", | |
), | |
}, | |
# "regular_expression": { | |
# "time": r"time[0-9]*", | |
# "vertical": ( | |
# r"(lv_|bottom_top|sigma|h(ei)?ght|altitude|depth|isobaric|pres|" | |
# r"isotherm)[a-z_]*[0-9]*" | |
# ), | |
# "y": r"y", | |
# "latitude": r"x?lat[a-z0-9]*", | |
# "x": r"x", | |
# "longitude": r"x?lon[a-z0-9]*", | |
# }, | |
} | |
coordinate_criteria["standard_name"]["vertical"] = coordinate_criteria["standard_name"][ | |
"Z" | |
] |
Note that 'Z', 'T'
are synonymous with 'vertical', 'time'
.
This would be a good place for someone to chime in.
Metadata
Metadata
Assignees
Labels
No labels