From 5cfba49234e5e211ae58941a82a19c13896d20a9 Mon Sep 17 00:00:00 2001 From: Paul van Schayck Date: Thu, 12 Oct 2023 10:26:13 +0200 Subject: [PATCH] Add custom axis to extent model --- src/edr_pydantic/extent.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/edr_pydantic/extent.py b/src/edr_pydantic/extent.py index 6833fb5..43668a0 100644 --- a/src/edr_pydantic/extent.py +++ b/src/edr_pydantic/extent.py @@ -23,7 +23,15 @@ class Vertical(EdrBaseModel): vrs: str +class Custom(EdrBaseModel): + interval: List[str] + id: str + values: List[str] + reference: Optional[str] = None + + class Extent(EdrBaseModel): spatial: Spatial temporal: Optional[Temporal] = None vertical: Optional[Vertical] = None + custom: Optional[List[Custom]] = None