heyoka.model.geo2cart#
- heyoka.model.geo2cart(geo: Iterable[expression], ecc2: float = 0.006694379990197619, R_eq: float = 6378137.0) list[expression]#
- Transform geodetic coordinates into Cartesian coordinates. - Added in version 7.3.0. - This function will convert the input geodetic coordinates geo (height, latitude, longitude) into Cartesian coordinates. The input height is expected in the same units as R_eq, while latitude and longitude are expected in radians. - A few checks are run on the input arguments. Specifically: - the number of geodetic variables (i.e., the length of geo) must be three, 
- ecc2 must be finite and non-negative, 
- R_eq must be finite and positive. 
 - The default values for R_eq and ecc2 are taken from the WGS84 model. - Parameters:
- geo – expressions for the geodetic components. 
- ecc2 – the reference ellipsoid eccentricity squared. 
- R_eq – the reference ellipsoid equatorial radius. 
 
- Returns:
- the expressions for the Cartesian coordinates [x, y, z] in the same units as R_eq. 
- Raises:
- ValueError – if one or more input arguments are malformed, as explained above. 
 
