edges_analysis.beams.simulate_spectra¶
- edges_analysis.beams.simulate_spectra(beam: ~edges_analysis.beams.Beam, ground_loss_file: [<class 'str'>, <class 'pathlib.Path'>] = ':', f_low: [None, <class 'float'>] = 0, f_high: [None, <class 'float'>] = inf, normalize_beam: bool = True, sky_model: ~edges_analysis.sky_models.SkyModel = SkyModel(frequency=408.0, temperature=array([192.10422, 190.78244, 190.67949, ..., 183.18246, 181.32964, 182.89944], dtype='>f4'), coords=<SkyCoord (Galactic): (l, b) in deg [( 45. , 0.0746039 ), ( 45.08789062, 0.14920793), ( 44.91210938, 0.14920793), ..., (315.08789062, -0.14920793), (314.91210938, -0.14920793), (315. , -0.0746039 )]>, name='Haslam408', healpix=<astropy_healpix.high_level.HEALPix object>, pixel_res=3.994741635118857e-06), index_model: ~edges_analysis.sky_models.IndexModel = ConstantIndex(index=2.5), lsts: ~numpy.ndarray = None, beam_smoothing: bool = True, smoothing_model: ~edges_cal.modelling.Model = Polynomial(parameters=None, n_terms=12, transform=IdentityTransform(), offset=0.0), interp_kind: ~typing.Literal['linear', 'nearest', 'slinear', 'cubic', 'quintic', 'pchip', 'spline', 'sphere-spline'] = 'sphere-spline') tuple[ndarray, ndarray, ndarray] [source]¶
Simulate global spectra from sky and beam models.
- Parameters:
band – The band of the antenna (low, mid, high).
beam – A
Beam
object.ground_loss_file – A file pointing to a ground-loss model. By default, gets the default ground loss model for the given
band
.f_low – Minimum frequency to keep in the simulation (frequencies otherwise defined by the beam).
f_high – Maximum frequency to keep in the simulation (frequencies otherwise defined by the beam).
normalize_beam – Whether to normalize the beam to be maximum unity.
sky_model – A sky model to use.
index_model – An
IndexModel
to use to generate different frequencies of the sky model.lsts – The LSTs at which to simulate
- Returns:
antenna_temperature_above_horizon – The antenna temperature for pixels above the horizon, shape (Nlst, Nfreq)
freq – The frequencies at which the simulation is defined.
lst – The LSTs at which the sim is defined.