In this article
Spatial metadata discovery selects items; extracting valid raster observations for a training window is a separate operation.
Identify what the search result represents
A training-data pipeline sends a spatial query and assumes every returned image already contains only the requested area. The STAC Item Search specification defines item discovery using spatial and other filters. A returned item is metadata matching the query contract. Its asset may cover a much larger scene. Preserve the query geometry and the selected item identity separately from whatever pixel window the pipeline later extracts.
Inspect assets rather than guessing from the item
The STAC Item specification distinguishes an item’s geometry and properties from its linked assets. An item can link imagery, quality masks, metadata or thumbnails. Choose assets by their documented roles and media information, not by assuming the first link is the spectral raster needed by a model. The observation footprint alone does not establish band order, product level or the availability of the exact label or mask your loader expects.
Separate intersection from usable pixels
A scene footprint can intersect an agricultural field while the extracted area contains invalid observations or cloud contamination. Spatial metadata selection does not itself evaluate every pixel. After discovery, inspect the raster’s georeferencing, valid-data mask and relevant quality layers. Define a usability rule for the training window and record rejection reasons. Otherwise the dataset silently changes according to whatever a downstream loader happens to accept, making a repeated search an unreliable description of the final sample population.
Preserve a selected-item manifest
The STAC specification overview explains the catalog, item and API ecosystem. A live catalog can evolve, so reproducibility needs more than the original search request. Save selected collection and item identifiers, asset references, retrieval observations and extraction parameters. If the provider supplies immutable version identifiers or checksums, preserve them. Treat search pagination and duplicate item handling explicitly so that a partial response is not mistaken for the complete matching inventory.
Verify discovery and extraction independently
For a small known region, inspect the returned item metadata and the actual extracted raster window. Confirm their coordinate relation and valid observations before constructing GPU batches. Related guides on Earthdata product identity and image geometry explain neighboring concerns. STAC’s value is interoperable discovery; it does not turn a spatial query into a guarantee of clipped imagery, clean pixels or a fixed training dataset without an extraction and provenance policy.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.