Tutorials

Contents

Tutorials#

Each tutorial is a Jupyter notebook. Use the download button at the top of a page to run it yourself.

Beginner#

Simulate a source, get its exposure time and spectrum — no knowledge of the instrument model needed.

The README examples

Every README example and figure: exposure time, spectra, a supernova in its host and the variance sources.

The README examples
Exposure time calculator

lazuli_etc and lazuli_sn_etc: exposure time and spectrum in one call.

Exposure Time Calculator
Lazuli targets

Supernovae, CalSpec stars or any spectrum: reach a SNR and get the read-out mode.

Lazuli targets
Changing target properties

Change redshift, phase or magnitude of a loaded target.

Changing the target properties
Origin of the variance

Which noise source dominates, and what happens when you switch it off.

Origin of the variance
Kilonovae

POSSIS models: viewing angle, phase and exposure time.

Kilonovae
Host galaxy

A supernova in its host: "ngc0628" or "sersic:bb-5000" models, and redshift consistency.

Host galaxy
A galaxy alone

LazuliGalaxy: a galaxy without point source, its cubes, and its spectrum within an aperture.

A galaxy alone
Spectrum extraction

Optimal or aperture photometry, of a point source or of its host (method, aperture, of_host).

Spectrum extraction: optimal or aperture photometry
Populations with Sample

Exposure time and data volume across many targets.

Comparing Multiple Targets with Sample

Advanced#

Control the instrument and the scene.

Detector and spectrograph

Read-out modes and spatial sampling of the spectrograph.

Changing the detector readout mode and the spectrograph sampling
MACC read-out modes

How nmd and the number of ramps set noise and exposure time.

MACC readout modes and detector settings
Instrument properties

Access QE, throughput, spectral resolution and more.

Accessing the core spectrograph and detector parameters
Dispersion resolution

Change the number of pixels per resolution element.

Changing the dispersion resolution
Resolution vs. spot size

Trade-off between dispersion resolution and spot size.

Spectrograph: dispersion resolution vs. spot size
Standard stars

CalSpec observations for flux calibration planning.

Standard Stars and CalSpec
Building a scene

What a Scene is and how to build your own.

Understanding and using slicersim.scene.Scene