sarkit.cphd.get_scene_image_area

get_scene_image_area(cphd_xmltree, *, use_polygon=True)

Return the vertices of the scene image area.

Parameters:
cphd_xmltreelxml.etree.ElementTree

CPHD XML

use_polygonbool, optional

If True, the polygon, if present, is considered. If False, the polygon is ignored.

Returns:
ndarray

Vertices of the scene image area in IAC coordinates with IAX, IAY components in meters in the last dimension. If use_polygon == True and a polygon is present, its vertices are returned. Otherwise, the four corners of the rectangle described by X1Y1 and X2Y2 are returned.