ASFHyP3 / hyp3-isce2

HyP3 plugin for ISCE2 processing
Apache License 2.0
11 stars 9 forks source link

`ValueError: Time stamp falls outside of the interpolation interval` thrown by `burst.get_isce2_burst_bbox()` #224

Open asjohnston-asf opened 2 months ago

asjohnston-asf commented 2 months ago

Three INSAR_ISCE_BURST jobs failed with this traceback on 2024-07-17:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/opt/conda/envs/hyp3-isce2/lib/python3.11/site-packages/hyp3_isce2/__main__.py", line 51, in <module>
    main()
  File "/opt/conda/envs/hyp3-isce2/lib/python3.11/site-packages/hyp3_isce2/__main__.py", line 47, in main
    sys.exit(process_entry_point.load()())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/hyp3-isce2/lib/python3.11/site-packages/hyp3_isce2/insar_tops_burst.py", line 530, in main
    insar_tops_burst(
  File "/opt/conda/envs/hyp3-isce2/lib/python3.11/site-packages/hyp3_isce2/insar_tops_burst.py", line 104, in insar_tops_burst
    ref_footprint = get_isce2_burst_bbox(ref_params)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/hyp3-isce2/lib/python3.11/site-packages/hyp3_isce2/burst.py", line 263, in get_isce2_burst_bbox
    snwe = s1_obj.product.bursts[params.burst_number].getBbox()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/hyp3-isce2/lib/python3.11/site-packages/isce/components/isceobj/Sensor/TOPS/BurstSLC.py", line 350, in getBbox
    llh = self.orbit.rdr2geo(tim, rng, height=ht)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/hyp3-isce2/lib/python3.11/site-packages/isce/components/isceobj/Orbit/Orbit.py", line 847, in rdr2geo
    hdg = self.getENUHeading(time=aztime)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/hyp3-isce2/lib/python3.11/site-packages/isce/components/isceobj/Orbit/Orbit.py", line 822, in getENUHeading
    vec1 = self.interpolateOrbit(aztime, method='hermite')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/hyp3-isce2/lib/python3.11/site-packages/isce/components/isceobj/Orbit/Orbit.py", line 400, in interpolate
    raise ValueError("Time stamp (%s) falls outside of the interpolation interval [%s:%s]"
ValueError: Time stamp (2014-12-09 13:52:03.936835) falls outside of the interpolation interval [2014-12-09 13:51:31.815000:2014-12-09 13:52:03.815000]

Compete log file: 940011c4-9d92-4afe-9879-fb0a3ee8232b.log

I notice all three jobs failed while processing burst S1_151226_IW2_20141209T135200_VV_D085-BURST. That scene is from the very early days of S1A, so this could be a one-off legacy data issue, but that's only conjecture on my part.