PSRFITSReader¶
- class baseband_tasks.io.psrfits.PSRFITSReader(ih, *, dtype=None, weighted=True, **kwargs)[source] [edit on github]¶
Bases:
BaseTaskBase
Wrapper for reading PSRFITS HDUs.
- Parameters:
- ihwrapped PSRFITS HDU
The input fits table HDU, wrapped in an interface from
psrfits
.- dtype
dtype
, optional Dtype of the samples. Default: inferred from
hdu
.- weightedbool, optional
Whether to weight the data along the frequency axis using the ‘DAT_WTS’ column. Default of
True
should suffice for most purposes, but sometimes the weights are incorrect.- — **kwargsmeta data for the stream, which usually include
- frequency
Quantity
, optional Frequencies for each channel. Should be broadcastable to the sample shape. Default: inferred from
hdu
.- sidebandarray, optional
Whether frequencies are upper (+1) or lower (-1) sideband. Should be broadcastable to the sample shape. Default: inferred from
hdu
.- polarizationarray or (nested) list of char, optional
Polarization labels. Should broadcast to the sample shape, i.e., the labels are in the correct axis. For instance,
['X', 'Y']
, or[['L'], ['R']]
. Default: inferred fromhdu
.
Methods Summary
close
()Close task.
Methods Documentation
- close()[source] [edit on github]¶
Close task.
Note that this does not explicitly close the underlying source; instead, it just deletes the reference to it.