skrf.io.csv.read_pna_csv
- skrf.io.csv.read_pna_csv(filename, *args, **kwargs)[source]
Reads data from a csv file written by an Agilient PNA.
This function returns a triplet containing the header, comments, and data.
- Parameters:
filename (str) – the file
*args
**kwargs
- Returns:
header (str) – The header string, which is the line following the ‘BEGIN’
comments (str) – All lines that begin with a ‘!’
data (
numpy.ndarray
) – An array containing the data. The meaning of which depends on the header.
See also
pna_csv_2_ntwks
Reads a csv file which contains s-parameter data
Examples
>>> header, comments, data = rf.read_pna_csv('myfile.csv')