lezargus.simulation.spectre module#
Simulation code for simulating SPECTRE observations.
- class lezargus.simulation.spectre.SimulatorSpectre[source]#
Bases:
object
Simulate a SPECTRE observation.
We group all of the functions needed to simulate a SPECTRE observation into this class. It it easier to group all of data and needed functions this way.
- astrophysical_object_spectra#
The “perfect” spectra of the astrophysical object who’s observation is being modeled.
- Type:
- __init__() None [source]#
Instantiate the SPECTRE simulation class.
- Parameters:
None –
- Return type:
None
- create_astrophysical_object_spectra(temperature: float, magnitude: float, filter_profile: LezargusSpectra, filter_zero_point: float) None [source]#
Create the astrophysical object from first principles.
This function creates and stores the astrophysical object spectra modeled as a blackbody of a specific temperature. If a custom spectra is to be provided, please see
custom_astrophysical_object_spectra()
. The data is stored in this class internally asastrophysical_object_spectra
.- Parameters:
temperature (float) – The temperature of the black body spectra.
magnitude (float) – The magnitude of the object in the photometric filter system provided.
filter_profile (LezargusSpectra) – The filter transmission profile, packaged as a LezargusSpectra. It does not need to have any header data. We assume a Vega-based photometric system.
filter_zero_point (float) – The zero point value of the filter.
- Return type:
None
- custom_astrophysical_object_spectra(custom_spectra: LezargusSpectra) None [source]#
blaw