Skip to content

Commit

Permalink
feat: Accept 5d spectral dimensions (#34)
Browse files Browse the repository at this point in the history
Allows for parameters which has coordinates for both "frequency" and
"direction". Prepares for allowing 5d spectral parameters in the Atmos
Data Store.
  • Loading branch information
simentha authored Oct 17, 2024
1 parent 9b12c56 commit 5787e5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atmos_validation/schemas/dim_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
WEST_EAST = "west_east"
TIME = "Time"
HEIGHT_DIM_PREFIX = "height_"
FREQUENCY = "frequency"
DIRECTION = "direction"


def get_height_dim_from_parameter_key(key: str) -> str:
Expand All @@ -18,4 +20,5 @@ def get_acceptable_dims_from_parameter_key(key: str) -> List[List[str]]:
[TIME, SOUTH_NORTH, WEST_EAST],
[height_dim, SOUTH_NORTH, WEST_EAST],
[TIME, height_dim, SOUTH_NORTH, WEST_EAST],
[TIME, SOUTH_NORTH, WEST_EAST, FREQUENCY, DIRECTION],
]

0 comments on commit 5787e5c

Please sign in to comment.