MultiFilterASTs

class beast.observationmodel.noisemodel.toothpick.MultiFilterASTs(astfile, filters, vega_fname=None, *args, **kwargs)[source]

Bases: beast.observationmodel.noisemodel.noisemodel.NoiseModel

A noise model for which input information of ASTs are provided as one single table

Attributes:
astfile: str

file containing the ASTs

filters: sequence(str)

sequence of filter names

Methods Summary

__call__(self, sedgrid, \*\*kwargs) Call self as a function.
fit(self[, nbins, completeness_mag_cut, …]) Alias of fit_bins
fit_bins(self[, nbins, …]) Compute the necessary statistics before evaluating the noise model
interpolate(self, sedgrid[, progress]) Interpolate the results of the ASTs on a model grid
setFilters(self, filters[, vega_fname]) set the filters and update the vega reference for the conversions
set_data_mappings(self) hard code mapping directly with the interface to PHAT-like ASTs

Methods Documentation

__call__(self, sedgrid, **kwargs)[source]

Call self as a function.

fit(self, nbins=30, completeness_mag_cut=80, progress=True)[source]

Alias of fit_bins

fit_bins(self, nbins=30, completeness_mag_cut=80, progress=True)[source]

Compute the necessary statistics before evaluating the noise model

Parameters:
completeness_mag_cut: float

magnitude at which consider a star not recovered

progress: bool, optional

if set, display a progress bar

.. see also: :func:`_compute_stddev`
interpolate(self, sedgrid, progress=True)[source]

Interpolate the results of the ASTs on a model grid

Parameters:
sedgrid: beast.core.grid type

model grid to interpolate AST results on

progress: bool, optional

if set, display a progress bar

Returns:
bias: ndarray

bias table of the models

sigma: ndarray

dispersion table of the models

comp: ndarray

completeness table per model

setFilters(self, filters, vega_fname=None)[source]

set the filters and update the vega reference for the conversions

Parameters:
filters: sequence

list of filters using the internally normalized namings

vega_fname: str

filename of the vega database

set_data_mappings(self)[source]

hard code mapping directly with the interface to PHAT-like ASTs

Note

it makes it trivial to update this function for other input formats