Stars

class nyx.emitter.stars.Stars[source]

Bases: CatalogEmitter

Star catalog emitter with resolved bright stars and a diffuse map.

The map carries the complete sky and drives in-scattering; stars inside the field of view are additionally rendered as points, and their flux is subtracted from the quasi-point FOV pixels to avoid double-counting.

Parameters:
  • geo (Geometry) – Resolution configuration.

  • spectral_model (SpectralModel) – Maps (n_sources, n_cond) conditions to (n_sources, n_wvl) spectra.

  • sky_map (numpy.ndarray, shape (n_cond, npix)) – Complete sky in linear flux, nested ordering.

  • bright_ra (numpy.ndarray or None) – Positions of the resolved stars, in degrees.

  • bright_dec (numpy.ndarray or None) – Positions of the resolved stars, in degrees.

  • bright_conditions (numpy.ndarray or None, shape (n_bright, n_cond))

  • brightness (array-like or None) – Fittable amplitude on the whole catalog.

  • transform (str or None) – Domain of brightness.

Methods Summary

from_gaia_dr3(geo[, lim_mag])

Stars from the Gaia DR3 catalog, with a Pickles (1998) spectral model.

Methods Documentation

classmethod from_gaia_dr3(geo, lim_mag=15.0, **kwargs)[source]

Stars from the Gaia DR3 catalog, with a Pickles (1998) spectral model.

Parameters:
  • geo (Geometry)

  • lim_mag (float) – Limiting magnitude; brighter stars are resolved individually.

  • **kwargs – Passed to Stars, e.g. brightness.

Return type:

Stars

__init__(geo, spectral_model, sky_map, *, bright_ra=None, bright_dec=None, bright_conditions=None, brightness=None, transform='log')[source]
classmethod __new__(*args, **kwargs)