SourceModel

class erwans3.Astro_tools.SourceModel(source_name: str, simu_type: str = 'pixmap', priority: int = 0, time_dependent: bool = False, spectral_index='complex', close_range=False, data=None, model=None, model_param=None)

Bases: ABC

Abstract base class representing a source model for generating simulated Skymaps.

:meth:`~erwans3.Astro_tools.SourceModel.pre_comp`

Abstract method for pre-computing values for the source model.

:meth:`~erwans3.Astro_tools.SourceModel.make_source_simu`

Abstract method for generating a simulation Skymap for the source model.

Methods Summary

make_source_simu(freq, time[, observer])

Abstract method for generating a simulation Skymap for the source model.

pre_comp([freqs, times, res_max])

Abstract method for pre-computing values for the source model.

Methods Documentation

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

Abstract method for generating a simulation Skymap for the source model.

Parameters:
  • freq (Quantity [Hz]) – Frequency for simulation.

  • time (Time) – Time for simulation.

  • observer (BaseCoordinateFrame or SkyCoord or :obj:`~None, optional) – Observer frame for simulation.

Returns:

A Skymap object for simulation.

Return type:

Skymap

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

Abstract method for pre-computing values for the source model.

Parameters:
  • freqs ( Hz] or :obj:`~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.