handshake_coords¶
Import path: earth2studio.utils.coords.handshake_coords
Documentation¶
Simple check to see if the required dimensions have the same coordinate system
Parameters:
-
input_coords(CoordSystem or DataArray) –Input coordinate system to validate
-
target_coords(CoordSystem or DataArray) –Target coordinate system
-
required_dim(hashable or sequence of hashable) –Required dimension(s) (name of coordinate)
-
subset(bool, default:False) –Require target labels to be present in input, by default False. Used before explicit model-specific subsetting.
Raises:
-
KeyError–If required dim is not present in coordinate systems
-
ValueError–If coordinates of required dimensions don't match