Loading...

This article is published under a Creative Commons license and not by the author of the article. So if you find any inaccuracies, you can correct them by updating the article.

Loading...
Loading...

Astroimagej: image processing and photometric extraction for ultra-precise astronomical light curves Creative Commons

Link for citation this article

Karen A. Collins,

John F. Kielkopf,

Keivan G. Stassun,

Frederic V. Hessman

The Astronomical Journal, Journal Year: 2017, Volume and Issue: 153(2), P. 1 - 1

Published: Jan. 1, 2017

Latest article update: Nov. 28, 2022

This article is published under the license

License
Link for citation this article Related Articles

Abstract

ImageJ is a graphical user interface (GUI) driven, public domain, Java-based, software package for general image processing traditionally used mainly in life sciences fields. The image processing capabilities of ImageJ are useful and extendable to other scientific fields. Here we present AstroImageJ (AIJ), which provides an astronomy specific image display environment and tools for astronomy specific image calibration and data reduction. Although AIJ maintains the general purpose image processing capabilities of ImageJ, AIJ is streamlined for time-series differential photometry, light curve detrending and fitting, and light curve plotting, especially for applications requiring ultra-precise light curves (e.g., exoplanet transits). AIJ reads and writes standard Flexible Image Transport System (FITS) files, as well as other common image formats, provides FITS header viewing and editing, and is World Coordinate System aware, including an automated interface to the astrometry.net web portal for plate solving images. AIJ provides research grade image calibration and analysis tools with a GUI driven approach, and easily installed cross-platform compatibility. It enables new users, even at the level of undergraduate student, high school student, or amateur astronomer, to quickly start processing, modeling, and plotting astronomical image data with one tightly integrated software package.

Keywords

Methods, data analysis– techniques, photometric, image processing– techniques

1. INTRODUCTION


In many areas of astronomy, there is a need for image processing and analysis capabilities and light curve extraction. One such general purpose environment is IRAF (Tody 1986, 1993).5 However, especially for ultra-precise photometry in fast-paced areas of research such as exoplanet transits and microlensing, there remains a need for a general, off-the-shelf integrated analysis environment that is at once sophisticated yet easy to use. Indeed, citizen science and professional–amateur collaborations increasingly require robust tools that can deliver research-grade results while enabling broad usability.


Here we present AstroImageJ (AIJ), an astronomical image analysis software package that is based on ImageJ (IJ; Rasband 1997–2014), but includes customizations to the base IJ code and a packaged set of software plugins that provide an astronomy specific image display environment and tools for astronomy specific data reduction, analysis, modeling, and plotting. AIJ and IJ are public domain, open source, Java programs inspired by NIH Image for the Macintosh computer. Some AIJ capabilities were derived from the Astronomy plugins package.6 Some astronomical algorithms are based on code from JSkyCalc written by John Thorstensen of Dartmouth College. Because AIJ is Java code, the package is compatible with computers running Apple OS X, Microsoft Windows, and the Linux operating system (OS).


AIJ is a general purpose astronomical image processing tool, plus it provides interfaces to streamline the interactive processing of image sequences. The current release (version 3.1.0) includes the following features and capabilities, where (I) indicates a feature provided by the underlying ImageJ platform, (I+) indicates an ImageJ feature that has been improved, (A+) indicates a feature based on the Astronomy plugins package, but with significant new capabilities, and (N) indicates a new feature that is available in AIJ, but not available in ImageJ or the Astronomy plugins package:



  1. (N) Interactive astronomical image display supporting multiple image stacks with fast image zooming and panning, high-precision contrast adjustment, and pixel data display similar to SAOImage DS9 (Smithsonian Astrophysical Observatory 2000).

  2. (N) Live mouse pointer photometer.

  3. (N) Sky orientation of image and pixel scale display in a non-destructive image overlay.

  4. (A+) Reads and writes Flexible Image Transport System (FITS) images with standard headers, as well as most other common image formats (e.g., tiff, jpeg, png, etc.).

  5. (N) Data Processor (DP) facility for image calibration including bias, dark, flat, and nonlinearity correction with an option to run in real-time during observations.

  6. (A+) Interactive time-series multi-aperture differential photometry with detrend parameter extraction, and an option to run in real-time during observations.

  7. (N) Photometric uncertainty calculations including source and sky Poisson noise, dark current, detector readout noise, and quantization noise, with automatic propagation of single-aperture uncertainties through differential photometry, normalization, and magnitude calculations.

  8. (N) Comparison star ensemble changes without re-running differential photometry.

  9. (N) Interactive multi-curve plotting streamlined for display of light curves.

  10. (N) Interactive light curve fitting with simultaneous detrending. 

  11. (N) Plate solving and addition of World Coordinate System (WCS) headers to images seamlessly using the astrometry.net web interface.

  12. (N) Time and coordinate conversion with capability to update/enhance FITS header content (airmass, , etc.).

  13. (A+) Point and click radial profile (i.e., seeing profile) plots.

  14. (N) FITS header viewing and editing.

  15. (N) Astronomical coordinate display for images with WCS.

  16. (N) Object identification via an embedded SIMBAD interface.

  17. (A+) Image alignment using WCS headers or apertures to correlate stars.

  18. (N) Non-destructive object annotations/labels using FITS header keywords.

  19. (I) Mathematical operations of one image on another or an image stack, and mathematical and logical operations on single images or image stacks.

  20. (I+) Color image creation.

  21. (N) Optionally enter reference star apparent magnitudes to calculate target star magnitudes automatically.

  22. (N) Optionally create Minor Planet Center (MPC) format for direct submission of data to the MPC.


