calc_aij_relative_flux#

stellarphot.differential_photometry.calc_aij_relative_flux(star_data, comp_stars, in_place=True, coord_column=None, star_id_column='star_id', counts_column_name='aperture_net_cnts')[source]#

Calculate AstroImageJ-style flux ratios.

Parameters:
star_data‘stellarphot.PhotometryData’

Photometry data from one or more images.

comp_stars‘~astropy.table.Table’

Table of comparison stars in the field. Must contain a column called ra and a column called dec. NOTE that not all of the comparison stars will necessarily be used. Stars in this table are excluded from the comparison set if, in any of the star_data for that comparison, the net counts are NaN or if the angular distance between the position in the star_data and the position in the comp_stars table is too large.

in_placebool, optional

If True, add new columns to input table. Otherwise, return new table with those columns added.

coord_columnstr, optional

If provided, use this column to match comparison stars to coordinates. If not provided, the coordinates are generated with SkyCoord.

counts_column_namestr, optional

If provided, use this column to find counts.

star_id_columnstr, optional

Name of the column that provides a unique identifier for each comparison star.

Returns:
stellarphot.PhotometryData or None

The return type depends on the value of in_place. If it is False, then the new columns are returned as a separate table, otherwise the columns are simply added to the input table.