hera_sim.foregrounds.PointSourceForeground

class hera_sim.foregrounds.PointSourceForeground(nsrcs=1000, Smin=0.3, Smax=300, beta=-1.5, spectral_index_mean=-1, spectral_index_std=0.5, reference_freq=0.15, rng=None)[source]

Produce a uniformly-random point-source sky observed with a truncated Gaussian beam.

Parameters:
  • nsrcs (int, optional) – Number of sources to place on the sky. Point sources are simulated to have a flux-density drawn from a power-law distribution specified by the Smin, Smax, and beta parameters. Additionally, each source has a chromatic flux-density given by a power law; the spectral index is drawn from a normal distribution with mean spectral_index_mean and standard deviation spectral_index_std.

  • Smin (float, optional) – Lower bound of the power-law distribution to draw flux-densities from, in units of Jy.

  • Smax (float, optional) – Upper bound of the power-law distribution to draw flux-densities from, in units of Jy.

  • beta (float, optional) – Power law index for the source counts versus flux-density.

  • spectral_index_mean (float, optional) – The mean of the normal distribution to draw source spectral indices from.

  • spectral_index_std (float, optional) – The standard deviation of the normal distribution to draw source spectral indices from.

  • reference_freq (float, optional) – Reference frequency used to make the point source flux densities chromatic, in units of GHz.

  • rng (np.random.Generator, optional) – Random number generator.

Methods

__call__(lsts, freqs, bl_vec, **kwargs)

Compute the point source foregrounds.

get_aliases()

Get all the aliases by which this model can be identified.

get_model(mdl)

Get a model with a particular name (including aliases).

get_models([with_aliases])

Get a dictionary of models associated with this component.

Attributes

attrs_to_pull

Mapping between parameter names and Simulator attributes

is_multiplicative

Whether this systematic multiplies existing visibilities

is_randomized

Whether this systematic contains a randomized component

return_type

Whether the returned value is per-antenna, per-baseline, or the full array