Skip to content

Project the footprints of pixels - #190

Merged
ptgrogan merged 2 commits into
mainfrom
pixel-footprints
Dec 4, 2026
Merged

ptgrogan merged 2 commits into
mainfrom
pixel-footprints

Conversation

@ptgrogan

@ptgrogan ptgrogan commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Adds projected footprints of pixels: each pixel's instantaneous field of view, about its line of sight, projected onto the WGS 84 ellipsoid (raised to an elevation) as a polygon around the pixel's center.

Library

  • collect_ground_pixels(..., footprints="elliptical" | "rectangular") and collect_footprints(..., pixels=True, pixel_footprints=...) add a second geometry column, footprint (EPSG:4326). This works for satellites, aircraft, and surface platforms. Empty results keep the column. Requesting footprints without pixels raises a ValueError.
  • PointedInstrument.compute_pixel_footprints(orbit_track, shape=...): footprints at each time, in the pixel order of compute_footprint_pixel_array.
  • utils.compute_footprint(..., pixel_offset=(cross, along)) projects one pixel's view. In frame geometry, the view is rotated rigidly to the pixel's line of sight, placed as compute_projected_pixel_position places pixel centers. In scan geometries, the offsets add to the roll and pitch (or tilt) angles. Horizon clipping for views looking up uses the pixel's line of sight.
  • schemas.PixelShape ("elliptical", as radiometer and sounder beams, or "rectangular", as imager detectors). The shape is an argument, since the catalog's is_rectangular describes the pixel grid.

Footprints that cross the antimeridian are split into MultiPolygons, as other footprints are.

Example

  • VisualizeSensingGeometry: the "Draw the Footprints on the Ground" section draws the projected polygons instead of ellipses built from sample sizes and an azimuth estimated from the next scan. Its tables are unchanged, and the figure is nearly identical.

Validation

  • Projected ATMS and CrIS footprint extents match compute_sample_sizes to within 0.2% along and across track. Centroids lie within about 1 km of the pixel centers, displaced outward because slanted footprints are larger on their far side.
  • New tests cover footprints containing their pixel centers in all view geometries, agreement with sample sizes, overlaps and gaps from oversampling, rectangular and elliptical shapes, a zero offset reproducing the view footprint, and the analysis columns. The utils, schemas, and analysis suites pass. black and pylint are clean.

…xample

Each pixel's instantaneous field of view, about its line of sight, is projected onto the ellipsoid as a polygon: collect_ground_pixels(footprints=), collect_footprints(pixel_footprints=), PointedInstrument.compute_pixel_footprints, and compute_footprint(pixel_offset=), with shapes in schemas.PixelShape. The new example maps the footprints of ATMS and CrIS on one NOAA-20 overpass of a 500 km region, and VisualizeSensingGeometry draws its footprints from the projected polygons rather than ellipses of their sizes.
@ptgrogan ptgrogan changed the title Project the footprints of pixels, and add the ProjectPixelFootprints example Project the footprints of pixels Dec 4, 2026
@ptgrogan
ptgrogan merged commit 3486aaa into main Dec 4, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant