﻿# ATL08 and ATL03: join photon classifications by segment identity and local index

Associate ICESat-2 ATL08 classifications with ATL03 observations using beam, granule, segment identity and documented index conventions instead of positional array matching.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-atl08-atl03-photon-index-association/
Language: en

## Start with the association question

The [ATL08 product record](https://nsidc.org/data/atl08/versions/7) describes a land and vegetation product derived from photon observations. When transferring its photon classifications to ATL03, matching array lengths or timestamps approximately is insufficient. Classification rows identify selected source photons rather than every source observation in their original positional sequence. Decide whether the intended output is a classified subset or the complete photon table with an explicit missing-class state. Those outputs require different handling of unmatched observations.

## Match the observation context first

Keep the source granule, processing release, beam, orbit and cycle context with both inputs. A segment identifier is meaningful within its observation context, not as a globally unique key across an arbitrary directory. A loader that concatenates beams before joining can attach a credible classification to the wrong observation. Preserve the original keys until the final association has been validated, even if the training tensor eventually drops them.

## Respect the local photon index

The [ATL08 data dictionary](https://nsidc.org/sites/default/files/documents/technical-reference/icesat2_atl08_data_dict_v007.pdf) defines `ph_segment_id` and `classed_pc_indx`; the latter uses a 1-based index within the corresponding ATL03 segment. It is not the absolute row in the complete granule. Match the segment before resolving that local position. A misplaced base conversion can produce a valid neighboring photon, so a successful array lookup alone is a weak correctness test.

## Resolve the source segment deliberately

The [ATL03 data dictionary](https://nsidc.org/sites/default/files/documents/technical-reference/icesat2_atl03_data_dict_v007.pdf) defines the segment-start index `ph_index_beg`, also 1-based, with a documented fill value. Apply the host language indexing conversion at a clearly specified boundary. Reject invalid segment starts and out-of-range associations rather than allowing negative indexing or clipping to a convenient endpoint. Preserve rejected counts and reasons; otherwise an apparently complete labeled cloud can hide systematic missing associations.

## Validate identity rather than only dimensions

For a small inspection subset, trace each classified output back to its original segment and photon position. Compare available time and coordinate information as consistency checks after the identifier join. Keep unmatched photons separate from photons explicitly assigned a noise class. Then train and evaluate using the declared population. The existing [entity-split guide](/journal/data-guide-entity-group-split-design/) explains related grouping concerns, while the [granule-version guide](/journal/data-guide-earthdata-product-granule-version/) helps preserve release provenance through the association pipeline.
