Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional column name #42

Merged
merged 2 commits into from
Jun 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions stellarphot/differential_photometry/aij_rel_fluxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def _add_in_quadrature(array):


def calc_aij_relative_flux(star_data, comp_stars,
in_place=True, index_column=None,
coord_column=None):
in_place=True, coord_column=None,
flux_column_name='aperture_net_flux'):
"""
Calculate AstroImageJ-style flux ratios.

Expand All @@ -29,10 +29,14 @@ def calc_aij_relative_flux(star_data, comp_stars,
in_place : ``bool``, optional
If ``True``, add new columns to input table. Otherwise, return
new table with those columns added.

index_column : ``str``, optional
If provided, use this column as the unique identifier for the star.
If not provided, a temporary one is generated.

coord_column : ``str``, optional
If provided, use this column to match comparison stars to coordinates.
If not provided, the coordinates are generated with SkyCoord.

flux_column_name : ``str``, optional
If provided, use this column to find flux.
If not provided, the column 'aperture_net_flux' is used.

Returns
-------
Expand All @@ -55,8 +59,8 @@ def calc_aij_relative_flux(star_data, comp_stars,

# Not sure this is really close enough for a good match...
good = d2d < 1 * u.arcsec

flux_column_name = 'aperture_net_flux'

error_column_name = 'noise-aij'
# Calculate comp star counts for each time

Expand Down