earth2studio.utils.coords.handshake_coords#

earth2studio.utils.coords.handshake_coords(input_coords, target_coords, required_dim)[source]#

Simple check to see if the required dimensions have the same coordinate system

Parameters:
  • input_coords (CoordSystem) – Input coordinate system to validate

  • target_coords (CoordSystem) – Target coordinate system

  • required_dim (str) – Required dimension (name of coordinate)

Raises:
  • KeyError – If required dim is not present in coordinate systems

  • ValueError – If coordinates of required dimensions don’t match

Return type:

None