> ## Documentation Index
> Fetch the complete documentation index at: https://docs.valar.space/llms.txt
> Use this file to discover all available pages before exploring further.

# TDM (Tracking Data Message)

> Working with CCSDS Tracking Data Message format in VALAR

> For the complete documentation index, see [llms.txt](https://docs.valar.space/llms.txt).

The Tracking Data Message (TDM) is a standardized ASCII text format for exchanging spacecraft tracking observations between ground stations, control centers, and orbit determination systems. Unlike OEM which contains computed ephemeris, TDM contains raw or processed **measurement data** from tracking sensors such as radar, optical telescopes, and ranging systems.

> [!NOTE]
>
> **Doppler observables:** VALAR supports `DOPPLER_INSTANTANEOUS` subject to its measurement-import requirements. See [Doppler (Range-Rate) Measurements](#doppler-range-rate-measurements) for required uncertainty, producer conventions, corrections, and error codes. These importer requirements are distinct from the general TDM schema.

## Key Components

A TDM file contains a hierarchical structure:

* **Header**: File-level metadata including format version, creation date, and originator
* **Segment(s)**: One or more independent tracking data segments, each containing:
  * **Metadata Section**: Observation context (participants, time system, measurement types, reference frame)
  * **Data Section**: Time-tagged measurements in chronological order

Each segment represents a distinct tracking pass, observation session, or measurement configuration. A single TDM file can contain multiple segments for different tracking stations or observation periods.

## Structure Overview

### TDM Hierarchy

```
TDM File
├── Header (format version, creation date, originator)
└── Segment 1
    ├── Metadata Section (META_START to META_STOP)
    └── Data Section (DATA_START to DATA_STOP)
└── Segment 2
    ├── Metadata Section
    └── Data Section
└── ... (additional segments)
```

### Segment Structure

Each segment is self-contained with its own metadata and data:

* **Metadata** defines the observation context and applies to all measurements in the data section
* **Data** contains timestamped observations in the format: `KEYWORD = EPOCH VALUE`

## Metadata Fields

### Required Metadata

| Field | Description | Example Values |
| - | - | - |
| **TIME\_SYSTEM** | Time system for all epochs | UTC, TAI, GPS |
| **PARTICIPANT\_1** | First participant in tracking path | Ground station ID, spacecraft ID |
| **PARTICIPANT\_2** | Second participant in tracking path | Spacecraft ID, ground station ID |
| **MODE** | Data transmission mode | SEQUENTIAL, SINGLE\_DIFF |
| **PATH** | Signal path between participants | 1,2 (one-way), 2,1,2 (two-way) |

### Observation-Specific Metadata

Depending on the measurement type, additional metadata is required:

#### Angle Observations

* **ANGLE\_TYPE**: Geometry convention (AZEL, RADEC, XEYN, XSYE)
* **REFERENCE\_FRAME**: Coordinate frame for angles (EME2000, ITRF, topocentric)

#### Range Observations

* **RANGE\_UNITS**: Units for range measurements (km, m, s, RU)
* **TRANSMIT\_BAND**: Frequency band (S, X, Ka)
* **RECEIVE\_BAND**: Receiving frequency band

### Optional Metadata

* **TIMETAG\_REF**: Time tag reference point (TRANSMIT, RECEIVE, BOUNCE)
* **INTEGRATION\_INTERVAL**: Data averaging period (seconds)
* **CORRECTION\_ANGLE\_1**: Correction applied to first angle component
* **CORRECTION\_ANGLE\_2**: Correction applied to second angle component
* **CORRECTION\_RANGE**: Range correction applied

> [!NOTE]
>
> Corrections fields indicate whether measurements have been preprocessed to remove systematic errors, biases, or atmospheric effects.

## Measurement Types

TDM supports a wide variety of tracking observations:

### Angle Measurements

| Keyword | Description | Units | ANGLE\_TYPE |
| - | - | - | - |
| **ANGLE\_1** | First angle component | degrees | Azimuth (AZEL), RA (RADEC), X-East (XEYN) |
| **ANGLE\_2** | Second angle component | degrees | Elevation (AZEL), Dec (RADEC), Y-North (XEYN) |

**Common ANGLE\_TYPE values:**

* **AZEL**: Azimuth and elevation (local horizontal frame, typical for radar and RF tracking)
* **RADEC**: Right ascension and declination (inertial frame, typical for optical telescopes)
* **XEYN**: X-East and Y-North (topocentric Cartesian)
* **XSYE**: X-South and Y-East (alternative topocentric)

### Range Measurements

| Keyword | Description | Units |
| - | - | - |
| **RANGE** | One-way or two-way range | km, m, s, or range units (RU) |

Range measurements can be:

* **One-way**: Signal travels from transmitter to receiver (PATH = 1,2 or 2,1)
* **Two-way**: Signal transmitted, reflected, and received (PATH = 1,2,1 or 2,1,2)

### Doppler (Range-Rate) Measurements

DOPPLER measurements in a CCSDS 503.0-B-2 TDM are line-of-sight **range-rate** observations — the time derivative of the slant range between a ground station and a spacecraft. Unlike angle (AZEL/RADEC) or range observations, a Doppler sample reports how fast the geometric distance to the target is changing at a given epoch (m/s).

Doppler observables flow through the same orbit determination pipeline that consumes range and angle measurements: VALAR converts the producer-side observable into the internal one-way / two-way MEAN range-rate convention used by the measurement model, normalises the timetag to receive-time, and emits a normalised record carrying band, transponder-delay, and correction-state metadata for downstream OD.

#### Supported Doppler observables

The CCSDS standard defines three Doppler-family keywords. VALAR accepts only `DOPPLER_INSTANTANEOUS` and rejects the other two with explicit error codes.

| Keyword | Status | Notes |
| - | - | - |
| **DOPPLER\_INSTANTANEOUS** | Accepted | Range-rate sample at the stated epoch (km/s on the wire, converted to m/s on emission) |
| **DOPPLER\_INTEGRATED** | Rejected | Raises `TRK_DOPPLER_INTEGRATED_UNSUPPORTED` — different observable model |
| **DOPPLER\_COUNT** | Rejected | Raises `TRK_DOPPLER_COUNT_UNSUPPORTED` — phase-count observable, not in scope |

#### INTEGRATION\_INTERVAL constraint

`DOPPLER_INSTANTANEOUS` rows are accepted only when the block-level `INTEGRATION_INTERVAL` is **absent or ≤ 1 s**. A larger window means the value is a window average; timestamping it as if it were instantaneous introduces a systematic time shift of order `Tc/2`, which can translate into kilometre-scale along-track position bias in LEO. Larger windows are rejected with `TRK_INSTANTANEOUS_INTEGRATION_WINDOW_TOO_LARGE`.

The 1 s threshold matches the operational envelope of modern commercial and institutional Earth-orbit receivers (KSAT, SSC, Leaf Space, Viasat RT Logic, post-2015 ESTRACK).

#### Required measurement uncertainty

VALAR's current TDM parser does not expose per-observation sigma. Configure the actual measurement uncertainty in the [sensor catalog](https://docs.valar.space/features/tracking-sensors.md), separately for every measurement type and station used:

| Measurement type | Required sigma array | Catalog units |
| - | - | - |
| RADEC / AZEL | Two components | arc-seconds |
| RANGE | One component | meters |
| DOPPLER | One component | m/s in VALAR's normalized observable convention |

Every component must be finite and strictly positive. Missing, wrong-length, zero, negative, or nonfinite uncertainty produces `TRK-4005` with the sensor, type, units, and configuration action. Supplied sigmas are preserved; no band-based or absolute fallback is applied. Adding an unsupported sigma keyword to the TDM does not satisfy this requirement. Historical `sigmaDefaulted` flags describe old imports, not a current acceptance option.

#### Required producer correction information

For Doppler ingestion, explicitly declare `CORRECTIONS_APPLIED = YES` or `NO` consistently with the producer's processing and correction rows/metadata. Missing or contradictory information is rejected as `TRK_AMBIGUOUS_CORRECTIONS`; absence is not interpreted as `NO`. A YES declaration without correction rows or correction metadata is also insufficient. Uncorrected two-way data require actual `TRANSMIT_DELAY_1` and `RECEIVE_DELAY_1` values.

Ingestion and OD readiness are separate: the current OD mapper refuses an uncorrected ionosphere when the real model coefficients and carrier frequency are unavailable. Obtain genuinely ionosphere-corrected observations with matching producer-applied metadata; changing the declaration alone does not apply a correction.

#### Two-way Doppler convention

CCSDS 503.0-B-2 does **not** mandate which convention a producer uses for two-way Doppler. The two valid forms differ by a factor of two and the keyword alone does not distinguish them — silently assuming one when the producer uses the other introduces a 100% bias in the observable.

VALAR resolves the convention per sensor via the `twoWayDopplerConvention` field on the sensor configuration. See the [Sensors page](https://docs.valar.space/features/tracking-sensors.md) for where to set it.

| Setting | Definition | Adapter behaviour |
| - | - | - |
| **MEAN** | Observable is the arithmetic mean of uplink and downlink instantaneous rates (DSN convention) | Accept; emit observable as-received (km/s → m/s) |
| **SUM** | Observable is `d/dt` of the round-trip range (e.g. GMAT's native form) | Accept; halve observable at emission to normalise to the internal MEAN convention; provenance logged |
| **UNDECLARED** | No per-sensor configuration | Reject the two-way block; configure the producer's actual SUM or MEAN convention. |

**Behaviour per setting:**

* **MEAN**: ingestion succeeds without warning; the value is consumed verbatim by the measurement model.
* **SUM**: subject to the other ingestion checks, the observable is halved before emission and the conversion is logged. Downstream OD sees a MEAN-convention observable.
* **UNDECLARED at any magnitude, including zero**: ingestion rejects the block with `TRK_AMBIGUOUS_TWO_WAY_CONVENTION`. Ask the producer which convention it uses and configure that value on the sensor; VALAR does not infer it from magnitude.

#### Doppler error codes

Codes are scoped at three fatal levels — file-level (entire file rejected), block-level (block rejected, sibling blocks continue), and observation-level (row rejected, sibling rows continue). Missing uncertainty is file-fatal. Historical assumed-MEAN and assumed-NO warning codes are not current acceptance paths.

| Code | Cause | Remediation |
| - | - | - |
| `TRK-4005` | Required catalog uncertainty is missing or invalid. | Configure a dimension-matched, finite positive sigma array in the units above, then retry. |
| `TRK_AMBIGUOUS_CORRECTIONS` | Correction state is missing, inconsistent, or insufficiently supported by correction rows/metadata. | Obtain the producer's actual processing declaration and matching rows/metadata. Do not relabel the observations to bypass the error. |
| `TRK_AMBIGUOUS_TWO_WAY_CONVENTION` | Two-way convention is undeclared, regardless of magnitude. | Confirm the producer's convention and configure SUM or MEAN on the sensor. |
| `TRK_DOPPLER_INTEGRATED_UNSUPPORTED` | Observation row uses `DOPPLER_INTEGRATED`, which VALAR does not accept. | Re-emit the data with `DOPPLER_INSTANTANEOUS` rows. |
| `TRK_DOPPLER_COUNT_UNSUPPORTED` | Observation row uses `DOPPLER_COUNT`, which VALAR does not accept. | Re-emit the data with `DOPPLER_INSTANTANEOUS` rows. |
| `TRK_INSTANTANEOUS_INTEGRATION_WINDOW_TOO_LARGE` | `DOPPLER_INSTANTANEOUS` row carries `INTEGRATION_INTERVAL > 1 s`. | Obtain observations within the supported integration interval; do not merely relabel a longer average as instantaneous. |
| `TRK_TDM_PARSE_FAILED` | The CCSDS TDM file failed to parse. | Validate the file against CCSDS 503.0-B-2 syntax and resubmit. |
| `TRK_UNSUPPORTED_TDM_VERSION` | TDM uses an unsupported version (e.g. legacy -B-1). | Upgrade the producer to emit CCSDS 503.0-B-2. |
| `TRK_UNSUPPORTED_TIME_SYSTEM` | `TIME_SYSTEM` is not in `{UTC, TAI, GPS}` (e.g. `SCLK`, `UT1`, `TDB`, `TT`, `TCB`, `TCG`). | Re-emit the TDM in `UTC`, `TAI`, or `GPS`. |
| `TRK_UNSUPPORTED_MODE` | `MODE` is not `SEQUENTIAL` (e.g. `SINGLE_DIFF` differential Doppler). | Re-emit with `MODE = SEQUENTIAL`. |
| `TRK_UNSUPPORTED_PATH` | `PATH` is not in `{1,2}` (one-way) or `{2,1,2}` (two-way) — e.g. three-way `{2,1,3}`. | Re-emit with a one-way or two-way coherent path; three-way is not in scope. |
| `TRK_MISSING_PARTICIPANT` | A participant slot referenced by `PATH` is empty. | Populate the missing `PARTICIPANT_*` slot in the block metadata. |
| `TRK_UNRESOLVED_PARTICIPANT` | Neither participant resolves to a station (or both resolve to the same kind), so direction is undefined. | Verify station / spacecraft identifiers match the mission catalog; three-way Doppler is rejected here. |
| `TRK_MISSING_BAND` | Model-applied tropospheric or ionospheric corrections are required but `TRANSMIT_BAND` / `RECEIVE_BAND` is missing. | Populate `TRANSMIT_BAND` and `RECEIVE_BAND` (`{S, X, Ka}`) on the block metadata. |
| `TRK_UNKNOWN_BAND` | A band keyword is present but not in `{S, X, Ka}`. | Re-emit with a supported band. |
| `TRK_MISSING_TRANSPONDER_DELAY` | Two-way block lacks both pre-applied transponder calibration and metadata constants (`TRANSMIT_DELAY_1`, `RECEIVE_DELAY_1`). | Add `TRANSMIT_DELAY_1` and `RECEIVE_DELAY_1` to metadata, or pre-apply the calibration upstream. |
| `TRK_UNKNOWN_CORRECTION_KEYWORD` | A non-standard `CORRECTION_*` keyword is not in the closed vendor-alias table. | Use a CCSDS 503.0-B-2 keyword, or request an alias-table extension. |
| `TRK_NO_EPHEMERIS_FOR_SHIFT` | `TIMETAG_REF = TRANSMIT` requires a reference ephemeris for light-time normalisation, but none is loaded. | Load an initial ephemeris for the spacecraft before ingesting the TDM. |

#### Example: One-way X-band Doppler block

The following one-way X-band excerpt illustrates the observable layout. It is not import-ready on its own: the producer's actual correction rows/metadata must accompany the YES declaration, and the sensor needs a configured DOPPLER sigma.

```
CCSDS_TDM_VERS   = 2.0
CREATION_DATE    = 2026-06-21T00:00:00.000
ORIGINATOR       = VALAR

COMMENT One-way X-band Doppler downlink, instantaneous range-rate.
COMMENT Tropospheric and ionospheric corrections pre-applied at producer.

META_START
TIME_SYSTEM           = UTC
PARTICIPANT_1         = STATION-A
PARTICIPANT_2         = SAT-1
MODE                  = SEQUENTIAL
PATH                  = 1,2
TIMETAG_REF           = RECEIVE
TRANSMIT_BAND         = X
RECEIVE_BAND          = X
INTEGRATION_INTERVAL  = 1.0
CORRECTIONS_APPLIED   = YES
META_STOP

DATA_START
DOPPLER_INSTANTANEOUS = 2026-06-21T00:05:00.000      3.500000
DOPPLER_INSTANTANEOUS = 2026-06-21T00:05:10.000      3.487231
DOPPLER_INSTANTANEOUS = 2026-06-21T00:05:20.000      3.474102
DOPPLER_INSTANTANEOUS = 2026-06-21T00:05:30.000      3.460613
DOPPLER_INSTANTANEOUS = 2026-06-21T00:05:40.000      3.446764
DOPPLER_INSTANTANEOUS = 2026-06-21T00:05:50.000      3.432555
DATA_STOP
```

Field notes:

* `PATH = 1,2` selects the one-way downlink modality (signal travels from `PARTICIPANT_1` to `PARTICIPANT_2`).
* `TIMETAG_REF = RECEIVE` means the epoch on each data row is the receive time at the ground station; no light-time shift is applied at ingest.
* `INTEGRATION_INTERVAL = 1.0` is at the boundary (≤ 1 s); larger values would reject with `TRK_INSTANTANEOUS_INTEGRATION_WINDOW_TOO_LARGE`.
* `CORRECTIONS_APPLIED = YES` with no `STEC` / `TROPO_*` data rows is accepted only when metadata `CORRECTION_*` values are also present. For the more common case where the producer pre-applies corrections via the data section, co-timestamped `STEC` and `TROPO_DRY` / `TROPO_WET` rows accompany each `DOPPLER_INSTANTANEOUS` row.
* Doppler values are in km/s on the wire and are converted to m/s on emission to the internal record.

### Frequency Measurements

| Keyword | Description | Units |
| - | - | - |
| **RECEIVE\_FREQ** | Received signal frequency | Hz |
| **TRANSMIT\_FREQ\_1** | First transmitter frequency | Hz |
| **TRANSMIT\_FREQ\_2** | Second transmitter frequency | Hz |

### Additional Observations

| Keyword | Description | Units |
| - | - | - |
| **MAG** | Visual or radar magnitude | dimensionless |
| **RCS** | Radar cross-section | m² |
| **PRESSURE** | Atmospheric pressure | hPa |
| **TEMPERATURE** | Atmospheric temperature | K |
| **HUMIDITY** | Relative humidity | % |

## Critical Keywords

### MODE — Transmission Mode

Defines the signal transmission configuration:

* **SEQUENTIAL**: Measurements taken in chronological sequence (most common)
* **SINGLE\_DIFF**: Single-difference measurements (VLBI, GPS)
* **COHERENT**: Coherent ranging
* **CONSTANT**: Constant frequency transmission

### PATH — Signal Path

Specifies the route of the signal between participants:

* **1,2**: One-way from Participant 1 to Participant 2
* **2,1**: One-way from Participant 2 to Participant 1
* **1,2,1**: Two-way round trip starting from Participant 1
* **2,1,2**: Two-way round trip starting from Participant 2

> [!WARNING]
>
> PATH order matters for interpreting range measurements. Two-way range includes the round-trip distance, while one-way range is the direct distance.

### TIMETAG\_REF — Time Tag Reference

Indicates when the measurement timestamp refers to:

* **TRANSMIT**: Time when signal was transmitted
* **RECEIVE**: Time when signal was received
* **BOUNCE**: Time when signal reflected off target (two-way ranging)

This is critical for correctly processing light-time corrections in orbit determination.

## Common Use Cases

* **Orbit Determination**: Processing radar and optical tracking to estimate spacecraft state
* **Orbit Solution Validation**: Comparing predicted ephemeris against ground-based observations
* **Navigation Support**: Providing ranging data for real-time navigation
* **Conjunction Assessment**: Sharing raw observations for independent orbit solutions
* **Data Archiving**: Long-term storage of historical tracking campaigns
* **Multi-Station Campaigns**: Combining observations from multiple ground stations

> [!NOTE]
>
> Complete definition of the TDM standard in [CCSDS 503.0-B-2](https://ccsds.org/Pubs/503x0b2c1.pdf) specification.

## Sample TDM Files

### Example 1: Optical Angle Measurements (RADEC)

This example shows right ascension and declination measurements from an optical telescope tracking a spacecraft in an inertial reference frame:

```
CCSDS_TDM_VERS   = 2.0
CREATION_DATE    = 2024-12-10T16:30:14.352701
ORIGINATOR       = VALAR

COMMENT Optical telescope tracking data
COMMENT Measurements have not been corrected for atmospheric refraction

META_START
TIME_SYSTEM      = UTC
PARTICIPANT_1    = OPTICAL-STATION-01
PARTICIPANT_2    = 2023-001A
MODE             = SEQUENTIAL
PATH             = 2,1
TIMETAG_REF      = RECEIVE
ANGLE_TYPE       = RADEC
REFERENCE_FRAME  = EME2000
INTEGRATION_INTERVAL = 2.0
META_STOP

DATA_START
ANGLE_1     = 2024-12-10T02:49:31.512      172.016040
ANGLE_2     = 2024-12-10T02:49:31.512       -3.931946
MAG         = 2024-12-10T02:49:31.512       14.535494
ANGLE_1     = 2024-12-10T02:49:33.513      172.024207
ANGLE_2     = 2024-12-10T02:49:33.513       -3.931761
MAG         = 2024-12-10T02:49:33.513       14.621805
ANGLE_1     = 2024-12-10T02:49:35.514      172.032289
ANGLE_2     = 2024-12-10T02:49:35.514       -3.931576
MAG         = 2024-12-10T02:49:35.514       14.708923
DATA_STOP
```

### Example 2: Radar Tracking (AZEL + Range)

This example shows azimuth-elevation angles with two-way range from a ground-based radar:

```
CCSDS_TDM_VERS   = 2.0
CREATION_DATE    = 2024-12-15T08:00:00.000
ORIGINATOR       = GROUND_STATION_ALPHA

COMMENT Two-way radar tracking pass
COMMENT Range corrected for tropospheric delay

META_START
TIME_SYSTEM      = UTC
PARTICIPANT_1    = RADAR-SITE-A
PARTICIPANT_2    = SPACECRAFT-BETA
MODE             = SEQUENTIAL
PATH             = 1,2,1
TIMETAG_REF      = TRANSMIT
ANGLE_TYPE       = AZEL
REFERENCE_FRAME  = ITRF
RANGE_UNITS      = km
TRANSMIT_BAND    = X
RECEIVE_BAND     = X
CORRECTION_RANGE = YES
META_STOP

DATA_START
ANGLE_1     = 2024-12-15T12:30:00.000       87.234
ANGLE_2     = 2024-12-15T12:30:00.000       45.678
RANGE       = 2024-12-15T12:30:00.000      842.156
ANGLE_1     = 2024-12-15T12:30:02.000       87.456
ANGLE_2     = 2024-12-15T12:30:02.000       46.123
RANGE       = 2024-12-15T12:30:02.000      845.892
ANGLE_1     = 2024-12-15T12:30:04.000       87.678
ANGLE_2     = 2024-12-15T12:30:04.000       46.567
RANGE       = 2024-12-15T12:30:04.000      849.734
DATA_STOP
```

## Multi-Segment TDM Example

A single TDM file can contain multiple segments from different stations or observation sessions:

```
CCSDS_TDM_VERS   = 2.0
CREATION_DATE    = 2024-12-25T20:00:00.000
ORIGINATOR       = MISSION_CONTROL

COMMENT Multi-station tracking campaign

META_START
TIME_SYSTEM      = UTC
PARTICIPANT_1    = STATION-NORTH
PARTICIPANT_2    = SPACECRAFT-GAMMA
MODE             = SEQUENTIAL
PATH             = 1,2,1
ANGLE_TYPE       = AZEL
REFERENCE_FRAME  = ITRF
RANGE_UNITS      = km
META_STOP

DATA_START
ANGLE_1     = 2024-12-25T10:00:00.000      120.234
ANGLE_2     = 2024-12-25T10:00:00.000       30.567
RANGE       = 2024-12-25T10:00:00.000     1250.123
DATA_STOP

META_START
TIME_SYSTEM      = UTC
PARTICIPANT_1    = STATION-SOUTH
PARTICIPANT_2    = SPACECRAFT-GAMMA
MODE             = SEQUENTIAL
PATH             = 1,2,1
ANGLE_TYPE       = AZEL
REFERENCE_FRAME  = ITRF
RANGE_UNITS      = km
META_STOP

DATA_START
ANGLE_1     = 2024-12-25T14:00:00.000      240.678
ANGLE_2     = 2024-12-25T14:00:00.000       25.123
RANGE       = 2024-12-25T14:00:00.000     1380.456
DATA_STOP
```

## Usage in VALAR

When working with TDM files in VALAR:

1. **Sensor Configuration Required**: Ground station or sensor metadata must be configured in VALAR before importing TDM files. This includes station location, antenna characteristics, and measurement biases.

2. **Automatic Processing**: VALAR validates TDM structure, parses metadata, and associates measurements with the correct spacecraft and sensors.

3. **Orbit Determination**: TDM measurements are used as observations in weighted least-squares orbit determination to estimate spacecraft state vectors.

4. **Residual Analysis**: After orbit determination, VALAR computes observation residuals (measured minus computed) for quality assessment.

5. **Multi-Station Support**: TDM files with multiple segments from different stations are automatically handled.

> [!WARNING]
>
> Sensor configuration in VALAR must match the PARTICIPANT\_1 field in TDM metadata. If the sensor ID is not found, the TDM import will fail.

## Best Practices

### Data Quality

1. **Include COMMENT fields**: Document observation conditions, corrections applied, and data quality issues
2. **Specify corrections**: Use CORRECTION\_\* keywords to indicate preprocessing
3. **Provide metadata and uncertainty**: Include the actual INTEGRATION\_INTERVAL where applicable and configure the required measurement-type sigmas in the sensor catalog before importing

### File Organization

4. **One segment per pass**: Separate distinct tracking passes or observation sessions into different segments
5. **Consistent time systems**: Use UTC for operational tracking data
6. **Appropriate reference frames**: Use ITRF for ground-based AZEL, EME2000/GCRF for RADEC

### Measurement Types

7. **Match ANGLE\_TYPE to sensor**: Use AZEL for radar/RF, RADEC for optical telescopes
8. **Specify PATH correctly**: Ensure PATH matches actual signal propagation
9. **Use TIMETAG\_REF appropriately**: TRANSMIT for radar, RECEIVE for optical

### Interoperability

10. **Follow CCSDS conventions**: Adhere to standard keyword names and units
11. **Validate before sharing**: Ensure TDM syntax and semantics are correct
12. **Document non-standard fields**: If using custom keywords, explain them in comments

## Comparison with Other Formats

| Feature | TDM | OEM | OPM |
| - | - | - | - |
| Data Type | Raw observations | Computed ephemeris | State snapshot |
| Temporal Scope | Observation period | Time series | Single epoch |
| Source | Ground sensors | Propagation/OD | OD output |
| Purpose | Input to OD | Trajectory sharing | State exchange |
| Measurement Types | Angles, range | Position, velocity | Position, velocity, elements |
| Multi-Segment | Yes (multiple stations) | Yes (multiple intervals) | No |

## Reference Frames and Time Systems

### Supported Reference Frames

TDM supports any reference frame appropriate for the measurement type:

* **ITRF/ITRF2020**: Earth-fixed frame for ground-based AZEL measurements
* **EME2000/GCRF**: Inertial frames for RADEC measurements
* **Topocentric**: Station-centered frames (local horizontal)

### Time Systems

Standard time systems for TDM:

* **UTC**: Coordinated Universal Time (most common for operational tracking)
* **TAI**: International Atomic Time
* **GPS**: GPS Time
* **TDB**: Barycentric Dynamical Time (deep space missions)

> [!NOTE]
>
> Ensure your time system matches the precision requirements of your orbit determination. For sub-meter accuracy, distinguish between UTC, TAI, and dynamical time systems.

## Technical References

VALAR's TDM processing is built on industry-standard astrodynamics models, following:

* **CCSDS 503.0-B-2**: Tracking Data Message standard
* **CCSDS 502.0-B-3**: Navigation Data Messages (for reference frame definitions)
* **IERS Conventions**: Earth orientation and time systems
* **Vallado's** *Fundamentals of Astrodynamics and Applications*

For detailed measurement modeling and observation types, consult the [CCSDS TDM Specification](https://ccsds.org/Pubs/503x0b2c1.pdf).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.