# Copyright (c) 2024 CNES## All rights reserved. Use of this source code is governed by a# BSD-style license that can be found in the LICENSE file."""CF (Climate and Forecast)-------------------------"""from__future__importannotations
[docs]classAxisUnit(list):"""Units management for axes."""@propertydefunits(self)->list:"""Get the list of known units. Returns: list: The known units. """returnself
[docs]classAxisLatitudeUnit(AxisUnit):"""Units known to the axis defining the latitude."""def__init__(self):super().__init__(('degrees_north','degree_north','degree_N','degrees_N','degreeN','degreesN',))
[docs]classAxisLongitudeUnit(AxisUnit):"""Units known to the axis defining the longitude."""def__init__(self):super().__init__(('degrees_east','degree_east','degree_E','degrees_E','degreeE','degreesE',))
[docs]classAxisTimeUnit(AxisUnit):"""Units known to the axis defining the time."""def__init__(self):super().__init__(('days','seconds'))