AIJ is currently used by most of the ∼30 member Kilo-degree Extremely Little Telescope (KELT; Pepper et al. 2003, 2007) transit survey photometric follow-up team, so far resulting in 10 planets published (Beatty et al. 2012; Siverd et al. 2012; Pepper et al. 2013; Collins et al. 2014; Bieryla et al. 2015; Fulton et al. 2015; Eastman et al. 2016; Kuhn et al. 2016; Rodriguez et al. 2016), and at least eight more in press or in preparation as of this writing. AIJ users on the team include amateur astronomers, undergraduate and graduate students, and professional astronomers. AIJ is also used by the KELT science team to optimize the precision of, and determine the best detrending parameters for, all follow-up light curves that are included in the analysis of new planet discoveries. AIJ is deployed in multiple undergraduate university teaching labs and is also used to teach exoplanet transit analysis to high school students. We and the KELT follow-up team have verified the accuracy of AIJ against a number of traditional scientific and commercial photometric extraction packages, including IRAF, IDL8 ,9 , and MaxIm DL.10 The IRAF and IDL photometric capabilities were adapted from DAOPHOT (Stetson 1987). We do not track the number of AIJ downloads, but we estimate that there are several hundred active AIJ users based on AIJ user forum11 statistics.


AIJ's ultra-precise photometric capabilities are demonstrated by Collins et al. (2017), where they achieved an rms of 183 and 255 parts per million for the transit model residuals of the combined and five minute binned ground-based light curves of WASP-12b and Qatar-1b, respectively, and transit timing residuals from a linear ephemeris of less than ∼30 s. These results are enabled by a multi-star photometer that allows fixed or variable radius apertures, a variety of options to calculate sky-background, including sky-background star rejection, and high precision centroid capabilities, including the ability to properly centroid on defocused stars. In addition, AIJ's interactive graphical user interfaces and tightly coupled extraction of differential photometry and detrend parameters, light curve plotting, comparison star ensemble manipulation, and simultaneous fitting of the data to a transit model and detrending parameters, enable the user to quickly optimize detrended and fitted light curve precision.


For example, stars can be added to or removed from the comparison ensemble (without re-running photometry) and detrending parameters can be changed instantly by clicking to enable or disable each one. When a change is made, the light curve and fitted model plots are automatically updated and statistical values indicating the goodness of the model fit, such as rms and the Bayesian information criterion (BIC), are instantly updated. These interactive features enable a user to quickly determine the best aperture settings, comparison ensemble, and detrend parameter set.


Finally, if AIJ is operated in "real-time" mode during time-series observations, the images are calibrated, photometry is extracted, and data are plotted, detrended, and model fitted automatically as images are written to the local system's hard disk by any camera control software package. This capability works independent of (and does not interfere with) an observatory's telescope and camera control software and allows the user to explore exposure time, defocus, aperture settings, and comparison star ensemble to ensure high-precision photometric results in the final post-processed data.


The following sections provide an introduction to the astronomy specific capabilities of AIJ. The AIJ User Guide, installation packages, and installation instructions are available for download at the AIJ website.12 Most of the AIJ user interface panels include "tool-tip" help messages that optionally pop up when the mouse pointer is positioned over an item in the display for more than a second. An AIJ user forum (see footnote 11) is available to facilitate shared support for the software. AIJ inherits all of the basic image manipulation and analysis functionality from IJ. The IJ website13 provides detailed user guides and descriptions of its functionality.


2. AIJ OVERVIEW AND BASIC CAPABILITIES


2.1. Toolbar


When AIJ is started, the AIJ Toolbar opens and presents the eight AIJ-specific toolbar icons labeled 1 through 8 in Figure 1. Those icons provide direct access to AIJ analysis tools or functions, including single aperture photometry (see Section 4.1), aperture photometry settings (see Appendix A.5), multi-aperture differential photometry (see Section 4.2), multi-curve plotting (see Section 4.3), image calibration (see Section 3), and astronomical coordinate and time conversion (see Appendix A.1).



The 12 icons to the left of the AIJ icons and all of the menu options are standard IJ tools. These tools can also be used in AIJ, but normally only the File menu options are needed for typical time-series data reductions. If all images in a sequence will not fit into the computer memory allocated to AIJ, the sequence can be opened as a "virtual stack." In this mode, the stack of images can be processed as if all images exist in memory, but AIJ loads only the single active/displayed image into memory. Virtual stacks perform more slowly than standard stacks, but memory requirements are minimal. All AIJ settings are persistent across sessions. Settings for specific configurations can be saved and reloaded later as needed.


2.2. Astronomical Image Display


