Skip to content

should 'X', 'Y' be synonyms for 'longitude', 'latitude'? #23

Closed
@dcherian

Description

@dcherian

I am very unsure about this. Originally, they were synonyms. In 21c0387 I undid that.

Here is the current state of affairs

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions