Repository navigation
Ground track swaths over a region, with an animation duration - #17
Merged
Merged
Conversation
Coverage and coincidence requests take optional sample_size options. The size of each observation's sample is the larger of its pixel and pixel spacing, along and across track (tatc.analysis.compute_sample_sizes), for pointed instruments and conical instruments with a beam width and scan sample spacing. Coverage results give each point's median and smallest sample size and counts of its observations, gridded to cells and summarized (SampleSizeSummary). An optional max_sample_size drops coarser observations before coverage (or coincidence) is computed; requests with it are rejected if an analyzed instrument has no pixels. Chunk tasks may give several tagged results (untag flattens them); cells are gridded by a shared helper (analysis.gridding), which sufficiency now uses. The instrument form adds pixel counts, overlap, and scan period of pointed instruments, and beam width and sample spacing of conical ones; the GUI adds the options, display modes, table columns, a summary section, and rows of the comparison of saved runs.
A region analysis (/analyze/region) samples the footprints of instruments every step over the analysis period, clipped to a region (a polygon, known shape, country, or the globe), in parallel by windows of time with every member satellite (tatc.analysis.collect_footprints). It gives the swath segments over the region, the share of its area observed over time (measured in an equal-area projection of the WGS 84 ellipsoid), and its observations (collect_region_observations) with their revisit and longest gap. With coincidence, each window also pairs its footprints with those up to max_time_difference after them (find_coincident_ground_track), between member satellites or between satellites and constellations, giving the areas observed in common over time and the time between paired footprints. Window boundaries do not change the results (tested against a direct computation). The GUI adds the analysis with its options, CZML of swaths and common areas, a table of observations, a summary, and the comparison of saved runs; saved runs accept region.
The swath analysis (/analyze/swaths) takes an optional region, replacing the separate region analysis (/analyze/region, unreleased): without a region it gives unclipped swaths as before; with one, swaths clipped to it and the summary of its coverage (area observed over time, observations, revisit, and optionally coincident swaths, which now need a region). The code moves from region/ and tracking/ to swaths/, and saved runs of swaths carry a summary only with a region. Swath analyses accept display times to limit the animation: orbit tracks and swath (and coincident) segments are given only over them, limiting the size of results of long periods. With a region, footprints are still sampled over the whole analysis period, so its summary does not depend on the animation; without one, only over the animation. Without coincidence, windows are analyzed in parallel by member satellite. The GUI merges the analyses (a "Limit to a region" option), shows the animation length for swaths, and drops the shortened default duration. Analyses without a grid show the region by its outline (from a new /generate/region endpoint) and hide the grid controls; a global region of swaths is the whole globe; and the region hides over results.
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 the coverage of a region to the Ground Track Swaths analysis, and an animation duration that limits the size of swath results over long periods.
What it does
POST /analyze/swathstakes an optionalregion: a polygon, a known shape, or a country code.max_time_difference, between member satellites or between satellites/constellations. Coincident swaths require a region.Animation duration: swath requests now accept
display.display, the whole period is animated everystep, as onmain.Parallelism: work is split into windows of time (
TATC_SWATH_WINDOW_STEPS, default 1440 steps). Without coincidence, windows are also split by member satellite.POST /generate/region: returns the simplified outline of a region (GeoJSON), for display.GUI
Code
swaths/holds the request, tasks, and router.tracking/is removed.region/and/analyze/regionwere never released and are folded in.Testing
tests/test_swaths_region.py(window independence, animation vs. summary, systems, known shapes, saved runs, invalid requests),tests/test_region_outline.py, and animation/saved-run tests intests/test_swaths.py.Review notes
instrument_indexkeeps its default of 0 on/analyze/swaths. The GUI sendsnull(all instruments).tatc_app.swaths.tasksare registered.