casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
GBTDCRFiller.h
Go to the documentation of this file.
00001 //# GBTDCRFiller: A GBTBackendFiller for DCR data
00002 //# Copyright (C) 1999,2000,2001,2002
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //#
00027 //# $Id$
00028 
00029 #ifndef NRAO_GBTDCRFILLER_H
00030 #define NRAO_GBTDCRFILLER_H
00031 
00032 //#! Includes go here
00033 #include <casa/aips.h>
00034 #include <nrao/FITS/GBTScanLogReader.h>
00035 #include <nrao/FITS/GBTAntennaFile.h>
00036 #include <nrao/GBTFillers/GBTBackendFiller.h>
00037 
00038 #include <casa/Utilities/Regex.h>
00039 #include <casa/BasicSL/String.h>
00040 #include <tables/Tables/ScalarColumn.h>
00041 
00042 //# Forward Declarations
00043 namespace casa { //# NAMESPACE CASA - BEGIN
00044 template <class T> class Block;
00045 } //# NAMESPACE CASA - END
00046 
00047 class GBTBackendTable;
00048 class GBTMSTypeFiller;
00049 class GBTMSTypeDataFiller;
00050 class GBTMSTypeSampFiller;
00051 class GBTMSTypeStateFiller;
00052 class GBTIFFiller;
00053 class GBTGOFiller;
00054 class GBTRcvrCalFiller;
00055 class GBTStateTable;
00056 
00057 #include <casa/namespace.h>
00058 
00059 // <summary>
00060 // A GBTBackendFiller for DCR data
00061 // </summary>
00062 
00063 // <use visibility=local>
00064 
00065 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00066 // </reviewed>
00067 
00068 // <prerequisite>
00069 //   <li> <linkto class=GBTBackendFiller>GBTBackendFIller</linkto>
00070 //   <li> The GBT DCR FITS file format.
00071 // </prerequisite>
00072 //
00073 // <etymology>
00074 // This fills GBT DCR data to a MS, hence GBTDCRFiller.
00075 // </etymology>
00076 //
00077 // <synopsis>
00078 // </synopsis>
00079 //
00080 // <example>
00081 // </example>
00082 //
00083 // <motivation>
00084 // There exist DCR data at the GBT which needs to be filled.
00085 // </motivation>
00086 //
00087 // <todo asof="yyyy/mm/dd">
00088 //   <li> Probably many things.
00089 // </todo>
00090 
00091 class GBTDCRFiller : public GBTBackendFiller
00092 {
00093 public:
00094     // construct one
00095     GBTDCRFiller(const String &msName, const Regex &object);
00096     
00097     ~GBTDCRFiller();
00098 
00099     virtual GBTScanLogReader::BACKENDS type() {return GBTScanLogReader::DCR;}
00100 
00101     // fill a given backend file and DAP files
00102     virtual Bool fill(const String &backendFile,
00103                       const Block<String> &dapFiles,
00104                       const String &ifManagerFile,
00105                       const Block<String> &rxCalInfoFiles,
00106                       const GBTGOFile &GOFile,
00107                       const String &antennaFile,
00108                       const GBTStateTable &masterState,
00109                       const GBTLO1File &LO1A,
00110                       const GBTLO1File &LO1B,
00111                       const GBTMSFillOptions &fillOptions);
00112 
00113 private:
00114     GBTBackendTable *dcrTab_p;
00115     String msName_p;
00116     Regex object_p;
00117 
00118     ScalarColumn<Int> ifId_p, gbtStateId_p, samplerId_p;
00119 
00120     // the associated tables
00121     GBTMSTypeDataFiller *typeDataTab_p;
00122     GBTMSTypeFiller *typeTab_p;
00123     GBTMSTypeStateFiller *typeStateTab_p;
00124     GBTMSTypeSampFiller *typeSampTab_p;
00125 
00126     Table *gbtPointingTab_p, *gbtFocusTab_p;
00127 
00128     // IF filler
00129     GBTIFFiller *ifFiller_p;
00130 
00131     // ANTENNA file
00132     GBTAntennaFile antennaFile_p;
00133 
00134     // RX CAL INFO files filler
00135     GBTRcvrCalFiller *rxCalFiller_p;
00136 
00137     // GO (user interface) filler
00138     GBTGOFiller *GOFiller_p;
00139 
00140     void attachColumns();
00141 
00142     // unset and unavailable
00143     GBTDCRFiller();
00144     GBTDCRFiller(const GBTDCRFiller &);
00145     GBTDCRFiller &operator=(const GBTDCRFiller &);
00146 };
00147 
00148 #endif
00149