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
raand a column calleddec. 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 thestar_datafor that comparison, the net counts areNaNor if the angular distance between the position in thestar_dataand the position in thecomp_starstable 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.PhotometryDataor NoneThe return type depends on the value of
in_place. If it isFalse, then the new columns are returned as a separate table, otherwise the columns are simply added to the input table.