edges.cal.sparams.devices.receiver

Functions for calibrating the receiver reflection coefficients.

edges.cal.sparams.devices.receiver.calibrate_gamma_receiver(calkit_measurements: ~edges.cal.sparams.core.datatypes.CalkitReadings, gamma_receiver: ~edges.cal.sparams.core.datatypes.ReflectionCoefficient, calkit: ~edges.cal.sparams.core.network_component_models.Calkit = Calkit(open=CalkitStandard(resistance=<Quantity inf Ohm>, offset_impedance=<Quantity 50. Ohm>, offset_delay=<Quantity 29.243 ps>, offset_loss=<Quantity 2.2 GOhm / s>, capacitance_model=Polynomial(parameters=(4.943e-14, -3.101e-25, 2.317e-35, -1.597e-46), n_terms=4, _transform=IdentityTransform(), xtransform=IdentityTransform(), basis_scaler=None, data_transform=IdentityTransform(), offset=0.0, spacing=1.0), inductance_model=None), short=CalkitStandard(resistance=<Quantity 0. Ohm>, offset_impedance=<Quantity 50. Ohm>, offset_delay=<Quantity 31.785 ps>, offset_loss=<Quantity 2.36 GOhm / s>, capacitance_model=None, inductance_model=Polynomial(parameters=(2.077e-12, -1.085e-22, 2.171e-33, -1e-44), n_terms=4, _transform=IdentityTransform(), xtransform=IdentityTransform(), basis_scaler=None, data_transform=IdentityTransform(), offset=0.0, spacing=1.0)), match=CalkitStandard(resistance=<Quantity 50. Ohm>, offset_impedance=<Quantity 50. Ohm>, offset_delay=<Quantity 38. ps>, offset_loss=<Quantity 2.3 GOhm / s>, capacitance_model=None, inductance_model=None)), cable_length: ~astropy.units.quantity.Annotated[~astropy.units.quantity.Quantity, PhysicalType('length')] = <Quantity 0. cm>, cable_loss_percent: float = 0.0, cable_dielectric_percent: float = 0.0) ReflectionCoefficient[source]

Calibrate the receiver reflection coefficient using calkit measurements.

Parameters:
  • calkit_measurements – The calkit measurements used to calibrate the receiver.

  • gamma_receiver – The raw receiver reflection coefficient measurements.

  • calkit – The calkit model used for the calibration.

  • cable_length – An optional extra cable length to correct the receiver S11 for. This is used in the case of EDGES-3.

  • cable_loss_percent – The loss percentage of the extra cable. Default is 0.0. This is used in the case of EDGES-3.

  • cable_dielectric_percent – The dielectric percentage of the extra cable. Default is 0.0. This is used in the case of EDGES-3.

Returns:

ReflectionCoefficient – The calibrated receiver reflection coefficient.

edges.cal.sparams.devices.receiver.correct_receiver_for_extra_cable(gamma: ~edges.cal.sparams.core.datatypes.ReflectionCoefficient, cable_length: ~astropy.units.quantity.Annotated[~astropy.units.quantity.Quantity, PhysicalType('length')] = <Quantity 0. cm>, cable_loss_percent: float = 0.0, cable_dielectric_percent: float = 0.0) ReflectionCoefficient[source]

Correct the receiver S11 measurements to include an extra short cable length.

Parameters:
  • gamma – The receiver reflection coefficient to be corrected.

  • cable_length – The length of the extra cable to be corrected for.

  • cable_loss_percent – The overall loss of the cable.

  • cable_dielectric_percent – The dielectric of the cable, as a percent.

edges.cal.sparams.devices.receiver.get_gamma_receiver_from_filespec(caldef: CalObsDefEDGES2 | CalObsDefEDGES3 | ReceiverS11, calkit: Calkit | None = None, calkit_overrides: dict | None = None, **kwargs) ReflectionCoefficient[source]

Get the calibrated receiver reflection coeff from a calibration definition.

edges.cal.sparams.devices.receiver.path_length_correction_edges3(freq: Annotated[Quantity, PhysicalType('frequency')], delay: Annotated[Quantity, PhysicalType('time')], gamma_in: float, lossf: float, dielf: float) tuple[float, float, float][source]

Calculate the path length correction for the EDGES-3 LNA.

Notes

The 8-position switch memo is 303 and the correction for the path to the LNA for the calibration of the LNA s11 is described in memos 367 and 392.

corrcsv.c corrects lna s11 file for the different vna path to lna args: s11.csv -cablen -cabdiel -cabloss outputs c_s11.csv

The actual numbers are slightly temperature dependent

corrcsv s11.csv -cablen 4.26 -cabdiel -1.24 -cabloss -91.5

and need to be determined using a calibration test like that described in memos 369 and 361. Basically the path length corrections can be “tuned” by minimizing the ripple on the calibrated spectrum of the open or shorted cable.

cablen –> length in inches cabloss –> loss correction percentage cabdiel –> dielectric correction in percentage

edges.cal.sparams.devices.receiver.receiver_model_params(find_model_delay: bool = True, complex_model_type=<class 'edges.modeling.composite.ComplexRealImagModel'>, **kwargs) S11ModelParams[source]

Get default S11ModelParams for receiver S11 modeling.