Skip to content

Capella SLC tiff reader key error #563

Open
@normanb

Description

I am using the Capella Open Data in particular this SLC tiff

https://capella-open-data.s3.amazonaws.com/data/2024/10/11/CAPELLA_C15_SP_SLC_HH_20241011085812_20241011085836/CAPELLA_C15_SP_SLC_HH_20241011085812_20241011085836.tif

I convert this tiff file to uncompressed with gdal_translate co TILED=no CAPELLA_C15_SP_SLC_HH_20241011085812_20241011085836.tif capella_uncompressed.tif

And open this with sarpy

from sarpy.io.complex.converter import open_complex
rdr = open_complex("capella_uncompressed_slc.tif")

Which gives this error

  File "xxx/python3.10/site-packages/sarpy-1.3.58-py3.10.egg/sarpy/io/complex/converter.py", line 106, in open_complex
    reader = opener(file_name)
  File "xxx/python3.10/site-packages/sarpy-1.3.58-py3.10.egg/sarpy/io/complex/capella.py", line 516, in is_a
    return CapellaReader(capella_details)
  File "xxx/python3.10/site-packages/sarpy-1.3.58-py3.10.egg/sarpy/io/complex/capella.py", line 470, in __init__
    sicd = self.capella_details.get_sicd()
  File "xxx/python3.10/site-packages/sarpy-1.3.58-py3.10.egg/sarpy/io/complex/capella.py", line 411, in get_sicd
    ss_zd_s = img['image_geometry']['delta_line_time']
KeyError: 'delta_line_time'

Is there a specification for the Capella SLC product so I can check whether delta_line_time is a required parameter and put a PR for the fix together? Or is this a data product issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions