5.33. photometry_sep

Performs photometry using sep.


FitsArray.photometry_sep(xs: NUMERICS, ys: NUMERICS, rs: NUMERICS, headers: str | list[str] | None = None, exposure: str | float | int | None = None) pd.DataFrame

Performs photometry using sep.

Parameters

xsUnion[float, int, List[Union[float, int]]]

x coordinate(s) for the photometry.

ysUnion[float, int, List[Union[float, int]]]

y coordinate(s) for the photometry.

rsUnion[float, int, List[Union[float, int]]]

Aperture size(s) for the photometry.

headersUnion[str, list[str]], optional

Header keys to be extracted after performing photometry.

exposureUnion[str, float, int], optional

Header key that contains the exposure time or a numeric value of exposure time.

Returns

pd.DataFrame

A DataFrame containing the photometric data.

Raises

NumberOfElementError

When xs and ys coordinates do not have the same length.


5.33.1. Example:

from myraflib import FitsArray

fa = FitsArray.sample()
phot = fits.photometry_sep([10, 10], [20 , 20], [10, 15, 16])