Phiesta: Φsat-2 imagery and cross-sensor pairing
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.


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.
| Geometry | Public diagnostic or operation |
|---|---|
| Inter-band | interband_shift_table / local_interband_shift_field |
| Inter-level | register_l0_to_l1 |
| Absolute geolocation | event.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.
Geometry diagnosticsGeoreferencing documentationExample notebookDataset example