DelFile#

class pride.io.DelFile(file: str | pathlib.Path)#

Interface for DEL files: Binary file format for SFXC

create_file(station_id: str) None#

Create a new DEL file with just the header

add_scan(source: str, mjd1: int, data: numpy.ndarray) None#

Add a scan information to DEL file

read() tuple[list, list[Scan]]#

Read data from DEL file

peek(data: bytes, format: bytes, length: int, start: int) tuple[list, int]#

Read and decode array of bytes from file