XCFRAME – Coordinate Transformation

Transforms position between a number of geo- and heliocentric coordinate frames

You are now following this Submission

XCFRAME transforms position between a number of geo- and heliocentric coordinate frames used in space physics and aerospace applications. For ECEF <-> ECI transformations, velocity and acceleration is also supported. The position might be given, and returned, in Cartesian (x, y, z) or spherical (azimuth, elevation, distance) coordinates. For the ECEF frame, geodetic coordinates (latitude, longitude, altitude) is also supported (WGS72 or WGS84).
Currently the following 12 coordinate frames are supported: Geographic (ECEF, GRC, EFG), Geocentric Equatorial Inertial (ECI, TOD, GCI), Geocentric Equatorial Inertial for epoch J2000.0, Geomagnetic, Geocentric Solar Ecliptic, Geocentric Solar Magnetospheric, Solar Magnetic, Radial Tangential Normal, Geocentric Solar Equatorial, Heliocentric Earth Ecliptic, Heliocentric Aries Ecliptic and Heliocentric Earth Equatorial.
Detailed help is available in the program and examples are included. The implementation is based on the CXFORM C-code written by Ed Santiago (LANL) and Ryan Boller (NASA/GSFC). The coordinate transformations are based on Mike Hapgood's work in: Planet. Space Sci. Vol. 40, No. 5. pp. 71l-717, 1992.

Cite As

Patrik Forssén (2026). XCFRAME – Coordinate Transformation (https://uk.mathworks.com/matlabcentral/fileexchange/63870-xcframe-coordinate-transformation), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1.0

IGRF constants updated to 13th generation.

1.0.0.0

None