casa
$Rev:20696$
|
#include <VLAContinuumRecord.h>
Public Member Functions | |
VLAContinuumRecord () | |
The default constructor creates a unusable object. | |
VLAContinuumRecord (ByteSource &record, uInt offset) | |
Initialise this ContinuumRecord from the given record with the specified offset. | |
virtual | ~VLAContinuumRecord () |
The destructor is trivial. | |
void | attach (ByteSource &record, uInt offset) |
Initialise this VLAContinuumRecord from the given BytesSource (which must contain a VLA logical record), and must be readable & seekable. | |
virtual Vector< Complex > | data () const |
returns the correlations for this baseline. | |
virtual void | data (Array< Complex > &values) const |
Returns the correlations for this baseline in the supplied Array. | |
virtual Vector< Bool > | flags () const |
returns the flags for the correlations for this baseline. | |
Vector< Float > | variance () const |
returns the variance of the correlations for this baseline. | |
virtual uInt | scale () const |
returns the scaling factor used to convert the internal data to the actual values. | |
virtual uInt | ant1 () const |
returns the antenna 1 index for this baseline. | |
virtual uInt | ant2 () const |
returns the antenna 2 index for this baseline. | |
virtual VLABaselineRecord::Type | type () const |
Return the type of this record (ie., CONTINUUM). | |
Private Member Functions | |
VLAContinuumRecord (const VLAContinuumRecord &other) | |
VLAContinuumRecord & | operator= (const VLAContinuumRecord &other) |
Public interface
<h3>Review Status</h3><dl><dt>Date Reviewed:<dd>yyyy/mm/dd</dl>
Definition at line 87 of file VLAContinuumRecord.h.
The default constructor creates a unusable object.
Use the attach function to turn an object constructed this way into a usable object.
VLAContinuumRecord::VLAContinuumRecord | ( | ByteSource & | record, |
uInt | offset | ||
) |
Initialise this ContinuumRecord from the given record with the specified offset.
virtual VLAContinuumRecord::~VLAContinuumRecord | ( | ) | [virtual] |
The destructor is trivial.
VLAContinuumRecord::VLAContinuumRecord | ( | const VLAContinuumRecord & | other | ) | [private] |
virtual uInt VLAContinuumRecord::ant1 | ( | ) | const [virtual] |
returns the antenna 1 index for this baseline.
Implements VLABaselineRecord.
virtual uInt VLAContinuumRecord::ant2 | ( | ) | const [virtual] |
returns the antenna 2 index for this baseline.
Implements VLABaselineRecord.
void VLAContinuumRecord::attach | ( | ByteSource & | record, |
uInt | offset | ||
) |
Initialise this VLAContinuumRecord from the given BytesSource (which must contain a VLA logical record), and must be readable & seekable.
The offset specifies where the record starts.
Reimplemented from VLABaselineRecord.
virtual Vector<Complex> VLAContinuumRecord::data | ( | ) | const [virtual] |
returns the correlations for this baseline.
This will be a Vector with four elements containing the AA, CC, AC & CA (or BB, DD, BD, DB) correlations (ie all four polarisations). The returned Vector has been scaled.
Reimplemented from VLABaselineRecord.
virtual void VLAContinuumRecord::data | ( | Array< Complex > & | values | ) | const [virtual] |
Returns the correlations for this baseline in the supplied Array.
The supplied Array may have any number of dimensions, but all except one must have a length on 1. The axis that is not of length one must be the right length to hold all the data contained in the record. Alternatively the Array may contain no elements in which case it will be resized to a Vector of the correct length. The returned values have been scaled.
The returned Array has four elements containing the AA, CC, AC & CA (or BB, DD, BD, DB) correlations (ie all four polarisations).
Implements VLABaselineRecord.
virtual Vector<Bool> VLAContinuumRecord::flags | ( | ) | const [virtual] |
returns the flags for the correlations for this baseline.
The returned Vector will always have a length of four.
Implements VLABaselineRecord.
VLAContinuumRecord& VLAContinuumRecord::operator= | ( | const VLAContinuumRecord & | other | ) | [private] |
virtual uInt VLAContinuumRecord::scale | ( | ) | const [virtual] |
returns the scaling factor used to convert the internal data to the actual values.
Implements VLABaselineRecord.
virtual VLABaselineRecord::Type VLAContinuumRecord::type | ( | ) | const [virtual] |
Return the type of this record (ie., CONTINUUM).
Implements VLABaselineRecord.
Vector<Float> VLAContinuumRecord::variance | ( | ) | const |
returns the variance of the correlations for this baseline.
The returned Vector will always have a length of four.