CatalogEmitter

class nyx.emitter.catalog.CatalogEmitter[source]

Bases: Emitter

A star catalog.

Subclasses supply _pop_conditions() and, if their stars carry their own scattered halo, _pop_inscatter.

Parameters:

Methods Summary

pop(coord, *[, radius])

Take one star out of the catalog, as a standalone point source.

Methods Documentation

pop(coord, *, radius=<Quantity 10. arcsec>, **kwargs)[source]

Take one star out of the catalog, as a standalone point source.

The star leaves this catalog’s point-source list and comes back as a PointSource with its catalog position, its catalog spectrum, and a free brightness.

Parameters:
Return type:

PointSource

Raises:

LookupError – If no star lies within radius, or the match was already popped.

Notes

This mutates the catalog: the star is gone from it afterwards, and a scene built from it earlier still holds the old, complete one.

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