API reference#
Objects are grouped by what they do, from the highest to the lowest level.
Everything listed under Top-level API is importable directly from
slicersim (e.g. slicersim.LazuliSupernova). The Module index
page lists every module with all its content.
Top-level API#
Exposure time calculators#
Compute the exposure time needed to reach a given SNR on any spectrum. |
|
Compute the exposure time needed to reach a given SNR on a SN Ia. |
Lazuli fields#
The "narrow" and "wide" fields are defined in
slicersim.lazuli.SPECTROGRAPH_FIELD. The current field sets the
throughput curve used by the spectrograph.
Get the Lazuli field name matching a spectrograph spaxel configuration. |
Lazuli targets#
A Type Ia supernova observed with Lazuli. |
|
A kilonova observed with Lazuli. |
|
An HST CalSpec spectrophotometric standard star observed with Lazuli. |
|
A black body point source observed with Lazuli. |
|
A power-law point source observed with Lazuli. |
|
Any spectrum observed with Lazuli, as a point source. |
Simulation and configuration#
Main class to simulate an observation. |
|
Read the scene and instrument configuration files. |
Populations and calibrations#
A collection of targets handled together. |
|
Lazuli 3D flat-field calibration target. |
Instrument-agnostic targets#
Base classes of the Lazuli* targets, to use with another instrument
configuration.
Base class of all targets (see child classes). |
|
Point source target with an arbitrary input spectrum. |
|
Type Ia supernova point source target. |
|
Kilonova point source target. |
|
HST CalSpec spectrophotometric standard star target. |
|
Black body point source target. |
|
Power-law point source target. |
|
Mixin adding the Lazuli instrument and its two fields to a target. |
Scene#
Get a scene configuration. |
|
Scene description. |
|
Base class for scene elements. |
|
An unresolved scene element with a position. |
|
Spatially flat background scene element (e.g. zodiacal light). |
|
Structured background representing the host galaxy of the observed target. |
Source models (slicersim.scene.sources):
Get a generic configuration for a SN Ia point source. |
|
Get a generic configuration for a kilonova point source. |
|
Get the point source configuration of a CalSpec standard star. |
|
Get the flux of a blackbody source. |
|
Get the flux of a power-law source. |
|
Access to the HST CalSpec spectrophotometric standard stars. |
Instrument#
Telescope: collecting area, mirror thermal emission and Airy PSF. |
|
Image-slicer spectrograph, with anamorphosis. |
|
Micro-lens array (MLA) spectrograph. |
|
Throughput of the optical elements. |
|
Near-infrared detector read out in MACC (up-the-ramp) mode. |
|
Thermal emission of a set of optical elements. |
|
Black body thermal radiation of telescope and instrument components. |
|
Map between detector pixel coordinates and IFS slicer coordinates. |
Configuration files#
Read a single configuration file. |
|
Read a CalSpec reference flux FITS file. |