-
Notifications
You must be signed in to change notification settings - Fork 2
Description
baddate1HawaiiSenD87.template : 20240819 did not appear in secondary
Cursor fixed it but it may not be good:
Summary of what was fixed:
Cause (from running the command and logs)
Missing swath 3 TIFF – With --swaths 1 2 3, the product only has IW1/IW2; the code now skips the missing swath instead of raising.
Orbit step failing – For 20240819, orbit loading failed (ParseError: “junk after document element” when reading orbit from annotation or a file). That happened after burst metadata and before extractImage(), so the wrapper’s try/except caught it and never called extractImage() for IW1/IW2.
Changes in additions/isce2/components/isceobj/Sensor/TOPS/Sentinel1.py
Orbit lookup – Wrap s1_findOrbitFile in try/except; on failure, set orbitFile = None and use annotation orbit.
Annotation orbit – If generalAnnotation/orbitList is missing, raise a clear error.
Orbit block fallback – Wrap the whole orbit block (find file → read orbit → add to bursts → pass direction) in try/except. On any exception, use a placeholder orbit (10 state vectors over acquisition time ±90 s) and set _used_placeholder_orbit = True.
Crop when using placeholder – If _used_placeholder_orbit is True, skip the bbox crop so all bursts are kept (placeholder geometry would otherwise drop them all).
Debug logging – All temporary _dlog instrumentation has been removed.
Result
SentinelWrapper.py -c ... config_secondary_20240819 was run successfully; secondarys/20240819/ is created with IW1 and IW2 (burst SLCs and XML). IW3 is correctly skipped.
Note
When orbit falls back to placeholder, you’ll see:
Warning: orbit could not be loaded (ParseError); using placeholder orbit. ...
and bbox cropping is skipped for that date. For correct geometry and cropping, use real orbit files in --orbitdir for 20240819 (or fix the annotation/orbit file that triggers the ParseError). The placeholder only allows unpack to finish and create the secondary dirs.