Mark4FileWriter

class baseband.mark4.base.Mark4FileWriter(fh_raw)[source] [edit on github]

Bases: baseband.vlbi_base.base.VLBIFileBase

Simple writer for Mark 4 files.

Adds write_frame method to the VLBI binary file wrapper.

Methods Summary

close()
write_frame(data[, header]) Write a single frame (header plus payload).

Methods Documentation

close() [edit on github]
write_frame(data, header=None, **kwargs)[source] [edit on github]

Write a single frame (header plus payload).

Parameters:

data : ndarray or Mark4Frame

If an array, a header should be given, which will be used to get the information needed to encode the array, and to construct the Mark 4 frame.

header : Mark4Header

Can instead give keyword arguments to construct a header. Ignored if payload is a Mark4Frame instance.

**kwargs :

If header is not given, these are used to initialize one.