GBTMSWeatherFiller.h
Classes
- GBTMSWeatherFiller -- GBTMSWeatherFiller fills the MSWeather table for GBT fillers (full description)
Interface
- Public Members
- GBTMSWeatherFiller()
- GBTMSWeatherFiller(MSWeather &msWeather)
- ~GBTMSWeatherFiller()
- const String &device() const
- void attach(MSWeather &msWeather)
- Int prepare(const String &fileName, const String &manager, const String &sampler, const MVTime &startTime)
- void setAntennaId(Int antennaId)
- void fill()
- void flush()
- Private Members
- void init(MSWeather &msWeather)
- GBTMSWeatherFiller(const GBTMSWeatherFiller &other)
- void operator=(const GBTMSWeatherFiller &other)
Review Status
- Date Reviewed:
- yyyy/mm/dd
Prerequisite
- MeasurementSets
- GBT FITS files
Etymology
This class puts GBT data (fills) into the MSWeather table.
Synopsis
This class puts the appropriate values for the GBT in an MSWeather
table (which has been previously created as part of a MeasurementSet).
On each fill() any necessary additions to the MSWeather are made.
Because it works with the Weather FITS files in the same way that
the generic DAP fillers must work with multiple samplers and
managers, this class was derived from GBTDAPFillerBase.
Example
Motivation
Writing a filler is a daunting task. There are various dependencies
between the subtables. It helps to encapsulate the knowlege and
task of filling a specific subtable to separate classes.
Member Description
The default ctor. No MSWeather table has been attached yet.
Calling fill on such a filler will throw an exception.
It is present so that this object can be instantiated before
an MSWeather has been created.
A filler attached to an MSWeather table
attach it to an MSWeather
Int prepare(const String &fileName, const String &manager, const String &sampler, const MVTime &startTime)
prepare for filling the indicated weather file
set the antennaId - defaults to -1 if not explicitly set
fill what has been prepared
flush the underlying MS subtable
initialize the above for the first time
undefined and unavailable
void operator=(const GBTMSWeatherFiller &other)