GaussianSource

class erwans3.Skymodel.GaussianSource(source_name: str, pos: Union[BaseCoordinateFrame, SkyCoord], rflux: Quantity, rfreq: Quantity, ang_size: Quantity, index: Optional[float] = None)

Bases: SourceModel

Represents a Gaussian source for generating simulated Skymaps.

Parameters:
  • source_name (str) – Name of the Gaussian source.

  • pos (BaseCoordinateFrame or SkyCoord) – Position of the Gaussian source in a coordinate system.

  • rflux (Quantity) – Spectral flux density of the Gaussian source.

  • rfreq (Quantity [Hz]) – Reference frequency of the Gaussian source in MHz.

  • ang_size (Quantity [rad]) – Angular size of the Gaussian source in radians.

  • index (float or None, optional) – Spectral index associated with the Gaussian source.

See also

SourceModel

Base class for source models.

Examples

>>> gs = GaussianSource('Gaussian1', pos, rflux, rfreq=10*u.MHz, ang_size=0.1*u.rad, index=-0.5)
>>> gs.pre_comp(freqs=20*u.MHz, times=obs_time)
>>> pixmap_simu = gs.make_source_simu(freq=20*u.MHz, time=obs_time, observer=my_observer)

Methods Summary

make_source_simu(freq, time[, observer])

Generate a simulation Skymap for the gaussian source.

pre_comp([freqs, times, res_max])

Pre-compute values for the gaussian source.

Methods Documentation

make_source_simu(freq: Quantity, time: Time, observer: Optional[Union[BaseCoordinateFrame, SkyCoord]] = None)

Generate a simulation Skymap for the gaussian source.

Parameters:
Returns:

A Skymap object representing the simulation of the gaussian source.

Return type:

Skymap

pre_comp(freqs: Optional[Quantity] = None, times: Optional[Time] = None, res_max: Optional[Quantity] = None)

Pre-compute values for the gaussian source.

Parameters:
  • freqs (Quantity [Hz] or None, optional) – Frequencies for pre-computation.

  • times (Time or None, optional) – Times for pre-computation.

  • res_max (Quantity [rad] or None, optional) – Maximum resolution for pre-computation.