webbpsf_ext.spectra.linder_filter
- webbpsf_ext.spectra.linder_filter(table, filt, age, dist=10, cond_file=None, extrapolate=True, **kwargs)[source]
Linder Mags vs Mass Arrays
Given a Linder table, filter name, and age (Myr), return arrays of MJup and Vega mags. If distance (pc) is provided, then return the apparent magnitude, otherwise absolute magnitude at 10pc.
This function takes the isochrones tables from Linder et al 2019 and creates a irregular contour grid of filter magnitude and log(age) where the z-axis is log(mass). This is mapped onto a regular grid that is interpolated within the data boundaries and linearly extrapolated outside of the region of available data.
- Parameters:
table (astropy table) – Astropy table output from linder_table.
filt (string) – Name of NIRCam filter.
age (float) – Age in Myr of planet.
- Keyword Arguments:
dist (float) – Distance in pc. Default is 10pc (abs mag).
cond_file (string) – COND file to use for extrapolating to higher masses.
extrapolate (bool) – If True, extrapolate to higher masses using COND models as well as lower masses using a lower order polynomial fit.