API reference
This reference is generated automatically from the docstrings in the source.
It is organized by module. The most commonly used objects are re-exported at
the top level of the wcc_etc package, so e.g. wcc_etc.Simulation and
wcc_etc.simulation.Simulation are the same class.
Top-level public API
|
Get a Scene object with a source, an optional host, and an optional background. |
|
Build a Scene whose source spectrum is read from a wavelength/flux file. |
|
Generic top level function to instanciate a scene element. |
|
A collection of SceneElements (source, host, background) representing a full observation scene. |
|
A class to manage and run image exposure simulations. |
|
A class representing the sensor (detector) properties. |
|
A class representing the telescope properties. |
|
Render a point source onto a detector grid with noise, driven by an ETC Simulation. |
|
Result of an ImageSimulator.simulate() call. |
|
Diffraction-limited Airy PSF rendered on the detector grid (default). |
|
Photon-weighted coadd of a base PSF rendered at several wavelengths. |
|
A defocused PSF loaded from a bundled FITS product or a Zemax .txt export. |
|
A custom PSF from an ndarray, a FITS product, or a Huygens .txt export. |
|
Photon-weighted effective wavelength of a bandpass times a source SED. |
|
Split a band into |
|
Turn a FluxModel into a WCC-observed light curve via the ETC. |
|
Result of a light-curve simulation. |
|
Exoplanet transit light-curve model backed by jaxoplanet. |
|
Base class: map time -> relative flux, normalized to 1.0 out of event. |
|
Return an approximate V-band magnitude of the Moon. |
|
Read a single configuration file. |
|
Get sensor configuration for a specific detector kind and band. |
|
Apply the WCC plotting style to matplotlib's global rcParams. |
|
Plot a single simulated detector image with equal x/y scale. |
|
Three panels: PSF+noise, PSF (no noise), and the saturation mask. |
|
Azimuthally-averaged radial profile of the simulated image. |
|
Encircled-energy curve (normalized to 1) of the simulated image. |
|
Plot a filter throughput curve. |
|
Matplotlib light-curve plot: clean model line, noisy points with error bars, or both. |
Modules
- Simulation
- Scenes (
wcc_etc.scene) - Sensor
- Telescope
- PSF and image simulation (
wcc_etc.psfsim)DEFOCUS_REF_WAVELENGTH_MDEFOCUS_REF_FNUMDetectorPSFContextnormalize_psf()grid_center()crop_start()center_crop_or_pad()recenter()PSFSourceAiryPSFPolychromaticPSFload_huygens_psf()parse_huygens_header()huygens_txt_to_fits()load_psf_fits()WAVELENGTH_SCALING_MODESDefocusPSFCustomPSFsaturation_mask_from_image_e()SimulatedImageImageSimulatorhowell_center()psf_center()apply_jitter()tiff_to_fits()create_master_flat_from_fits()apply_nl_scaling()FitsImgListFitsImgsolve_time_for_snr()RADIUS_TIE_TOL_PIXdiffuse_enclosed()aperture_snr_radial()select_aperture()aperture_time_for_snr()calc_hwzm()calc_hwhm()
- Extended sources (
wcc_etc.extended) - Airy PSF utilities (
wcc_etc.airy) - Radial profiles (
wcc_etc.radial_data) - Spectral weighting (
wcc_etc.spectral) - Light curves (
wcc_etc.lightcurve) - Plotting (
wcc_etc.plotting)set_wcc_style()apply_ax_settings()plot_image_mpl()plot_image_row_mpl()plot_radial_mpl()plot_encircled_energy_mpl()plot_bandpass_mpl()plot_lightcurve_mpl()plot_image_bokeh()plot_image_row_bokeh()plot_radial_bokeh()plot_encircled_energy_bokeh()plot_lightcurve_bokeh()plot_snr()plot_snr_vs_mag()plot_sweep()plot_peak_pixel()plot_exptime_for_snr()plot_snr_vs_aperture()plot_psf()
- Astrophysics helpers (
wcc_etc.astro) - I/O and configuration (
wcc_etc.io)