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:
SourceModelRepresents 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] orNone, optional) – Reference frequency of the point source in MHz.index (
floatorndarrayorNone, optional) – Spectral index associated with the point source.
See also
SourceModelBase 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:
- Returns:
A PointSource object created from the data table.
- Return type:
- make_source_simu(freq: Quantity, time: Time, observer: Optional[Union[BaseCoordinateFrame, SkyCoord]] = None)
Generate a simulation Skymap for the point source.