Many popular image file formats are supported by AIJ, including the FITS (Wells et al. 1981; Pence et al. 2010) file format. The astronomical image display shown in Figure 2 offers numerous display options useful to astronomers. A menu system is available at the top of the image display window to provide access to all astronomy specific AIJ features. A row of quick access icons for control of frequently used image display options and image analysis tools is located directly above the image. Pixel and World Coordinate System (WCS; Calabretta & Greisen 2002; Greisen & Calabretta 2002; Greisen et al. 2006) information describing the image location pointed to by the mouse cursor is displayed in the three rows above the quick access icons. Image and WCS format information is displayed in the space under the image menus. A non-destructive image overlay optionally displays active apertures (green = target, red = comparison), object annotations, plate scale, and image orientation on the sky.



The Scale menu above an image display offers options for the control of image brightness and contrast (i.e., image scale). By default, image scale is set automatically and linearly maps the pixel values in the range  through  to 256 shades of gray running from black through white.


The zoom setting of an image display is most easily changed by rolling a mouse wheel. Image pan is controlled by a click and drag in the image, and a middle-click centers the clicked location in the image display. Arc-length can also be measured and displayed. An azimuthally averaged radial profile (i.e., a seeing profile) plot can be produced by an alt-left-click near an object (see Appendix A.4).


The View menu above an image provides settings to invert the display of an image in x and/or y, enable or disable the display of the zoom indicator, the XYN, and E directional arrows, and the image plate scale indicators in the image overlay. If WCS header information is available, AIJ automatically calculates and displays the x- and y-axis plate scales and the orientation of the image on the sky. Otherwise, those settings can be entered by the user.


The blue aperture shown near the center of Figure 2 moves with the mouse pointer. The value of the pixel at the mouse pointer and the peak pixel value and background-subtracted integrated counts (see Section 4.1) within the mouse pointer aperture are updated in the right-hand column of data displayed above the image. This interactive mouse photometer helps to quickly assess which stars are suitable comparison stars during differential photometry set up. When AIJ is used in real-time data reduction mode (see Section 3), the mouse photometer helps to quickly determine an appropriate image exposure time and telescope defocus setting.


If a time-series of images is opened as an image stack, a scroll bar is available directly under the image display as shown in Figure 2, allowing the user to select which image of the stack is currently displayed. The right-pointing "play" icon to the left of the scroll bar will animate the image sequence at a predefined rate.


An annotation feature allows objects to be labeled non-destructively in an image overlay. New object annotations can be added manually, or if the image has WCS information, target names can be extracted from SIMBAD and displayed by right-clicking on an object.


The quick access icons shown immediately above the image in Figure 2 control which components of apertures are displayed (see Section 4.1), control whether an aperture is to be centroided on a per aperture basis, provide direct access to the Multi-Aperture, Stack-Aligner, Astrometry, and FITS header editor modules, and control zoom and automatic contrast/brightness scaling.


2.3. Utilities, Algorithms, and Measurements Tables


In Appendix A, we describe the following integrated utilities: Coordinate Converter (CC) (A.1), Astrometry/Plate Solving (A.2), Image Alignment (A.3), Radial Profile plotting (A.4), Photometry Settings (A.5), and DP FITS Header Updates (A.6).


In Appendix B we describe photometric uncertainty calculations. In Appendix C we describe the optional apparent magnitude and apparent magnitude uncertainty calculations. In Appendix D we describe the measurements table used to store photometric results.


3. DATA PROCESSOR: IMAGE CALIBRATION AND REDUCTION


The DP module provides tools to automate the build of master calibration images and the calibration of image sequences, and optionally perform differential photometry and light curve plotting. DP operates much like a script in that it processes selected calibration and science images in a user defined manner. Fields are provided to define the directory/folder locations and filename patterns of data to be processed (i.e., science, bias, dark, and flat images). The science image files can be further filtered based on the image sequence numbers contained in the filename. Controls are provided to enable various tasks that can be included in the data processing session. Disabling certain options will automatically disable other related input fields as appropriate to help the user understand which input fields are interconnected. File paths and names can be dragged and dropped from the OS into a field of the DP panel to minimize typing.


Master bias, dark, and flat-field images can be created from raw images, or previously built master calibration files can be specified, for calibration of the science images. AIJ provides the option to either average or median combine the raw images when producing the master calibration files. Bias subtraction, dark subtraction, and flat-field division can be individually enabled. If bias subtraction is enabled, dark subtraction scaling can be enabled to scale the master dark pixel values by the ratio of the science image exposure time to the master dark image representative exposure time.


DP provides the option to implement CCD nonlinearity correction. This option replaces each pixel's analog-to-digital unit (ADU) value in the bias-subtracted dark, flat, and science images with the corrected ADU value:



where the coefficients cn describe the nonlinear behavior of the detector. Bias subtraction must be enabled to use nonlinearity correction. Outlier pixel values can be removed using thresholded median filtering to compensate for artifacts in science images. This option is useful for improving the cosmetic appearance of images (e.g., to clean cosmic ray hits and/or hot and cold pixels).


DP also provides options to calculate new astronomical data (e.g., airmass, time in , target altitude, etc.) and add those data to the calibrated science image's FITS header (see Appendix A.6). DP can optionally run astrometry and add the resulting WCS data to the calibrated (and optionally to the raw) science image's FITS header.


