casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
GBTMeanFocusFiller.h
Go to the documentation of this file.
00001 //# GBTMeanFocusFiller: Fill the MEAN_FOCUS table from the ANTENNA file
00002 //# Copyright (C) 2001
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_GBTMEANFOCUSFILLER_H
00030 #define NRAO_GBTMEANFOCUSFILLER_H
00031 
00032 #include <casa/aips.h>
00033 #include <tables/Tables/ScalarColumn.h>
00034 #include <casa/BasicSL/String.h>
00035 #include <tables/Tables/Table.h>
00036 
00037 //# Forward declarations
00038 namespace casa { //# NAMESPACE CASA - BEGIN
00039 class MeasurementSet;
00040 } //# NAMESPACE CASA - END
00041 
00042 #include <casa/namespace.h>
00043 
00044 class GBTAntennaFile;
00045 
00046 // <summary>
00047 // Fill the pointing model record from a GBTAntennaFile.
00048 // </summary>
00049 
00050 // <use visibility=local>
00051 
00052 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos="">
00053 // </reviewed>
00054 
00055 // <prerequisite>
00056 //   <li> 
00057 // </prerequisite>
00058 //
00059 // <etymology>
00060 // 
00061 // </etymology>
00062 //
00063 // <synopsis>
00064 // </synopsis>
00065 //
00066 // <example>
00067 // </example>
00068 //
00069 // <motivation>
00070 // </motivation>
00071 //
00072 // <thrown>
00073 //    <li>
00074 //    <li>
00075 // </thrown>
00076 //
00077 
00078 class GBTMeanFocusFiller
00079 {
00080 public:
00081     // Attach this to the indicated MeasurementSet
00082     GBTMeanFocusFiller(MeasurementSet &ms);
00083 
00084     ~GBTMeanFocusFiller();
00085 
00086     // fill using the indicated antenna file and the specific time and interval
00087     void fill(Double time, Double interval, GBTAntennaFile &antennaFile);
00088 
00089     // the most recently filled row - always last in the table
00090     Int meanFocusId() {return (itsTable ? (Int(itsTable->nrow())-1) : -1);}
00091 
00092     // flush this table
00093     void flush() {itsTable->flush();}
00094 private:
00095     Table *itsTable;
00096 
00097     // The columns being filled - depends on the optics type
00098     ScalarColumn<String> itsOpticsType;
00099 
00100     // prime focus
00101     ScalarColumn<Double> itsPFfocus, itsPFrotation, itsPFx;
00102 
00103     // Gregorian (use "SR" because that is what is in the ANTENNA table)
00104     ScalarColumn<Double> itsSRxp, itsSRyp, itsSRzp, itsSRxt, itsSRyt, itsSRzt;
00105 
00106     // undefined an inaccessable
00107     GBTMeanFocusFiller();
00108     GBTMeanFocusFiller(const GBTMeanFocusFiller &other);
00109     GBTMeanFocusFiller &operator=(const GBTMeanFocusFiller &other);
00110 
00111 };
00112 
00113 #endif
00114 
00115