casa
$Rev:20696$
|
00001 //# GBTAntennaDAPFiller: A GBTDAPFiller for antenna DAPs 00002 //# Copyright (C) 2000,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_GBTANTENNADAPFILLER_H 00030 #define NRAO_GBTANTENNADAPFILLER_H 00031 00032 #include <nrao/GBTFillers/GBTDAPFiller.h> 00033 #include <tables/Tables/Table.h> 00034 #include <tables/Tables/TableColumn.h> 00035 00036 // <summary> 00037 // A GBTDAPFiller for antenna DAPs. 00038 // </summary> 00039 00040 // <use visibility=local> 00041 00042 // <reviewed reviewer="" date="yyyy/mm/dd" tests="" demos=""> 00043 // </reviewed> 00044 00045 // <prerequisite> 00046 // <li> GBT DAP FITS files 00047 // <li> GBTAntennaDAPFillerBase.h 00048 // </prerequisite> 00049 // 00050 // <etymology> 00051 // This fills GBT DAP FITS file from the Antenna device into a subtable of 00052 // the MS. 00053 // </etymology> 00054 // 00055 // <synopsis> 00056 // </synopsis> 00057 // 00058 // <example> 00059 // </example> 00060 // 00061 // <motivation> 00062 // It is necessary to have access to the sky position information during each scan 00063 // for use in filling other parts of the MS. 00064 // </motivation> 00065 // 00066 // <thrown> 00067 // <li> 00068 // <li> 00069 // </thrown> 00070 // 00071 00072 #include <casa/namespace.h> 00073 00074 class GBTAntennaDAPFiller : public GBTDAPFiller 00075 { 00076 public: 00077 // makes new one if not already present in parent, otherwise 00078 // it opens that one up as is 00079 GBTAntennaDAPFiller(const String &device, Table &parent); 00080 00081 virtual ~GBTAntennaDAPFiller(); 00082 00083 virtual Int prepare(const String &fileName, const String &manager, 00084 const String &sampler, const MVTime &startTime); 00085 00086 // fill to the standard table attached to the parent used at construction 00087 virtual void fill(); 00088 00089 // Return the sky position information. These columns are NOT attached 00090 // until the DAP has been filled. They will also not be attached if the 00091 // skyPosition sampler is not know to the filler. Only the most recently 00092 // filled skyPosition information will be available. 00093 // <group> 00094 virtual const ROTableColumn &j2000RA() {return j2000ra_p;} 00095 virtual const ROTableColumn &j2000DEC() {return j2000dec_p;} 00096 virtual const ROTableColumn &time() {return time_p;} 00097 // </group> 00098 private: 00099 Table *skyTable_p; 00100 ROTableColumn j2000ra_p, j2000dec_p, time_p; 00101 00102 Bool hasSkyPosition_p; 00103 00104 void cleanup(); 00105 00106 // unavailable, undefined 00107 GBTAntennaDAPFiller(); 00108 GBTAntennaDAPFiller(const GBTAntennaDAPFiller &); 00109 GBTAntennaDAPFiller &operator=(const GBTAntennaDAPFiller &); 00110 }; 00111 00112 00113 #endif 00114 00115