Examples and more docs to be added.
These are by design precisely compatible with the organization scheme adopted by MCRE, the IDL Monte Carlo Results Explorer package by Perrin et al.
All observations should be stored in one subdirectory. That directory must contain a file named summary.txt providing an index of the available files. This might look like:
hktau_sed.txt SED
example1.fits image 1.1
example2.fits image 10
psf_image1.fits psf 10
tinytim_psf_F110W.fits psf 1.1
In other words, it lists file names, what those files contain (image/psf/SED/visibility) and (for all types other than SED and SPECTRUM) the wavelength. There can be images and PSFs at multiple wavelengths, but can be only one SED file. This file should be created by hand when you assemble the SED and images.
Allowed input file types are as follows:
- SED: SED as a text file (see below)
- SPECTRUM: Spectrum as text file. Same format as SED
- IMAGE: Image as a 2D FITS file.
- IMAGE_UNCERT: Uncertainty image, 2D FITS file, must match image in size
- MASK: Good/bad pixel mask; 2D FITS file, must match image in size
The name of this file can be anything, as set in the summary.txt file. Fluxes and uncertainties must be given in Janskys. The file format should be as follows:
wavelength flux in Jy uncertainty in Jy comment.
Lines starting with ‘#’ are interpreted as comments. This file is created manually when you assemble the SED from data or the literature. For example:
# WAVELEN FLUX FLUXERR COMMENTS/SOURCE
0.550000 0.0082 0.002 ACS_F555W
0.795000 0.0124 0.005 ACS_F814W
1.23500 0.019 0.005 2MASS_J
1.66200 0.029 0.005 2MASS_H
2.15900 0.050 0.015 2MASS_Ks
3.550 0.188 0.010 IRAC_1
4.439 0.182 0.010 IRAC_2
100 0.00 5.2 IRAS_100
<etc.>
To specify a point with an upper limit only, set the Flux column to zero, and the Uncertainy to the 1 sigma upper limit value, as in the last line of the above example.
These should be FITS files, of the exact same file dimensions in X and Y as the MCFOST outputs. Image uncertainty files give the 1-sigma uncertainty for the corresponding image.
Mask files are binary masks indicating which pixels should be included when calculating
statistics.
Class for observational data on a target
To the extent possible, the API is consistent with that of the ModelResults class. That is, the names and functionality of attributes and methods should be similar to the extent possible given the differences in the underlying data.
Container for model images.
List of wavelengths for which we have images
Observed SED
Return a descriptive brief paragraph on what results are present
Observed SED class. Reads observations from disk; returns them as as astropy Units objects
Flux in Janskys, as an astropy.Quantity
Wavelength in microns, as an astropy.Quantity
Frequency in Hertz, as an astropy.Quantity
Uncertainty in flux in Janskys, as an astropy.Quantity
Plot the observed SED.
| Parameters : | overplot : bool
alpha : float
title : string
Matplotlib keywords such as marker, linestyle, color, etc are also supported. : |
|---|
Container class for an observed image, optionally along with associated uncertainty image and pixel mask.
Display one image
| Parameters : | wavelength : float
overplot : bool:q cmap : matplotlib color map
ax : matplotlib axis
vmin, vmax : floats
|
|---|