GaussianSource
- class erwans3.Skymodel.GaussianSource(source_name: str, pos: Union[BaseCoordinateFrame, SkyCoord], rflux: Quantity, rfreq: Quantity, ang_size: Quantity, index: Optional[float] = None)
Bases:
SourceModelRepresents a Gaussian source for generating simulated Skymaps.
- Parameters:
source_name (
str) – Name of the Gaussian source.pos (
BaseCoordinateFrameorSkyCoord) – 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 (
floatorNone, optional) – Spectral index associated with the Gaussian source.
See also
SourceModelBase 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.