cross-sensor-cal

Stage 03 Pixel Extraction

DO NOT EDIT OUTSIDE MARKERS

Overview

At this stage you sample pixels from the sorted scenes and write the values to a tabular file. The table becomes the input to spectral unmixing and other downstream analyses.

Sampling rules

  1. Define a consistent random seed so repeated runs draw the same pixels.
  2. Sample within each land‐cover class or tile to avoid geographic bias.
  3. Drop any pixel flagged by a quality mask or falling outside the region of interest.

Handling nodata and masks

Tile vs full scene

Output tables

Each row represents one pixel. Columns typically include scene_id, tile_id, x, y, band values, and is_masked. Write tables as CSV for quick inspection or Parquet for efficient storage. Partition by scene and tile so you can read subsets without loading the whole dataset.

Memory tips

Quick integrity checks

Next steps

Continue to Stage 04 to build the spectral library from the extracted pixels.

Last updated: 2025-08-18