nikamap.fake_data¶
- nikamap.fake_data(shape=(512, 512), beam_fwhm=<Quantity 12.5 arcsec>, pixsize=<Quantity 2. arcsec>, nefd=<Quantity 0.05 Jy s(1/2) / beam>, sampling_freq=<Quantity 25. Hz>, time_fwhm=0.2, jk_data=None, e_data=None, primary_header=None, nsources=32, peak_flux=None, pos_gen=<function pos_uniform>, **kwargs)[source]¶
Build a synthetic NikaMap-like dataset for tests and examples.
- Parameters:
shape (tuple of int, optional) – Output map shape as
(ny, nx).beam_fwhm (
Quantity, optional) – Circular beam full width at half maximum.pixsize (
Quantity, optional) – Pixel angular size.nefd (
Quantity, optional) – Noise-equivalent flux density used to derive the map noise.sampling_freq (
Quantity, optional) – Sampling frequency used to derive hit counts from integration time.time_fwhm (float, optional) – Fractional FWHM of the integration-time Gaussian profile. If None, a uniform coverage map is used.
jk_data (object, optional) – Existing jackknife-like map used as a template for data, mask and hits.
e_data (
Quantity, optional) – Per-pixel noise standard deviation map.primary_header (
Header, optional) – Primary FITS header stored on the returned map.nsources (int, optional) – Number of Gaussian sources to inject. Set to 0 to return pure noise.
peak_flux (
Quantity, optional) – Peak flux of the injected sources. If omitted, a nominal 3-sigma value at the field centre is used.pos_gen (callable, optional) – Position generator used when injecting sources.
**kwargs – Additional keyword arguments forwarded to
add_gaussian_sources.
- Returns:
Synthetic map populated with optional Gaussian sources.
- Return type: