4.39. photometry¶
Performs photometry using both sep and photutils.
- Fits.photometry(xs: NUMERICS, ys: NUMERICS, rs: NUMERICS, headers: str | list[str] | None = None, exposure: str | float | int | None = None) pd.DataFrame¶
Performs photometry using both
sepandphotutils.Parameters
- xs (
Union[float, int, List[Union[float, int]]]): x coordinate(s) of the sources.
- xs (
- ys (
Union[float, int, List[Union[float, int]]]): y coordinate(s) of the sources.
- ys (
- rs (
Union[float, int, List[Union[float, int]]]): aperture radius(es) for the photometry.
- rs (
- headers (
Union[str, list[str]], optional): Header keys to be extracted after photometry.
- headers (
- exposure (
Union[str, float, int], optional): Header key that contains or a numeric value of exposure time.
- exposure (
Returns
pd.DataFrameA DataFrame containing the photometric data.
Raises
- NumberOfElementError
Raised when the
xandycoordinates do not have the same length.
4.39.1. Example:¶
from myraflib import Fits
fits = Fits.sample()
phot = fits.photometry([10, 10], [20 , 20], [10, 15, 16])