edges_cal.cal_coefficients.HotLoadCorrection

class edges_cal.cal_coefficients.HotLoadCorrection(*, freq: ~edges_cal.tools.FrequencyRange, raw_s11: ~numpy.ndarray, raw_s12s21: ~numpy.ndarray, raw_s22: ~numpy.ndarray, model: ~edges_cal.modelling.Model = Polynomial(parameters=None, n_terms=21, transform=IdentityTransform(), offset=0.0), complex_model: type[edges_cal.modelling.ComplexRealImagModel] | type[edges_cal.modelling.ComplexMagPhaseModel] = <class 'edges_cal.modelling.ComplexMagPhaseModel'>, use_spline: bool = False)[source]

Corrections for the hot load.

Measurements required to define the HotLoad temperature, from Monsalve et al. (2017), Eq. 8+9.

Parameters:
  • path – Path to a file containing measurements of the semi-rigid cable reflection parameters. A preceding colon (:) indicates to prefix with DATA_PATH. The default file was measured in 2015, but there is also a file included that can be used from 2017: “:semi_rigid_s_parameters_2017.txt”.

  • f_low, f_high – Lowest/highest frequency to retain from measurements.

  • n_terms – The number of terms used in fitting S-parameters of the cable.

Methods

__init__(*, freq, raw_s11, raw_s12s21, raw_s22)

Method generated by attrs for class HotLoadCorrection.

from_file([path, f_low, f_high, ...])

Instantiate the HotLoadCorrection from file.

get_power_gain(semi_rigid_sparams, hot_load_s11)

Define Eq.

power_gain(freq, hot_load_s11)

Calculate the power gain.

Attributes

s11_model

The reflection coefficient.

s12s21_model

The transmission coefficient.

s22_model

The reflection coefficient from the other side.

freq

raw_s11

raw_s12s21

raw_s22

model

complex_model

use_spline