stellarphot Documentation#
This is the documentation for stellarphot.
Photometry objects always have these attributes, also available dictionary-style:
mag
– the calibrated magnitude; may be missing (e.g. your data prior to calibration)mag_err
– error inmag
inst_mag
– the instrumental magnitude; may be missing (e.g. catalog data)inst_mag_err
– error int theinst_mag
band
– the filter of the magnitude; requiredBJD
– Barycentric Julian Date of the midpoint of the observation; may be missing/maskedRA2000
– right ascension in degrees, in the ICRS frame at epoch 2000DEC2000
– declination in degrees in the ICRS frame at epoch 2000
There may be additional fields.
Reference/API#
stellarphot Package#
Functions#
|
Return the items from APASS DR9 that are within the search radius and (optionally) within the field of view of a frame. |
|
Run the tests for the package. |
|
Return the items from the copy of VSX on Vizier that are within the search radius and (optionally) within the field of view of a frame. |
Classes#
|
A class to validate an |
|
A class to hold astronomical catalog data while performing validation to confirm the minumum required columns ('id', 'ra', 'dec', 'mag', and 'passband') are present and have the correct units. |
|
A modified |
|
A class to hold information on the source lists to pass to aperture photometry routines. |
Class Inheritance Diagram#
stellarphot.core Module#
Functions#
|
Return the items from APASS DR9 that are within the search radius and (optionally) within the field of view of a frame. |
|
Return the items from the copy of VSX on Vizier that are within the search radius and (optionally) within the field of view of a frame. |
Classes#
|
A class to validate an |
|
A modified |
|
A class to hold astronomical catalog data while performing validation to confirm the minumum required columns ('id', 'ra', 'dec', 'mag', and 'passband') are present and have the correct units. |
|
A class to hold information on the source lists to pass to aperture photometry routines. |
Class Inheritance Diagram#
stellarphot.differential_photometry Package#
Functions#
|
Add an array of numbers in quadrature. |
|
Calculate AstroImageJ-style flux ratios. |
|
Calculate the average magnitude and standard deviation of multiple variable stars in a field. |
|
Calculate the average magnitude and standard deviation of a variable star in field. |
stellarphot.gui_tools Package#
Functions#
|
Add markers for APASS, TESS targets, VSX. |
|
Set image widget keyboard bindings. |
|
Utility function to let you click to select/deselect comparisons. |
Classes#
|
A class to store an instance of the comparison viewer. |
|
A class to open FITS files using a file chooser and display them in an |
A class to hold the widgets for photometry settings. |
|
|
A class for storing an instance of a widget displaying the seeing profile of stars in an image. |
Class Inheritance Diagram#
stellarphot.io Package#
Functions#
|
Generate an AIJ table from a stellarphot table and a comparison table. |
|
Return a list of objects, one for each source, from an AstroImageJ photometry table. |
Classes#
Represents the aperture information AstroImageJ saves. |
|
Class to represent AstroImageJ aperture file. |
|
Multi-aperture information that AstroImageJ saves. |
|
|
A class for storing photometry for a single star. |
|
A class to hold information about a TOI (TESS Object of Interest). |
|
A data class to represent TESS submissions. |
|
A class to hold information about a TESS target file. |
Class Inheritance Diagram#
stellarphot.photometry.photometry Module#
Functions#
|
Perform aperture photometry on a single image, with an options for estimating the local background from sigma clipped stats of the counts in an annulus around the aperture. |
|
Perform aperture photometry on a directory of images. |
|
Calculate sigma clipped stats quickly using NaNs instead of masking and using bottleneck where possible. |
|
Identify sources that are closer together than twice the aperture radius. |
|
Calculate sigma-clipped statistics on an annulus. |
|
Computes the noise in a photometric measurement. |
Classes#
|
Class to perform aperture photometry on one or more images |
Class Inheritance Diagram#
stellarphot.photometry.source_detection Module#
Functions#
|
Returns an SourceListData object containing the position of sources within the image identified using |
|
Computes the FWHM in both x and y directions of sources in an image. |
stellarphot.plotting Package#
Functions#
|
Bins data into groups of num. |
|
Plot magnitude vs time data for several sources over several nights. |
|
Plot one night of magnitude data for one source, overlaying a rolling mean and indication of mean/deviation. |
|
Plots many factors of photometry against each other. |
|
Scales and shifts data set passed in. |
|
Show a seeing plot for data from an image with radius on the x axis and counts (ADU) on the y axis. |
stellarphot.transit_fitting Package#
Classes#
Transit model fits to observed light curves. |
|
A callable class that can be used to fit functions with arbitrary number of positional parameters. |
Class Inheritance Diagram#
stellarphot.transit_fitting.gui Module#
Functions#
|
Build an observer that checks TIC number and, if it is a valid TIC number, looks up information about the TIC object from MAST copy of TIC as priors for EXOTIC. |
|
Validates the exposure time input. |
|
Set the appropriate widget values given information pulled from MAST TIC. |
|
Set the appropriate widget values given information pulled from TESS Target of Interest (TOI) list. |
Generate a widget to enter (and store) settings for exotic. |
|
|
Set values in EXOTIC widget from a JSON file of those settings. |
|
Extract EXOTIC settings from widget. |
|
Generate settings file name from user input. |
Classes#
|
A class containing a more compact indicator of valid entries based on ipywidgets buton value. |
Class Inheritance Diagram#
stellarphot.transit_fitting.io Module#
Functions#
|
Get the information about this TIC ID from the TESS Input Catalog at MAST. |
stellarphot.transit_fitting.plotting Module#
Functions#
|
Plot vertical lines at the ingress and egress times and label them. |
stellarphot.utils Package#
Functions#
|
Calculate the standard deviations of the residuals between the new calibrated magnitude and the catalog magnitude. |
|
Calculate linear transform coefficients from input magnitudes to catalog magnitudes. |
|
Find APASS stars in FOV and matches APASS stars to VSX and APASS to input targets. |
|
Calculate the calibrated magnitudes from the instrumental magnitudes and colors. |
|
Transform SDSS magnitudes to BVRI using either the transforms from Jester et al or Ivezic et al. |
|
Return APASS stars in the field of view. |
|
Select comparison stars that are 1) not close the VSX stars or to other target stars and 2) fall within a particular magnitude range. |
|
Convert the options from a fit to a string. |
|
Read an AIJ radec file with target and/or comparison positions |
|
Read in sample image and find known variables in the field of view. |
|
Calculate catalog magnitudes and transform coefficients from instrumental magnitudes. |
|
Transform a set of intrumental magnitudes to a standard system using either instrumental colors or catalog colors. |