target.stars#

This module defines StableTarget and Star, representing time-independent point sources such as stars.

class skysurvey.target.stars.StableTarget[source]#

Bases: Target

A class to model targets with fixed, time-independent properties.

Parameters:
  • _KIND (str) – The transient type. Default is "stable".

  • _MODEL (dict) –

    The model to use. The default is a dictionary with the following keys:

    • radec: The ra and dec of the target.

    • magobs: Randomly drawn observed magnitudes of the target, using random_magobs().

static random_magobs(size=None, zpmax=22.5, scale=3, rng=None)[source]#

Draw random observed magnitudes from an exponential decay distribution.

Parameters:
  • size (int, optional) – Number of magnitudes to draw. Default is None.

  • zpmax (float, optional) – Upper magnitude limit. Default is 22.5.

  • scale (float, optional) – Scale parameter of the exponential distribution. Default is 3.

  • rng (None, int, or (Bit)Generator, optional) – Seed for the random number generator. Default is None.

Returns:

Randomly drawn observed magnitudes.

Return type:

array

class skysurvey.target.stars.Star[source]#

Bases: StableTarget

A class to model stars, modelled as a stable point source.

Parameters:

_KIND (str) – The transient type. Default is "star".