A MATLAB Script for Time and Coordinate Calculations
PDF document and interactive MATLAB script called csystems.m which can be used to perform a variety of time and coordinate calculations. This script performs the following types of time calculations;
convert UTC calendar date and time to UTC Julian date, convert UTC Julian date to UTC calendar date and time, Greenwich apparent sidereal time, convert Universal Coordinated Time (UTC) to Terrestrial Time (TT), convert Universal Coordinated Time (UTC) to Barycentric Dynamical Time (TDB), convert Barycentric Dynamical Time (TDB) to Universal Coordinated Time (UTC)
The csystems script can also be used to perform the following types of coordinate calculations;
convert geodetic coordinates to eci position vector, convert eci state vector to ecf state vector, convert eci state vector to classical orbital elements, convert classical orbital elements to eci state vector, convert flight path coordinates to eci state vector, convert eci state vector to relative flight path coordinates, convert classical orbital elements to modified equinoctial elements, convert modified equinoctial elements to classical orbital elements, convert osculating orbital elements to mean elements, convert eci state vector to Two Line Elements (TLE)