Repository navigation
Require a matching mission when checking for an existing orbit - #87
Merged
scottstanie merged 2 commits intoSep 21, 2026
Merged
Conversation
find_scenes_to_download() decided a scene already had its orbit by testing
time containment alone:
if any(parsed_file.start_time in orbit for orbit in current_eofs):
Orbit validity windows are near-identical across missions, so an orbit for
a *different* mission covering the same window silently satisfies the check.
An S1B POEORB covering V20180720T225942_20180722T005942 makes an S1A scene
from 2018-07-21T22:57 look already-downloaded, and its S1A orbit is never
fetched. Nothing errors -- the scene is simply logged as "already have EOF
file", and the gap only surfaces later in a downstream processor that looks
for a same-mission orbit and finds none.
On one Sentinel-1 stack (2789 scenes, S1A/S1B/S1C mixed) this left 206
acquisition dates with no correct-mission orbit.
Also require the mission to match.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Owner
|
Thanks for catching this! checking that there's not another similar edge case with RESORBs too |
Owner
|
Ok so Claude's follow up commits: two scenes from different platforms sharing a start second drop a mission from |
The skip-if-already-downloaded check now requires a matching mission, but the de-duplication of already-seen scenes a few lines above still keyed on the start time alone. Two scenes from different platforms sharing a start second would drop one mission from `missions`, which `download_eofs` zips against `orbit_dts` -- the same silently-missing-orbit failure. `find_scenes_to_download` had no coverage of the skip branch at all, since the existing test never puts an .EOF in the save directory. Tests now cover another mission's orbit not suppressing a scene, a matching mission's orbit still suppressing it, and two missions sharing a start time both surviving. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
scottstanie
force-pushed
the
fix-skip-check-mission
branch
from
September 21, 2026 14:06
2e8822a to
665ff4b
Compare
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.
Hello Scott,
find_scenes_to_download()skips a scene as soon as any orbit file in the savedirectory covers its same start time:
The check only looks at the validity window, so an orbit belonging to a different platform (s1a, s1b, s1c, ...) counts just as well.
I think POEORB windows run the same 22:59~22:59 time span for every S1 mission, which means that once the save
directory holds one mission's file for a given day, scenes from the other missions on tht same day are treated as already downloaded, thus will be ignored.
For example, with
S1B_OPER_AUX_POEORB_OPOD_20210313T235723_V20180720T225942_20180722T005942.EOFalready in the save directory, the scene
S1A_IW_SLC__1SDV_20180721T225743_20180721T225813_022898_027BD5_F737is treated as "already have EOF file" and no S1A orbit is ever fetched.
Nothing fails at this point and eof exits 0, so the missing stuff is invisible until something downstream goes looking for that orbit which is not there. For me, it shows up on stacks that mix S1A/S1B/S1C.
This PR adds the mission check to the condition... Please take a look if it is helpful.