Calibrated images can be output in a variety of file formats and image pixel depths (i.e., 16-bit integer or 32-bit floating point). Multi-Aperture (see Section 4.2) and Multi-Plot (MP) (see Section 4.3) can be executed after each image is calibrated to perform differential photometry and display a light curve as the image data are processed. This feature is particularly useful for real-time reduction of data at the telescope. AIJ can also output the light curve plot and image display to a file after each science image is calibrated. These files can be used to update websites to show the progress of observations. A detailed log of all processing steps with timestamps is created by default.


4. PHOTOMETRY AND LIGHT CURVE CAPABILITIES


AIJ provides interactive interfaces for single aperture photometry and multi-aperture differential photometry. The differential photometry interface is designed to automatically process a time-series of images and measure the light curves of exoplanet transits, eclipsing binaries, or other variable stars, optionally in real time as observations are being conducted.


4.1. Single Aperture Photometry


Single aperture photometry measures the flux from a source within a predefined region of interest in an image referred to as an aperture. AIJ currently supports circular apertures only. A representation of an object's flux in the aperture, referred to as net integrated counts, is calculated by summing all of the pixel values within the aperture after subtracting an estimate of the background flux near the aperture. The background flux is estimated from the pixel values in a background annulus centered on the aperture. Single aperture photometry can be performed by simply placing the mouse pointer near the center of an object in an image. The net integrated counts within the mouse pointer aperture are shown in the display area above the image. The results of a single aperture measurement can also be recorded in a "measurements table" (see Appendix D).


AIJ calculates photometric uncertainty as described in Appendix B. For proper uncertainty calculations, the gain, dark current, and read out noise of the CCD detector used to collect the data must be entered before conducting photometric measurements.


4.2. Multi-aperture Differential Photometry


Differential photometry measures the flux of a target star relative to the combined flux of one or more comparison stars. The differential measurement is conducted by performing single aperture photometry on one or more target stars and one or more comparison stars. Then a target star's differential flux is calculated by dividing the target star's net integrated counts, FT, by the sum of the net integrated counts of all comparison stars (i.e., the sum of , where i ranges from 1 to the number of comparison stars n). The calculation is



where j indicates the target star aperture number and i indexes all comparison star aperture numbers. The terms relative flux and differential flux are used in this work and in AIJ interchangeably. Differential photometric error is calculated as described in Appendix B.


AIJ also calculates differential flux for each comparison star aperture by comparing the flux in its aperture to the sum of the flux in all other comparison star apertures. The calculation is



where j indicates the comparison star aperture number for which differential flux is being calculated and i indexes all comparison star aperture numbers.


The Multi-Aperture (MA) module automates the task of performing differential photometry on a time-series of images. Various settings are presented in a set-up panel, and then the target and comparison star apertures are placed and adjusted interactively by clicking near stars directly in the image display. The differential photometry results are recorded in a "measurements table" (see Appendix D). If WCS headers are available, apertures can optionally be placed first according to R.A. and decl. coordinates, rather than by x and y pixel coordinates, and then optionally centered on the nearest star. Aperture definitions can be stored and reopened from disk.


AIJ supports both fixed and variable radius apertures. For the fixed radius option, the user specifies the aperture radius and sky-background inner and outer radii to be used in all images of the time series. For the variable radius option, the aperture radius used for a specific image of a time-series is calculated using one of two methods. The first method determines the per image radius as the product of a user specified full-width at half-maximum (FWHM) factor and the average FWHM from all apertures in that image. The second method determines the aperture radius from an azimuthally averaged radial profile (see Appendix A.4), centered on the aperture. In this mode, the aperture radius used in an image is equal to the distance from the center of the aperture at which the radial profile value is equal to a user specified normalized flux cutoff. The variable apertures may improve photometric precision when seeing varies significantly or telescope focus drifts within a time-series. The variable aperture modes should not be used in crowded fields since the changing aperture radius will worsen the effects of variable amounts of contaminating flux blending into the aperture as seeing or focus changes.


By default, iterative 2σ cleaning of the sky-background region is performed to identify and reject pixels containing stars or other anomalies. The iteration continues until the mean ADU of the pixels remaining in the background set converges or the maximum number of allowed iterations has been reached without convergence. The sky-background pixels remaining after the cleaning operation are used to calculate and remove the sky-background at each pixel in the aperture. AIJ can optionally fit a plane to the remaining pixels in the background region and subtract the value of the plane at each pixel within the aperture to remove the sky-background contribution. Otherwise, AIJ subtracts the mean of the remaining pixels in the background annulus from each pixel in the aperture.


Apparent magnitudes of target aperture sources can optionally be calculated from user entered apparent magnitudes of one or more comparison aperture sources (see Appendix C). AIJ provides an option to output the apparent magnitude data in a format compatible with the Minor Planet Center.


4.3. Multi-plot


The MP module provides a multi-curve plotting facility that is tightly integrated with differential photometry and light curve fitting. MA can automatically start MP, or MP can be manually started by clicking the associated icon on the AIJ Toolbar. If a measurements table has been created by MA or opened from the OS, MP will automatically create a plot based on the last plot settings. Alternatively, plot templates can be saved and restored to easily format commonly created plots. Plotting controls are accessed in two user interface panels.


