Examples and more docs to be added.
One MCFOST model result set, possibly containing multiple inclinations
This class provides an object oriented interface to MCFOST model results, including SEDs and images. It also casts results so that the astropy.units framework can be used
For now this class assumes all your model results have been precomputed. I.e. it will not call mcfost itself to run anything new.
Because of how MCFOST works, in practice this class may actually represent multiple inclinations all calculated for the same set of physical parameters.
Paramfile object for this model’s parameters
ModelSED object containing the computed SED
Plot SED(s). Set inclination=value to plot just one, or leave blank for all
This will plot either an RT or MC mode SED. By default RT is tried first.
| Parameters : | overplot : bool
nlabels : int or None
alpha : float
inclination : string ‘all’ or float
|
|---|
Show one image from an MCFOST model
| Parameters : | wavelength : string
inclination : float
overplot : bool
cmap : matplotlib Colormap instance
ax : matplotlib Axes instance
vmin, vmax : scalars
dynamic_range : float
axes_units : str
psf_fwhm : float or None
To Do: : * Add convolution with PSFs : * Add coronagraphic occulters : |
|---|
Plot dust scattering properties
Plot the dust scattering properties as calculated by MCFOST for some given collection of grains.
Note: For this to work you must have first saved dust properties to disk using the mcfost somefile.par -dust_prop
Return a descriptive brief paragraph on what results are present
Calculate chi^2 statistic based on comparison with observations
| Parameters : | observed : MCFOST.Observations instance
weights : list of floats
save : bool
|
|---|
Notes
Many other parameters are accepted and passed to the individual chi^2 functions. See mcfost.chisqr.sed_chisqr and mcfost.chisqr.image_chisqr for details.
Note that the chi^2 values calculated will typically be an array, with one chi^2 value for each inclination present in the MCFOST models.
Model SED class Reads observations from disk; returns them as as astropy Units objects
Directory containing the model results.
Filename for the model results SED FITS file.
Inclinations for which the model was computed, in degrees
Wavelength in microns, as an astropy.Quantity
Spectral energy distribution in W/m^2, as an astropy.Quantity
Note this will be a 2D array containing the SED for all inclinations that were calculated in that model.
This implements lazy loading for SED data; no files are read until the user tries to access this attribute, at which point the SED data is automatically loaded.
Uncertainty in spectral energy distribution in W/m^2, as an astropy.Quantity
Flux in Janskys, as an astropy.Quantity
Plot observed SED
| Parameters : | inclination : string or float
nlabels : int or None
legend : bool
overplot : bool
alpha : float
marker : str
color : str or tuple
color_imin, color_imax : str or tuple
linestyle : str
|
|---|
Class for a model image, at a single wavelength but potentially multiple inclinations.