← All research

Phiesta: Φsat-2 imagery and cross-sensor pairing

ESA Φ-lab, research software, 2026

Question. How can Φsat-2 imagery be processed and geometrically aligned for reliable comparisons across bands, processing levels and sensors?

Approach. I developed a Python API for satellite products, sensor geometry and dataset preparation, and a cross-sensor registration pipeline using SIFT, SuperPoint/LightGlue, RANSAC and ECC.

Results. The public confirmatory geometry audit quantifies inter-band offsets on a stratified probability sample and distinguishes typical shifts from unstable registration estimates.

Inter-band geometry: confirmatory audit

We evaluate global target-to-RED/MS3 translation at a maximum image side of 4,096 pixels on a probability sample of 96 acquisitions from 71 time-geography strata. The design-weighted median shift is between 0.91 and 2.22 pixels across the seven non-reference bands.

Design-weighted median inter-band shift for seven Φsat-2 L1C bands
Design-weighted medians from the public Phiesta confirmatory audit. PAN has 91 valid measurements; each other target band has 96.
Weighted empirical cumulative distributions of estimated inter-band shift magnitudes
Weighted empirical distributions on a logarithmic displacement axis. The long tail includes unstable or non-identifiable registration estimates, not necessarily true sensor displacement.

The audit distinguishes a tightly aligned central regime from a heavy diagnostic tail. The design-weighted fraction of acquisitions flagged by at least one estimated shift above 80 pixels is 17.75%, with a conservative 95% interval of 1.63% to 33.87%. The large interval reflects the stratified design and the many strata with only one sampled acquisition. An extreme estimate is not itself evidence of actual sensor displacement. Extreme estimates require additional evidence from registration response, cross-scale consistency and cross-band coherence. See the full analysis and uncertainty discussion.

Three distinct geometry problems

Phiesta separates inter-band alignment, transformations between raw and processed products, and absolute geolocation. These are different geometric quantities: small relative offsets between bands do not imply that an image is accurately positioned on Earth.

Inter-bandInter-levelAbsolute geolocationL0L1A / L1CRelative spectral offsetsRaw-to-processed mappingSentinel-assisted alignmentSentinel-2SimulatedΦsat-2RealΦsat-2CorrectedGeoTIFF
Geometry and processing workflow redrawn from the public Phiesta documentation. The bottom row represents the Sentinel-assisted simulation/alignment pipeline; the upper panels distinguish the three separate diagnostic quantities. Schematics illustrate the actual API design, not measured offsets.
Public geometry interfaces
GeometryPublic diagnostic or operation
Inter-bandinterband_shift_table / local_interband_shift_field
Inter-levelregister_l0_to_l1
Absolute geolocationevent.georeference()

Cross-sensor registration

The pipeline searches for Sentinel-2 context, constructs a simulated Φsat-2 observation to reduce cross-sensor appearance differences, matches image features, estimates geometric transformations and refines alignment before quality control. The high-level API returns a standard corrected GeoTIFF; advanced interfaces expose homographies, footprints, matches, inliers and diagnostic overlays. Alignment does not by itself establish radiometric equivalence, and temporally separated acquisitions can differ for physical reasons.

From acquisitions to machine-learning datasets

Product selection, patch construction, train/validation/test splitting and downstream targets are separate operations. Splits can be assigned at acquisition or group level and propagated to patches to avoid leakage between nearby crops from the same source. The dataset interface supports scalar labels, spatial raster targets and optional PyTorch loaders.

Example from the public API

from phiesta import interband_shift_table

# event is an already loaded ΦSat-2 product
shifts = interband_shift_table(event, master_band="RED")
print(shifts[["target_band", "dx_px", "dy_px", "shift_px"]])

corrected = event.georeference()

The first call measures band-to-band offsets. The second performs Sentinel-assisted georeferencing and returns a corrected raster-backed product. Access to mission products is separate from the open-source code.