The main plotting panel contains settings that affect the overall plot, including the plot title and subtitle, legend placement and options, x- and y-axis label and scaling options, and the plot size in pixels. The main panel also provides access to other x-axis controls that define the regions used when normalizing, detrending, and fitting y-axis data sets. If applicable, the time of telescope meridian flip can be specified to allow detrending of any baseline offset from one side of the meridian flip to the other. As discussed in Appendix A.1, new astronomical data such as AIRMASS, , etc. can be calculated and added to the measurements table using the main panel.


In a secondary plotting panel, multiple rows of settings are available to control how data sets are plotted. Each row of settings controls an individual plotted data set. The number of rows available (i.e., the maximum number of plotted data sets) is user configurable. Each row of plot settings controls selection of the x- and y-axis data sets plotted, color and symbol used, the number of data points to average combine, the curve fitting mode, the detrend data sets, the normalization (or magnitude reference) region mode, scaling and shifting values, and legend settings.


Figure 3 shows an example plot of a WASP-12b transit and demonstrates many of MP's plotting capabilities. The raw normalized light curve is shown as solid blue dots near the top of the plot. In this case, the in-transit data are excluded from the calculation of the normalization parameter. The solid red dots show the same light curve after simultaneously detrending and fitting the data to an exoplanet transit model (see Section 4.4) and shifting down by 0.010 on the y-axis. Note the reduced systematics and scatter in the data. The light curve model residuals are shown as open red circles with AIJ calculated error bars.



The next seven data sets plotted below the residuals (green, magenta, and black solid dots, red ×-symbol, and pink and light blue filled dots) show the first seven comparison star differential light curves, which have all been airmass detrended assuming a constant brightness model. Note that comparison stars 5, 7, and 8 have been binned by 2 data samples to reduce the scatter for plotting purposes. The current implementation of binning is actually averaging of the specified number of data points, rather than binning into fixed size x-axis bins.


The four data sets over-plotted at the bottom of the figure (cyan, yellow, and purple lines, and brown dots) show four diagnostic curves (see legend at top of Figure 3). These curves are plotted using a mode that scales the minimum and maximum values of the data set to fit within a specified percentage of the vertical size of the plot after shifting by a specified percentage of the vertical size of the plot. This mode makes scaling of data to fit on a plot easy when the shape of a curve is important, but the actual values of the data are not.


Data sets displayed in a plot have typically been modified in one or more ways (e.g., normalized, detrended, converted to/from magnitude, scaled, shifted, binned, etc.). Those values are calculated on-the-fly when a change is made to a plot setting, but do not appear in the measurements table. However, MP provides an option to allow the user to add the modified/displayed values to the measurements table as new data columns for further manipulation or permanent storage. Model residuals and sampled versions of the model can also be saved to the measurements table.


The legend is shown at the top of the plot in Figure 3. Legend entries for each plotted curve can be automatically generated based on the measurements table data column names known to be produced by MA, or a custom legend can be displayed individually or in combination with the automatic legend. By default, the rms of the model residuals is calculated and displayed in the legend for fitted and/or detrended light curves. The light curve model parameter values are optionally shown for fitted light curves. The predicted time of ingress and egress are shown as red dashed vertical lines. The meridian flip time is indicated by the light blue vertical dashed line (although no meridian flip actually occurred for the example observations), and the Left and Right gray dashed vertical lines show the boundaries of the normalization, detrending, and fitting regions.


All typical data and image products created by a photometry and/or plotting and fitting session can be saved with one action using the Save All feature in the MP main panel. There are also File menu options in the main panel and image display panels to save each data product separately.


4.4. Light Curve Fitting and Detrending


Light curve fitting is enabled for a particular data set in the MP secondary panel by selecting the transit fit mode in the row of plotting controls for that data set. When this mode is selected, a Fit Settings panel will be displayed for the data set as shown in Figure 4. The settings in the figure produce the light curve model fit shown in the example plot of Figure 3. The transiting exoplanet model is described in Mandel & Agol (2002). The transit is modeled as an eclipse of a spherical star by an opaque planetary sphere. The model is parametrized by six physical values, plus a baseline flux level, F0. The six physical parameters are the planetary radius in units of the stellar radius, RP/R*, the semimajor axis of the planetary orbit in units of the stellar radius, a/R*, the transit center time, TC, the impact parameter of the transit, b, and the quadratic limb darkening parameters, u1 and u2. The orbital inclination can be calculated from the model parameters as



AIJ is currently limited to finding the best fit model parameter values and does not provide estimates of the parameter uncertainties. The best fit model is found by minimizing  of the model residuals using the downhill simplex method to find local minima (Nelder & Mead 1965).


The parameter settings in the User Specified Parameters sub-panel are not fitted. The period of the exoplanet's orbit is not well constrained by the transit model, but its value will impact the best fit values of some of the fitted parameters, so the period must be manually entered by the user. Normally, the orbital period is known from radial velocity (RV) or wide-field survey photometric data. The Host Star Parameters in the same sub-panel are only used to estimate the physical planet radius, RP, from the fitted parameter RP/R*. The host star parameter values are interrelated by tables in Cox (2001) for zero age main sequence (ZAMS) stars. The only value used in the calculation of RP (displayed near the middle of the right-hand side of the panel) is R*, so that value should be entered directly if known. Otherwise, entering any one of the other host star parameters will produce a rough estimate of R* based on the ZAMS assumption.


