hera_sim.interpolators.Tsky

class hera_sim.interpolators.Tsky(datafile, **interp_kwargs)[source]

Sky temperature interpolator.

Parameters:
  • datafile (str) – Passed to superclass constructor. Must be a .npz file with the following archives:

    • tsky: Array of sky temperature values in units of Kelvin; must have shape=(NPOLS, NLSTS, NFREQS).

    • freqs: Array of frequencies at which the tsky model is evaluated, in units of GHz; must have shape=(NFREQS,).

    • lsts: Array of LSTs at which the tsky model is evaulated, in units of radians; must have shape=(NLSTS,).

    • meta: Dictionary of metadata describing the data stored in the npz file. Currently it only needs to contain an entry ‘pols’, which lists the polarizations such that their order agrees with the ordering of arrays along the tsky axis-0. The user may choose to also save the units of the frequency, lst, and tsky arrays as strings in this dictionary.

  • interp_kwargs (unpacked dict, optional) – Extend interp_kwargs parameter for superclass to allow for the specification of which polarization to use via the key ‘pol’. If ‘pol’ is specified, then it must be one of the polarizations listed in the ‘meta’ dictionary.

Variables:
  • freqs (np.ndarray) – Frequency array used to construct the interpolator object. Has units of GHz and shape=(NFREQS,).

  • lsts (np.ndarray) – LST array used to construct the interpolator object. Has units of radians and shape=(NLSTS,).

  • tsky (np.ndarray) – Sky temperature array used to construct the interpolator object. Has units of Kelvin and shape=(NPOLS, NLSTS, NFREQS).

  • meta (dict) – Dictionary containing some metadata relevant to the interpolator.

  • pol (str, default 'xx') – Polarization appropriate for the sky temperature model. Must be one of the polarizations stored in the ‘meta’ dictionary.

Raises:

AssertionError: – Raised if any of the required npz keys are not found or if the tsky array does not have shape=(NPOLS, NLSTS, NFREQS).

Methods

__call__(lsts, freqs)

Evaluate the Tsky model at the specified lsts and freqs.

Attributes

freqs

Frequencies of the interpolation data.

lsts

Times at which the sky temperature is measured.

meta

Metadata about the measured/model sky temperature.

tsky

Measured values of the sky temperature to be interpolated.