popsynth.aux_samplers.sky_sampler module

class popsynth.aux_samplers.sky_sampler.SkySampler(ra_sampler: Optional[NonObservedAuxSampler] = None, dec_sampler: Optional[NonObservedAuxSampler] = None)[source]

Bases: object

__init__(ra_sampler: Optional[NonObservedAuxSampler] = None, dec_sampler: Optional[NonObservedAuxSampler] = None)[source]

A sky sampler that samples angular positions in ra and dec. If no samplers are provided, then loads default samplers that sample uniformly on the unit sphere. RA and dec are in radians.

Parameters
  • ra_sampler (NonObservedAuxSampler) – Right ascension (RA) sampler

  • dec_sampler (NonObservedAuxSampler) – Declination (Dec) sampler

property ra_sampler
property dec_sampler
class popsynth.aux_samplers.sky_sampler.RASampler[source]

Bases: NonObservedAuxSampler

__init__()[source]

Samples the right ascension (RA) uniformly on the unit sphere.

RA is in radians.

true_sampler(size)[source]
class popsynth.aux_samplers.sky_sampler.DecSampler[source]

Bases: NonObservedAuxSampler

__init__()[source]

Samples the declination (Dec) uniformly on the unit sphere.

Dec is in radians.

true_sampler(size)[source]