MockSky
- class erwans3.Skymodel.MockSky(nsource: int, nside: Optional[int] = None)
Bases:
SourceModelA class representing a mock sky model.
This class generates a mock sky with a specified number of sources and optional resolution parameters. It inherits from SourceModel and provides methods to pre-compute values for the mock sky.
- Parameters:
See also
SourceModelBase class for sky model representation.
Examples
Create a mock sky with 100 sources distributed randomly on the sky:
>>> mock_sky = MockSky(nsource=100) >>> freq = 150 * u.MHz >>> resolution = 0.1 * u.deg >>> mock_sky.pre_comp(freqs=freq, res_max=resolution) >>> skymap = mock_sky.make_simu(freq, time=Time.now())
Methods Summary
make_source_simu(freq, time[, observer])Generate a simulation Skymap for the mock sky.
pre_comp([freqs, times, res_max])Pre-compute values for the mock sky.
Methods Documentation
- make_source_simu(freq, time, observer=None)
Generate a simulation Skymap for the mock sky.