sarkit.sicd.NitfReader.read_sub_image
- NitfReader.read_sub_image(start_row=None, start_col=None, stop_row=None, stop_col=None, *, out=None)
Read a 2D slice / sub-image from the file
- Parameters:
- start_row
intorNone Lowest row index to retrieve (inclusive). If None, defaults to first row.
- start_col
intorNone Lowest column index to retrieve (inclusive). If None, defaults to first column.
- stop_row
intorNone Highest row index to retrieve (exclusive). If None, defaults to one after last row.
- stop_col
intorNone Highest col index to retrieve (exclusive). If None, defaults to one after last column.
- out
ndarrayorNone, optional Array to store the sub-image. If None, a new array will be created.
- start_row
- Returns:
ndarraySICD sub-image array
lxml.etree.ElementTreeSICD XML updated to describe sub-image