The Transit Parameters sub-panel has seven rows for the seven transit model parameters. Prior Center values will need to be set for the seven parameters to ensure the correct  minimum is found. The top four parameters shown in the sub-panel are extracted from the light curve data by default. In the odd case that those estimated values do not produce a proper fit, the values can be entered directly by the user. In the example shown, the Inclination prior center value has been set by the user, but no constraints have been placed on the range of valid final fitted values (although the upper end is limited to 90° by the definition of inclination). The Quad LD u1 and Quad LD u2 parameter values have been set by the user, and the fitted values have been locked to those values by enabling the Lock option beside each one. The fixed values of u1 and u2 were extracted from the Claret & Bloemen (2011) theoretical models using a website tool.14 The best fit transit model parameter values are displayed in the Best Fit column. A green box around the fitted parameter values indicates that the minimization converged to a value less than the Fit Tolerance within the Max Allowed Steps. Both of those minimization parameters can be set at the bottom of the fit panel in the Fit Control sub-panel, but the default values normally work well.


The bottom row in the Transit Parameters sub-panel shows several values that are calculated from the best fit model. The host star's density, ρ*, is particularly interesting, since a good estimate can be derived from the transit light curve data alone. Positioning the mouse pointer over any parameter will optionally cause a description of the parameter to be temporarily displayed.


The Prior Width column allows the user to optionally limit the range of a parameter's fitted value. Prior Width values are not normally needed, but may be helpful in fitting an ingress- or egress-only partial transit. The StepSize column allows the user to set a custom initial minimization step size. However, the default values for each parameter normally work well, so setting custom values is not usually necessary.


The Detrend Parameters sub-panel duplicates the detrend settings in the MP secondary panel. However, the Fit Settings panel provides direct access to all detrend parameters and settings. Prior center values, widths, and fitting step sizes can optionally be set for detrend parameters as well.


Light curve detrending is accomplished by including a  contribution for each selected detrend parameter in the overall light curve fit. The  contribution at each step of the minimization represents the goodness of the linear fit of the detrend parameters to the light curve after subtracting the light curve model corresponding to the current fit step. The  contribution for all n detrend parameters is calculated at each step of the fitting process as



where j indexes the detrend parameters, k indexes the samples of the light curve, m is the total number of samples in the light curve, Ok is the observed normalized differential target flux, cj is the fitted linear coefficient for the detrend parameter values , Ek is the expected value of the flux (which is the normalized transit model value corresponding to the time of the kth data sample), and σk is the error in the normalized differential target flux for each sample.


The Fit Statistics sub-panel lists five statistical values that allow the user to assess the quality of the data and goodness of the model fit to the data. The values displayed from left to right are rms of the model residuals,  per degree of freedom (i.e., reduced ), BIC, the number of degrees of freedom, and the total . BIC is defined as



where p is the number of fitted parameters, and n is the number of fitted data points. BIC can be used to determine whether the addition of a new parameter to a model (in particular an optional one such as a detrend parameter) provides a significant improvement in the fit. If the BIC value decreases by more than 2.0 when a model parameter is added, then the new model is preferred over the model with fewer parameters. A larger decrease in the BIC value suggests a stronger preference for the new model.


4.5. Comparison Ensemble Management


The MP environment allows the user to include or exclude comparison stars from the comparison ensemble without re-running MA, as long as apertures were defined for all potentially good comparison stars in the original MA run. Excluded stars are considered target stars. When a star is added to or removed from the ensemble, the relative flux values for each star are recalculated and the measurements table, model fit, and plot are updated.


An option allows the user to quickly cycle through the comparison ensemble removing one star at a time so that poor comparison stars can be quickly identified and removed from the ensemble. Another option enables a single comparison star and cycles through each one to allow the user to quickly assess the quality of each comparison star individually.


KAC and JFK acknowledge support from NASA Kentucky Space Grant Consortium and its Graduate Fellowship program. KAC and KGS acknowledge support from NSF PAARE grant AST-1358862 and the Vanderbilt Initiative in Data-intensive Astrophysics. We would like to acknowledge the support of early users of AIJ, whose feedback helped drive the development of the current feature set and resolve software bugs and reliability issues. We thank the anonymous referee for a thoughtful reading of the manuscript and for useful suggestions. This work has made use of the SIMBAD database operated at CDS, Strasbourg, France.


APPENDIX A: AIJ UTILITIES


A.1. Coordinate Converter


The CC module converts astronomical coordinates and times to other formats based on observatory location, target coordinates, and time of observation. CC can be operated as a module under full control of the user, and it can be operated under the control of DP and MP to provide automated calculations within those modules. Detailed CC help is available in the menus above the CC panel.


The target coordinates can be specified by entering a SIMBAD resolvable object name, or by entering J2000, B1950, or time of observation equatorial R.A. and decl., J2000 or time of observation ecliptic longitude and latitude, galactic longitude and latitude, or horizontal altitude and azimuth. Any input coordinate format is converted to all other coordinate formats, plus hour angle, zenith distance, and airmass.


