casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
GBTHoloFiller.h
Go to the documentation of this file.
00001 //# GBTHoloFiller: A GBTBackendFiller for Holography 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_GBTHOLOFILLER_H
00030 #define NRAO_GBTHOLOFILLER_H
00031 
00032 //#! Includes go here
00033  #include <casa/aips.h>
00034 #include <nrao/FITS/GBTAntennaFile.h>
00035 #include <nrao/GBTFillers/GBTBackendFiller.h>
00036 
00037 #include <casa/Containers/Block.h>
00038 #include <casa/BasicSL/String.h>
00039 #include <casa/Utilities/Regex.h>
00040 #include <tables/Tables/ScalarColumn.h>
00041 
00042 #include <casa/namespace.h>
00043 
00044 //# Forward Declarations
00045 class GBTBackendTable;
00046 class GBTMSTypeFiller;
00047 class GBTMSTypeDataFiller;
00048 class GBTIFFiller;
00049 class GBTGOFiller;
00050 class GBTRcvrCalFiller;
00051 class GBTStateTable;
00052 
00053 // <summary>
00054 // A GBTBackendFiller for Holography data
00055 // </summary>
00056 
00057 // <use visibility=local>
00058 
00059 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00060 // </reviewed>
00061 
00062 // <prerequisite>
00063 //   <li> <linkto class=GBTBackendFiller>GBTBackendFIller</linkto>
00064 //   <li> The GBT DCR FITS file format.
00065 // </prerequisite>
00066 //
00067 // <etymology>
00068 // This fills GBT Holography data to a MS, hence GBTHoloFiller.
00069 // </etymology>
00070 //
00071 // <synopsis>
00072 // </synopsis>
00073 //
00074 // <example>
00075 // </example>
00076 //
00077 // <motivation>
00078 // There exist holography data at the GBT which needs to be filled.
00079 // </motivation>
00080 //
00081 // <todo asof="yyyy/mm/dd">
00082 //   <li> probably many things.
00083 // </todo>
00084 
00085 class GBTHoloFiller : public GBTBackendFiller
00086 {
00087 public:
00088     // construct one
00089     GBTHoloFiller(const String &msName, const Regex &object);
00090     
00091     ~GBTHoloFiller();
00092 
00093     virtual GBTScanLogReader::BACKENDS type() {return GBTScanLogReader::HOLOGRAPHY;}
00094 
00095     // fill a given backend file and DAP files
00096     virtual Bool fill(const String &backendFile,
00097                       const Block<String> &dapFiles,
00098                       const String &ifManagerFile,
00099                       const Block<String> &rxCalInfoFiles,
00100                       const GBTGOFile &GOFile,
00101                       const String &antennaFile,
00102                       const GBTStateTable &masterState,
00103                       const GBTLO1File &LO1A,
00104                       const GBTLO1File &LO1B,
00105                       const GBTMSFillOptions &fillOptions);
00106 
00107 private:
00108     GBTBackendTable *holoTab_p;
00109     String msName_p;
00110     Regex object_p;
00111 
00112     // the associated tables
00113     GBTMSTypeDataFiller *typeDataTab_p;
00114     GBTMSTypeFiller *typeTab_p;
00115 
00116     // the backend ID column
00117     ScalarColumn<Int> ifId_p;
00118 
00119     Table *gbtPointingTab_p, *gbtFocusTab_p;
00120 
00121     // IF manager filler
00122     GBTIFFiller *ifFiller_p;
00123 
00124     // ANTENNA file
00125     GBTAntennaFile antennaFile_p;
00126 
00127     // RX CAL INFO files filler
00128     GBTRcvrCalFiller *rxCalFiller_p;
00129 
00130     // GO (user interface) filler
00131     GBTGOFiller *GOFiller_p;
00132 
00133     void attachColumns();
00134 
00135     // unset and unavailable
00136     GBTHoloFiller();
00137     GBTHoloFiller(const GBTHoloFiller &);
00138     GBTHoloFiller &operator=(const GBTHoloFiller &);
00139 };
00140 
00141 #endif
00142