scopesim.optics.image_plane_utils.calc_table_footprint#
- scopesim.optics.image_plane_utils.calc_table_footprint(table: Table, x_name: str, y_name: str, tbl_unit: str, new_unit: str, padding=None) ndarray#
Equivalent to
calc_footprint(), but for tables instead of images.- Parameters:
table (astropy.table.Table) – Table containing data.
x_name (str) – Name of the column in table to use as x-coordinates.
y_name (str) – Name of the column in table to use as y-coordinates.
tbl_unit (str) – Default unit to use for x and y if no units are found in table.
new_unit (str) – Unit to convert x and y to, can be identical to tbl_unit.
padding (astropy.units.Quantity, optional) – Constant value to subtract from minima and add to maxima. If used, must be Quantity with same physical type as x and y. If None (default), no padding is added.
- Returns:
extent – Array containing corner points (clockwise from bottom left). Format and order are equivalent to the output of
astropy.wcs.WCS.calc_footprint().- Return type:
(4, 2) array