The time of observation can be specified by entering UTC time and date, local time and date, JD (UTC-based), HJD (UTC-based), or BJD (TDB-based). Time entered in any format is converted to all other formats, plus local sidereal time (LST). Also, AM and PM nautical twilight times are displayed for the specified day. The current time is always displayed as UTC, local, JD (UTC-based), and LST.


The  time format requires dynamical time as the time-base. Dynamical time accounts for the changing rotational speed of the Earth by implementing leap-seconds. Leap-second updates are not periodic, but are announced six months before taking effect. New leap-seconds can be added to AIJ's leap-second table from The U.S. Naval Observatory website.


DP creates an instance of CC (DPCC), and depending on user settings, data can be extracted from FITS header information or entered manually to control the settings used by DPCC to calculate new astronomical values to add to the calibrated image's FITS header information (see Appendix A.6). If the FITS header contains the time of observations, the target's SIMBAD ID or coordinates, and the observatory's ID or coordinates, DPCC calculations can be executed with no user input. If target and/or observatory information is not available in the header, the missing information can be entered by the user.


MP also creates an instance of CC (MPCC) to allow new astronomical values to be added to a measurements table. Time and object coordinate values can be extracted from table columns and used to calculate any of the supported time and coordinate formats mentioned above.


The phase of the moon, and the altitude and proximity of an object to the moon and solar system planets is also displayed along the bottom of the CC panel to help with observation planning, or to illustrate those conditions during a time series.


A.2. Astrometry/Plate Solving


The astrometry feature "plate solves" images using an internet connection to the astrometry.net web portal at nova.astrometry.net (Lang et al. 2010). AIJ searches the image and extracts the source locations. Only the xy coordinates for a subset of the brightest extracted sources are sent to nova.astrometry.net. The actual image is not transferred across the network, which limits network traffic and improves the solve time. After a successful astrometric solution is found, WCS headers are automatically added to the FITS image header, and the file can optionally be resaved with the WCS solution.


Images can be blindly solved with no knowledge of the sky coordinates or plate scale of the image. However, solve time may be faster if the plate scale is known and entered by the user. If the approximate sky coordinates of the center of the image are known, entering those values may also improve solve time. By default, a log file is created to record the results of the plate solve for each image in the stack. When a field is successfully solved, astrometry.net returns a list of sources that are in the image. The source names and locations can be displayed in the image and/or saved to the FITS header. The plate solve process takes ∼10–20 s per image.


A.3. Image Alignment


The images within a stack can be aligned using the Stack Aligner module. At the time of writing, Stack Aligner only supports image translation for alignment. Image rotation and scaling are not currently implemented.


Stack Aligner provides two methods to align images. If all images in the stack have been plate solved, the images can be aligned using information in the WCS headers. If images have not been plate solved, apertures may be used to identify alignment stars. Aperture placement is performed in the same way as described for MA in Section 4.2, and images are aligned based on the average of alignment star centroid offsets between consecutive images.



Another image alignment option uses an image stabilizer algorithm that is useful for alignment of non-stellar objects. This tool will remove atmospheric jitter from a rapid sequence of planetary or lucky images, or track a comet over a long duration as it moves across a star field.


A.4. Radial Profile


AIJ can produce a plot of the azimuthally averaged radial profile of an object in an image. Figure 5 shows an example radial profile plot. The plot shows the half-width at half-maximum (HWHM), the FWHM, and suggested aperture radii in pixels. The aperture radius is set to 1.7 × FWHM, the inner radius of the sky-background annulus is set to 1.9 × FWHM, and the outer radius of the sky-background annulus is set to 2.55 × FWHM. These radii give an equal number of pixels in the aperture and sky-background annulus. The FWHM is also given in seconds of arc if valid WCS headers are available. The calculated aperture settings can be transferred to the photometer.


A.5. Photometry Settings


Settings related to photometric measurements are specified in two Aperture Photometry Settings panels. The main panel provides access to the aperture radii, centroid, and background settings. A list of FITS keywords can be entered to specify that the corresponding numeric data in the image headers be extracted and added to the measurements table as part of a photometry run. The CCD gain, readout noise, and dark current must be entered in this panel for proper photometric error calculations. Linearity and saturation warning levels should be entered so that indicators of those conditions can we properly noted in the measurements table and AIJ's user interfaces.


Two centroid methods are available. One method uses the algorithm in Howell et al. (2006) and gives highly repeatable xy centroid results (i.e., is not sensitive to the xy starting location). The other option uses a center-of-mass (i.e., center-of-flux) algorithm and provides better results when placing apertures around defocused stars.


The second panel allows the selection of photometric data items to be included in the measurements table. It is highly recommended to enable all data items since some AIJ functionality requires certain data items exist in the table. The maximum number of apertures allowed per image is set in this panel (500 by default).


A.6. DP FITS Header Updates


DP provides the option to calculate new astronomical data and add it to the FITS header of a calibrated image. FITS header keywords can be specified for the extraction of header data from the raw images as input for the calculation of various new astronomical data values. The input keywords that can be specified are the object coordinates and the observatory latitude and longitude. The new values that can be calculated and added to a calibrated image header are the same as the target coordinate and observation time formats described in Appendix A.1.


APPENDIX B: PHOTOMETRIC ERROR CALCULATION


