Skip to content

insar_tops_multi_burst support for products over the antimerdian #105

@asjohnston-asf

Description

@asjohnston-asf

Jira: https://asfdaac.atlassian.net/browse/TOOL-2059

insar_tops_multi_burst does not currently support InSAR for burst products over the antimeridient (longitude=180/-180). As of v4.0.0, attempting to process such a product results in a hyp3lib.exceptions.DemError exception:

$ insar_tops_multi_burst --reference S1_172140_IW3_20170329T055338_VV_AA07-BURST --secondary S1_172140_IW3_20170410T055339_VV_8989-BURST --looks 20x4 --apply-water-mask True
Using granule search...
Found 1 burst(s).
Check burst group validity...
Downloading data...
Download complete.
Creating SAFE...
SAFE created!
Using granule search...
Found 1 burst(s).
Check burst group validity...
Downloading data...
Download complete.
Creating SAFE...
SAFE created!
2025-10-24 13:44:55,728 - hyp3_isce2.insar_tops - INFO - DEM ROI: (-179.98831, 51.827439, 179.997233, 52.104294)
Traceback (most recent call last):
  File "/home/asjohnston/miniforge3/envs/hyp3-isce2/bin/insar_tops_multi_burst", line 7, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/asjohnston/src/hyp3-isce2/src/hyp3_isce2/insar_tops_multi_burst.py", line 125, in main
    product_dir, output_zip = insar_tops_multi_burst(
                              ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/asjohnston/src/hyp3-isce2/src/hyp3_isce2/insar_tops_multi_burst.py", line 40, in insar_tops_multi_burst
    insar_tops(
  File "/home/asjohnston/src/hyp3-isce2/src/hyp3_isce2/insar_tops.py", line 56, in insar_tops
    download_dem_for_isce2(roi, dem_path=dem_path, pixel_size=30.0)
  File "/home/asjohnston/src/hyp3-isce2/src/hyp3_isce2/dem.py", line 82, in download_dem_for_isce2
    prepare_dem_geotiff(
  File "/home/asjohnston/miniforge3/envs/hyp3-isce2/lib/python3.12/site-packages/hyp3lib/dem.py", line 105, in prepare_dem_geotiff
    raise DemError(
hyp3lib.exceptions.DemError: height_above_ellipsoid is not supported for buffered geometries with coordinates outside -180 to +180 degrees longitude.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Jira StoryCreate a Jira Story for this issueenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions