CODA SP3 Mapping Description

CODA provides access to SP3 data. This is done by importing the full file and providing access to an in-memory structure of the data via the CODA data types. Below we will describe how CODA maps the SP3 product structure to one that is based on the CODA data types. We assume you already have a decent understanding of the SP3 format and its details.

A SP3 file consists of a header section followed by a series of epoch data records. Each epoch data record contains the epoch and, for each satellite, a Position and Clock Record and (depending on the Position/Velocity Flag field in the header) a Velocity and Clock Rate-of-Change Record. Both records can be accompanied by a Correlation record.

CODA will try to provide as direct a mapping to the SP3 data as possible. This means that the in memory data structure will follow to a large extend the order in which data is stored in the file. Below the mapping for the SP3 data is provided.

The following table gives the mapping of header sections to CODA parameters

CODA path to variabletype classread type
/header/pos_velstringchar
/header/datetime_starttimedouble
/header/num_epochsintegerint32
/header/data_usedtextstring
/header/coordinate_systextstring
/header/orbit_typetextstring
/header/agencytextstring
/header/gps_weekintegerint16
/header/sec_of_weekrealdouble
/header/epoch_intervalrealdouble
/header/mjd_startintegerint32
/header/frac_dayrealdouble
/header/num_satellitesintegeruint8
/header/sat_id[]textstring
/header/sat_accuracy[]integerint16
/header/file_typetextstring
/header/time_systemtextstring
/header/base_pos_velrealdouble
/header/base_clk_raterealdouble

The following table gives the mapping of the epoch records structure to CODA parameters. An SP3 file can contain multiple epoch records. Each epoch record contains the epoch (datetime start) and a maximum of four records per satellite: Position and Clock Record, Position and Clock Correlation Record (included as an optional corr field in the Position and Clock Record), Velocity and Clock Rate-of-Change Record, and Velocity and Clock Rate-of-Change Correlation Record (included as an optional corr field in the Velocity and Clock Rate-of-Change Record). Note that CODA will not convert any of the values that are stored as exponent-encoded values for you (e.g. the standard deviation values). Any blank integer or floating point values will be set to 0 when read.

CODA path to variabletype classread type
/record[]/epochtimedouble
/record[]/pos_clk[]/vehicle_idtextchar
/record[]/pos_clk[]/x_coordinaterealdouble
/record[]/pos_clk[]/y_coordinaterealdouble
/record[]/pos_clk[]/z_coordinaterealdouble
/record[]/pos_clk[]/clockrealdouble
/record[]/pos_clk[]/x_sdevintegerint8
/record[]/pos_clk[]/y_sdevintegerint8
/record[]/pos_clk[]/z_sdevintegerint8
/record[]/pos_clk[]/clock_sdevintegerint16
/record[]/pos_clk[]/clock_event_flagstringchar
/record[]/pos_clk[]/clock_pred_flagstringchar
/record[]/pos_clk[]/maneuver_flagstringchar
/record[]/pos_clk[]/orbit_pred_flagstringchar
/record[]/pos_clk[]/corr/x_sdevintegerint16
/record[]/pos_clk[]/corr/y_sdevintegerint16
/record[]/pos_clk[]/corr/z_sdevintegerint16
/record[]/pos_clk[]/corr/clock_sdevintegerint32
/record[]/pos_clk[]/corr/xy_corrintegerint32
/record[]/pos_clk[]/corr/xz_corrintegerint32
/record[]/pos_clk[]/corr/xc_corrintegerint32
/record[]/pos_clk[]/corr/yz_corrintegerint32
/record[]/pos_clk[]/corr/yc_corrintegerint32
/record[]/pos_clk[]/corr/zc_corrintegerint32
/record[]/vel_rate[]/vehicle_idtextchar
/record[]/vel_rate[]/x_velocityrealdouble
/record[]/vel_rate[]/y_velocityrealdouble
/record[]/vel_rate[]/z_velocityrealdouble
/record[]/vel_rate[]/clock_raterealdouble
/record[]/vel_rate[]/xvel_sdevintegerint8
/record[]/vel_rate[]/yvel_sdevintegerint8
/record[]/vel_rate[]/zvel_sdevintegerint8
/record[]/vel_rate[]/clkrate_sdevintegerint16
/record[]/vel_rate[]/corr/xvel_sdevintegerint16
/record[]/vel_rate[]/corr/yvel_sdevintegerint16
/record[]/vel_rate[]/corr/zvel_sdevintegerint16
/record[]/vel_rate[]/corr/clkrate_sdevintegerint32
/record[]/vel_rate[]/corr/xy_corrintegerint32
/record[]/vel_rate[]/corr/xz_corrintegerint32
/record[]/vel_rate[]/corr/xc_corrintegerint32
/record[]/vel_rate[]/corr/yz_corrintegerint32
/record[]/vel_rate[]/corr/yc_corrintegerint32
/record[]/vel_rate[]/corr/zc_corrintegerint32