Repository navigation
Project the footprints of pixels - #190
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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")andcollect_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 withoutpixelsraises aValueError.PointedInstrument.compute_pixel_footprints(orbit_track, shape=...): footprints at each time, in the pixel order ofcompute_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 ascompute_projected_pixel_positionplaces 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'sis_rectangulardescribes 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
compute_sample_sizesto 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.