Geometric coordinate transforms (sarpy.geometry.geocoords)¶
Provides coordinate transforms for WGS-84 and ECF coordinate systems
- sarpy.geometry.geocoords.ecf_to_geodetic(ecf, ordering='latlong')¶
Converts ECF (Earth Centered Fixed) coordinates to WGS-84 coordinates.
- Parameters:
ecf (numpy.ndarray|list|tuple) –
ordering (str) – If ‘longlat’, then the return will be [longitude, latitude, hae]. Otherwise, the return will be [latitude, longitude, hae].
- Returns:
The WGS-84 coordinates, of the same shape as ecf.
- Return type:
numpy.ndarray
- sarpy.geometry.geocoords.geodetic_to_ecf(llh, ordering='latlong')¶
Converts WGS-84 coordinates to ECF (Earth Centered Fixed).
- Parameters:
llh (numpy.ndarray|list|tuple) –
ordering (str) – If ‘longlat’, then the input is [longitude, latitude, hae]. Otherwise, the input is [latitude, longitude, hae].
- Returns:
The ECF coordinates, of the same shape as llh.
- Return type:
numpy.ndarray
- sarpy.geometry.geocoords.wgs_84_norm(ecf)¶
Calculates the normal vector to the WGS_84 ellipsoid at the given ECF coordinates.
- Parameters:
ecf (numpy.ndarray|list|tuple) –
- Returns:
The normal vector, of the same shape as ecf.
- Return type:
numpy.ndarray
- sarpy.geometry.geocoords.ecf_to_ned(ecf_coords, orp_coord, absolute_coords=True)¶
Convert from ECF to North-East-Down (NED) coordinates.
- Parameters:
ecf_coords (numpy.ndarray) –
orp_coord (numpy.ndarray) –
absolute_coords (bool) – Are these absolute (i.e. position) coordinates? The alternative is relative coordinates like velocity, acceleration, or unit vector values.
- Return type:
numpy.ndarray
- sarpy.geometry.geocoords.ned_to_ecf(ned_coords, orp_coord, absolute_coords=True)¶
Convert from North-East-Down (NED) to ECF coordinates.
- Parameters:
ned_coords (numpy.ndarray) – The NED coordinates.
orp_coord (numpy.ndarray) – The Origin Reference Point in ECF coordinates.
absolute_coords (bool) – Are these absolute (i.e. position) coordinates? The alternative is relative coordinates like velocity, acceleration, or unit vector values.
- Return type:
numpy.ndarray
- sarpy.geometry.geocoords.ecf_to_enu(ecf_coords, orp_coord, absolute_coords=True)¶
Convert from ECF to East-North-Up (ENU) coordinates.
- Parameters:
ecf_coords (numpy.ndarray) –
orp_coord (numpy.ndarray) –
absolute_coords (bool) – Are these absolute (i.e. position) coordinates? The alternative is relative coordinates like velocity, acceleration, or unit vector values.
- Return type:
numpy.ndarray
- sarpy.geometry.geocoords.enu_to_ecf(enu_coords, orp_coord, absolute_coords=True)¶
Convert from East-North-UP (ENU) to ECF coordinates.
- Parameters:
enu_coords (numpy.ndarray) – The ENU coordinates.
orp_coord (numpy.ndarray) – The Origin Reference Point in ECF coordinates.
absolute_coords (bool) – Are these absolute (i.e. position) coordinates? The alternative is relative coordinates like velocity, acceleration, or unit vector values.
- Return type:
numpy.ndarray