Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Add AAVSO-style differential photometry #20

Open
mwcraig opened this issue Apr 14, 2016 · 3 comments
Open

Add AAVSO-style differential photometry #20

mwcraig opened this issue Apr 14, 2016 · 3 comments
Assignees

Comments

@mwcraig
Copy link
Member

mwcraig commented Apr 14, 2016

No description provided.

@mwcraig
Copy link
Member Author

mwcraig commented Apr 15, 2016

Start with chapter 5 of this: https://www.aavso.org/ccd-photometry-guide

particularly the part near the bottom of page 46.

@meyerpa
Copy link
Contributor

meyerpa commented May 5, 2016

need function signature to continue.

@mwcraig
Copy link
Member Author

mwcraig commented May 6, 2016

Ack, sorry!

Feel free to change any of the variable names in what is below or to change the function name.

def aavso_differential_photometry(instrument_mag,
                                  ref_star_intrument_mags,
                                  ref_star_ref_mags):
    """
    Return differential photometry for each star in the table ``instrument_mag``
    assuming that the rows indicted by ``reference_stars``, with
    magnitudes listed in ``ref_star_mags``.

    Parameters
    ----------

    instrument_mag : array-like
        Instrumental magnitude for each of the sources on which photometry is
        to be performed.
    ref_star_intrument_mags : array-like
        Instrumental magnitude of each of the reference stars.
    ref_star_ref_mags : array-like
        Reference magnitudes of each of the reference stars.

    Returns
    -------

    diff_mag, diff_mag_err : array-like, same shape as ``instrument_mag``
        Computed differential magnitude and error for each star in the
        ``instrument_mag`` array.
    """

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants