GBTFeedDDFiller.h
Classes
- GBTFeedDDFiller -- This class fills the FEED and DATA_DESCRIPTION tables for GBT data. (full description)
Interface
- Public Members
- GBTFeedDDFiller()
- GBTFeedDDFiller(MeasurementSet &ms)
- ~GBTFeedDDFiller()
- void attach(MeasurementSet &ms)
- Bool isAttached()
- Bool fill(const GBTBackendTable &backend, const GBTIFFiller &iffiller, const GBTAntennaFile &antFile, const GBTLO1File &lo1aFile, const GBTLO1File &lo1bFile, const String &swtchsig, Bool continuum = False, Bool bankCheck = False)
- uInt nfeeds()
- uInt nstates()
- const GBTFeed &feed(uInt whichFeed) const
- GBTFeed &feed(uInt whichFeed)
- void setTime(Double time, Double interval)
- void flush()
- Bool hasBeamSwitched()
- void origin() const
- uInt ncorr() const
- void next() const
- const GBTFeed &currFeed() const
- const GBTIF &currIF() const
- const GBTCorrelation &currCorr() const
- Private Members
- void clear()
- void digestFeeds(const GBTAntennaFile &antFile, const GBTIFFiller &iffiller, const String &swtchsig)
- void digestSampler(const GBTBackendTable &backend, const GBTIFFiller &iffiller, const GBTLO1File &lo1aFile, const GBTLO1File &lo1bFile, Bool continuum, Bool bankCheck)
- void fillMSSW()
- void findOtherBanks(const GBTIFFiller &iffiller)
- GBTFeedDDFiller(const GBTFeedDDFiller &)
- GBTFeedDDFiller &operator=(const GBTFeedDDFiller &)
Review Status
- Date Reviewed:
- yyyy/mm/dd
- Programs:
- Tests:
Prerequisite
- MeasurementSet FEED table
- MeasurementSet DATA_DESCRIPTION, POLARIZATION, and SPECTRAL_WINDOW tables.
- GBT FITS files
Etymology
This class takes the GBT backend FITS file, IF manager file and Antenna manager
file for a scan, digests them so that each sampler is associated with a FEED
and IF. At that point, the FEED, POLARIZATION, SPECTRAL_WINDOW, and DATA_DESCRIPTION
tables can all be filled.
Synopsis
Example
Motivation
Member Description
Default constructor, not associated with any parent MeasurementSet.
This is useful only when this object must exist before the MS does.
An MS can be attached later. If fill is called before the MS is
attached, it will return False.
Construct this attached to the associated MS.
attach this to a MS, breaks any existing attachments
Bool fill(const GBTBackendTable &backend, const GBTIFFiller &iffiller, const GBTAntennaFile &antFile, const GBTLO1File &lo1aFile, const GBTLO1File &lo1bFile, const String &swtchsig, Bool continuum = False, Bool bankCheck = False)
digest the scan using these tables/files and fill to the
appropriate sub-tables. Returns False if there is no MS
attached. Selection on a specific backend has already
occured in the GBTIFFiller setup which should correspond
to the backend that sampler is from. If
continuum is True then the doppler info from the LO1 tables will
be ignored in the GBTIF constructor. Also, at this time
each correlation will contain just one receptor.
If bankCheck is true then checks occur which are only appropriate
to the multi-bank ACS case.
The number of feeds just filled.
Number of states for things just filled.
const GBTFeed &feed(uInt whichFeed) const
Get a specific GBTFeed - 0 through nfeeds()-1
Get a specific GBTFeed to possibley modify - 0 through nfeeds()-1
void setTime(Double time, Double interval)
Set the midpoint and interval for this scan - generally this
isn't known until after most of this information is filled
and need. This only affects the FEED subtable.
flush all associated fillers
Does this most recently filled data contain any beam switched data?
void origin() const
These functions allow one to easily iterate through and get the IDs
and sampler row numbers for each of the correlations and states
involved in all feeds in the most recently filled data.
Reset the iterator to the top.
uInt ncorr() const
These functions allow one to easily iterate through and get the IDs
and sampler row numbers for each of the correlations and states
involved in all feeds in the most recently filled data.
The total number of correlations, all feeds.
void next() const
These functions allow one to easily iterate through and get the IDs
and sampler row numbers for each of the correlations and states
involved in all feeds in the most recently filled data.
Move to the next correlation. Can do this ncorr() times after origin().
These functions allow one to easily iterate through and get the IDs
and sampler row numbers for each of the correlations and states
involved in all feeds in the most recently filled data.
The current feed
These functions allow one to easily iterate through and get the IDs
and sampler row numbers for each of the correlations and states
involved in all feeds in the most recently filled data.
The current IF
These functions allow one to easily iterate through and get the IDs
and sampler row numbers for each of the correlations and states
involved in all feeds in the most recently filled data.
The current correlation
GBTFeedDDFiller &operator=(const GBTFeedDDFiller &)