earth2studio.utils.coords
.handshake_size#
- earth2studio.utils.coords.handshake_size(input_coords, required_dim, required_size)[source]#
Simple check to see if a coordinate system of a given dimension is a required size
- Parameters:
input_coords (CoordSystem) – Input coordinate system to validate
required_dim (str) – Required dimension (name of coordinate)
required_size (int) – Required coordinate system size
- Raises:
KeyError – If required dim is not present in input coordinate system
ValueError – If required dimension is not of required size
- Return type:
None
Note
Presently assumes coordinate system of given dimension is 1D