Synthetic

class rascal.synthetic.SyntheticSpectrum(coefficients=None, min_wavelength=200.0, max_wavelength=1200.0)[source]

Creates a synthetic spectrum generator which, given a suitable model, outputs the expected pixel locations of input wavelengths. It is expected that this will be used mainly for model testing.

Parameters

coefficients (list) – coefficients for the model

get_pixels(wavelengths)[source]

Returns a list of pixel locations for the wavelengths provided

set_model(coefficients)[source]

Set the model to fit

set_wavelength_limit(min_wavelength=None, max_wavelength=None)[source]

Set a wavelength filter for the ‘get_pixels’ function.