PointSource

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

Bases: SourceModel

Represents a point source for generating simulated Skymaps.

can be initialized with the class method from_table()

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

  • pos (BaseRepresentation) – Position of the point source in a coordinate system.

  • rflux (Quantity [Jy, K, 1]) – Spectral flux density, dimensionless value, or temperature of the point source.

  • rfreq (Quantity [Hz] or None, optional) – Reference frequency of the point source in MHz.

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

See also

SourceModel

Base class for source models.

Examples

>>> ps = PointSource('PointSource1', pos, rflux, rfreq=10*u.MHz, index=-0.5)
>>> ps.pre_comp(freqs=20*u.MHz, times=obs_time)
>>> pixmap_simu = ps.make_source_simu(freq=20*u.MHz, time=obs_time, observer=my_observer)

Methods Summary

from_table(file[, name, sort])

Create a PointSource object from a data table.

make_source_simu(freq, time[, observer])

Generate a simulation Skymap for the point source.

pre_comp([freqs, times, res_max])

Pre-compute values for the point source.

Methods Documentation

classmethod from_table(file, name: Optional[str] = None, sort=False)

Create a PointSource object from a data table.

Parameters:
  • file (str) – File path to the data table.

  • name (str or None, optional) – Name of the PointSource object.

Returns:

A PointSource object created from the data table.

Return type:

PointSource

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

Generate a simulation Skymap for the point source.

Parameters:
Returns:

A Skymap object representing the simulation of the point source.

Return type:

Skymap

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

Pre-compute values for the point 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.