Skip to content

calibration

Calibration

Calibration(networks, notes=None)

A class containing data for a scalar substitution calibration.

This kind of calibration is performed when you have an antenna with known performance. By measuring the antenna with your experiment setup, you can determine the difference between the expected performance and what you measure influenced by path loss, cable loss, etc.

Additionally, notes can be stored with the calibration which can describe important contextual information about the setup as it existed when this calibration was created.

When saved, this class is stored as a .mdif file, a text-based file format. Comments are stored using a specific delimiter ('@') to allow them to be differentiated from other comments in the file. To make it easier to differentiate calibrations from other data files, it is suggested to use the file extension .pycal

Parameters:

  • networks (list[skrf.Network] | skrf.NetworkSet) –

    The networks containing the calibration data

  • notes (list[str] | None) –

    A list of strings containing notes. Each element is another line.

frequency property

frequency: skrf.Frequency

The frequency range covered by this calibration

networks property

networks: skrf.NetworkSet

The underlying networks that comprise this calibration

polarizations property

polarizations: list[str]

The names of the polarizations in this calibration.

get_polarization

get_polarization(polarization)

Get the Network for the named polarization.

Parameters:

  • polarization (str) –

    The name of the polarization

Returns:

load classmethod

load(path)

Loads a calibration from a file.

Parameters:

  • path (str | Path) –

    The file to load

Returns:

  • Calibration

    A new calibration containing the data from the file

save

save(path)

Save this calibration to a file.

Parameters:

  • path (str | Path) –

    Where to save the file