PSRFITSWriter

class baseband_tasks.io.psrfits.PSRFITSWriter(filename, hdu)[source] [edit on github]

Bases: object

Interface class for writing the PSRFITS HDUs

Parameters
filenamestr

Output file name.

hduwrapped PSRFITS HDU

The output fits table HDU, wrapped in an interface from psrfits.

Notes

Currently it only support write the PSRFITS primary HDU and Subint HDU.

Methods Summary

close()

Dump the data to the underlying file.

write(data)

Methods Documentation

close()[source] [edit on github]

Dump the data to the underlying file.

Also removes references to the underlying HDU.

write(data)[source] [edit on github]