Proper estimation of the uncertainty (i.e., error or noise) in each photometric measurement is important for reporting the significance of the measurement and plotting error bars in the light curve plot, but it is also important for the proper calculation of the best fit model to the data, since the uncertainty of each measurement, σ, is part of the  calculation used in the fitting process (e.g., see Equation (5)). In short, the  contribution from each data point is weighted by a factor of 1/σ2, which places more weight on data with small errors, and less weight on data with large errors.


Mortara & Fowler (1981) and Howell (1989) discuss the noise contributions to the measurement of a point source using CCD aperture photometry and develop the "CCD equation" to estimate the signal-to-noise ratio of a measurement. Merline & Howell (1995) construct a computer model of the same measurement and develop the more rigorous "revised CCD equation." The equation gives the total noise N in ADU for a CCD aperture photometry measurement as



where G is the gain of the CCD in electrons/ADU, F* is the net (background subtracted) integrated counts in the aperture in ADU, npix is the number of pixels in the aperture, nb is the number of pixels in the region used to estimate sky background, FS is the number of sky background counts per pixel in ADU, FD is the total dark counts per pixel in electrons, FR is read noise in electrons/pixel/read, and σf is the standard deviation of the fractional count lost to digitization in a single pixel (σf ≃ 0.289 ADU for f uniformly distributed between −0.5 and 0.5).


The AIJ photometer automatically performs the noise calculation described by Equation (7) for each aperture. For proper noise calculation, the gain, dark current, and read out noise of the CCD detector used to collect the data must be entered in the Aperture Photometry Settings panel (see Appendix A.5). For differential photometry, AIJ propagates the noise from all apertures to derive the error in differential flux measurements. First, the noise from the apertures of each comparison star is combined in quadrature to give the total comparison ensemble noise:



where i indexes the comparison stars of the ensemble, and  is the noise for each comparison star as calculated by Equation (7), and n is the number of comparison stars. Error is then propagated through the relative flux quotient to find the relative flux error for the target star as:



where FT is the net integrated counts in the target aperture, FE is the sum of the net integrated counts in the ensemble of comparison star apertures, NT is the noise in the target star aperture from Equation (7), and NE is the ensemble noise from Equation (8).


APPENDIX C: APPARENT MAGNITUDE CALCULATION


The apparent magnitude of target aperture sources can be calculated by entering the apparent magnitude of one or more comparison aperture sources. By default, if WCS information is available in the FITS image header, SIMBAD information is presented to assist in determining the comparison star apparent magnitude.


The apparent magnitude of the source in target aperture nn is calculated as



where nn is the target aperture number, xx indexes all comparison apertures for which an apparent magnitude has been entered by the user, Source_AMag_Cxx are the user entered comparison source apparent magnitudes, and Source-Sky_Tnn and Source-Sky_Cxx are the net integrated counts in apertures nn and xx as defined in Appendix D and Section 4.


The uncertainty in the apparent magnitude of the source in target aperture nn is calculated as



where nn is the target aperture number, xx indexes all comparison apertures for which an apparent magnitude has been entered by the user, Source-Sky_Tnn and Source-Sky_Cxx are the net integrated counts and Source_Error_Tnn and Source_Error_Cxx are the net integrated counts uncertainties for apertures nn and xx. The target aperture apparent magnitude uncertainties do not include the uncertainty in the comparison source apparent magnitudes entered by the user.


The uncertainty in the apparent magnitude of the source in comparison aperture nn is calculated as



where nn is the comparison aperture number and Source-Sky_Cnn and Source_Error_Cnn are the net integrated counts and the net integrated counts uncertainty, respectively, for comparison aperture nn. The comparison aperture apparent magnitude uncertainty is simply the flux-based photometric error converted to the magnitude scale. These values do not include the uncertainty in the comparison source apparent magnitudes entered by the user.


APPENDIX D: MEASUREMENTS TABLES


The results from single aperture photometry and multi-aperture differential photometry are stored in a "measurements table." The table can be exported as a tab or comma delimited text file input to other programs. For single aperture photometry, each row in a table contains all measurements produced from a single aperture. For multi-aperture differential photometry, a row contains all measurements produced by all apertures in a single image, and a row exists for each image that has been processed. Each column contains the same measurement from all images. Columns are labeled with unique names, and those names are available for selection in the pull-down menus in MP.


Footnotes



  1. IRAF is distributed by the National Optical Astronomy Observatories, which are operated by the Association of Universities for Research in Astronomy, Inc., under cooperative agreement with the National Science Foundation.

  2. http://www.astro.physik.uni-goettingen.de/~hessman/ImageJ/Astronomy/

  3. SAOImage DS9 has been made possible by funding from the Chandra X-ray Science Center (CXC) and the High Energy Astrophysics Science Archive Center (HEASARC).

  4. http://www.harrisgeospatial.com; IDL is a product of Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation.

  5. http://idlastro.gsfc.nasa.gov

  6. http://www.cyanogen.com

  7. http://astroimagej.1065399.n5.nabble.com/

  8. http://www.astro.louisville.edu/software/astroimagej

  9. http://imagej.nih.gov/ij/

  10. http://astroutils.astronomy.ohio-state.edu/exofast/limbdark.shtml