extract a sicd chip utility (sarpy.utils.chip_sicd)

Create a chip (subimage) of a SICD image.

For a basic help on the command-line, check

>>> python -m sarpy.utils.chip_sicd --help
sarpy.utils.chip_sicd.create_chip(input_reader, out_directory, output_file=None, row_limits=None, col_limits=None, check_existence=True, check_older_version=False, preserve_nitf_information=False)

Create a chip of the given sicd file. At least one of row_limits and col_limits must be provided.

Parameters:
  • input_reader (str|SICDReader) –

  • out_directory (str) – The directory of the output.

  • output_file (None|str) – If None, then the name will mirror the original with row/col details appended.

  • row_limits (None|Tuple[int, int]) – The limits for the rows, relative to this actual image, to be included.

  • col_limits (None|Tuple[int, int]) – The limits for the columns, relative to this actual image, to be included.

  • check_existence (bool) – Check for the existence of the file before overwriting?

  • check_older_version (bool) – Try to use a less recent version of SICD (1.1), for possible application compliance issues?

  • preserve_nitf_information (bool) – Try to preserve some of the original NITF information?