VLBI Base¶
Routines on which the readers and writers for specific VLBI formats are based.
Reference/API¶
baseband.vlbi_base Package¶
baseband.vlbi_base.header Module¶
Base definitions for VLBI Headers, used for VDIF and Mark 5B.
Defines a header class VLBIHeaderBase that can be used to hold the words corresponding to a frame header, providing access to the values encoded in via a dict-like interface. Definitions for headers are constructed using the HeaderParser class.
Functions¶
|
Construct a function that converts specific bits from a header. |
|
Construct a function that uses a value to set specific bits in a header. |
|
Return the default value from a header keyword. |
Classes¶
|
Property that is fixed for all instances of a class. |
|
Create a lazily evaluated dictionary of parsers, setters, or defaults. |
|
Parser & setter for VLBI header keywords. |
|
Base class for all VLBI headers. |
Class Inheritance Diagram¶
baseband.vlbi_base.payload Module¶
Base definitions for VLBI payloads, used for VDIF and Mark 5B.
Defines a payload class VLBIPayloadBase that can be used to hold the words corresponding to a frame payload, providing access to the values encoded in it as a numpy array.
Classes¶
|
Container for decoding and encoding VLBI payloads. |
Class Inheritance Diagram¶
baseband.vlbi_base.frame Module¶
Base definitions for VLBI frames, used for VDIF and Mark 5B.
Defines a frame class VLBIFrameBase that can be used to hold a header and a payload, providing access to the values encoded in both.
Classes¶
|
Representation of a VLBI data frame, consisting of a header and payload. |
Class Inheritance Diagram¶
baseband.vlbi_base.base Module¶
Functions¶
|
Create a baseband file opener. |
Classes¶
Error in finding a header in a stream. |
|
|
VLBI file wrapper, used to add frame methods to a binary data file. |
|
VLBI wrapped file reader base class. |
|
VLBI file wrapper, allowing access as a stream of data. |
|
|
|
Class Inheritance Diagram¶
baseband.vlbi_base.file_info Module¶
Provide a base class for “info” properties.
Loosely based on DataInfo
.
Classes¶
|
Like a lazy property, evaluated only once. |
|
|
|
Container providing a standardized interface to file information. |
|
Standardized information on file readers. |
|
Standardized information on stream readers. |
Class Inheritance Diagram¶
baseband.vlbi_base.encoding Module¶
Encoders and decoders for generic VLBI data formats.
Functions¶
|
Generic encoder for data stored using one bit. |
|
Generic encoder for data stored using two bits. |
|
Generic encoder for data stored using four bits. |
|
Generic decoder for data stored using 8 bits. |
|
Encode 8 bit VDIF data. |
Variables¶
Optimal high value for a 2-bit digitizer for which the low value is 1. |
|
Optimal level between low and high for the above OPTIMAL_2BIT_HIGH. |
|
Scaling for four-bit encoding that makes it look like 2 bit. |
|
Scaling for eight-bit encoding that makes it look like 2 bit. |
|
Levels for data encoded with different numbers of bits.. |
baseband.vlbi_base.utils Module¶
Functions¶
|
Calculate the least common multiple of a and b. |
|
|
|
|
|
Convert the pattern to a byte array. |
Classes¶
|
Cyclic Redundancy Check. |
|
Cyclic Redundancy Check for a bitstream. |