Changeset 1757 for branches/alma/external/atnf/PKSIO/PKSMS2reader.h
- Timestamp:
- 06/09/10 19:03:06 (14 years ago)
- Location:
- branches/alma
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma
-
Property
svn:ignore
set to
.sconf_temp
.sconsign.dblite
-
Property
svn:mergeinfo
set to
/branches/asap-3.x merged eligible
-
Property
svn:ignore
set to
-
branches/alma/external/atnf/PKSIO/PKSMS2reader.h
r1453 r1757 2 2 //# PKSMS2reader.h: Class to read Parkes Multibeam data from a v2 MS. 3 3 //#--------------------------------------------------------------------------- 4 //# Copyright (C) 2000-2006 5 //# Associated Universities, Inc. Washington DC, USA. 6 //# 7 //# This library is free software; you can redistribute it and/or modify it 8 //# under the terms of the GNU Library General Public License as published by 9 //# the Free Software Foundation; either version 2 of the License, or (at your 10 //# option) any later version. 11 //# 12 //# This library is distributed in the hope that it will be useful, but WITHOUT 4 //# livedata - processing pipeline for single-dish, multibeam spectral data. 5 //# Copyright (C) 2000-2009, Australia Telescope National Facility, CSIRO 6 //# 7 //# This file is part of livedata. 8 //# 9 //# livedata is free software: you can redistribute it and/or modify it under 10 //# the terms of the GNU General Public License as published by the Free 11 //# Software Foundation, either version 3 of the License, or (at your option) 12 //# any later version. 13 //# 14 //# livedata is distributed in the hope that it will be useful, but WITHOUT 13 15 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 15 //# License for more details. 16 //# 17 //# You should have received a copy of the GNU Library General Public License 18 //# along with this library; if not, write to the Free Software Foundation, 19 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 20 //# 21 //# Correspondence concerning AIPS++ should be addressed as follows: 22 //# Internet email: aips2-request@nrao.edu. 23 //# Postal address: AIPS++ Project Office 24 //# National Radio Astronomy Observatory 25 //# 520 Edgemont Road 26 //# Charlottesville, VA 22903-2475 USA 27 //# 28 //# $Id$ 16 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 //# more details. 18 //# 19 //# You should have received a copy of the GNU General Public License along 20 //# with livedata. If not, see <http://www.gnu.org/licenses/>. 21 //# 22 //# Correspondence concerning livedata may be directed to: 23 //# Internet email: mcalabre@atnf.csiro.au 24 //# Postal address: Dr. Mark Calabretta 25 //# Australia Telescope National Facility, CSIRO 26 //# PO Box 76 27 //# Epping NSW 1710 28 //# AUSTRALIA 29 //# 30 //# http://www.atnf.csiro.au/computing/software/livedata.html 31 //# $Id: PKSMS2reader.h,v 19.18 2009-09-29 07:33:38 cal103 Exp $ 29 32 //#--------------------------------------------------------------------------- 30 33 //# Original: 2000/08/03, Mark Calabretta, ATNF … … 35 38 36 39 #include <atnf/PKSIO/PKSreader.h> 40 #include <atnf/PKSIO/PKSrecord.h> 37 41 38 42 #include <casa/aips.h> … … 46 50 #include <tables/Tables/ScalarColumn.h> 47 51 52 #include <casa/namespace.h> 53 48 54 // <summary> 49 55 // Class to read Parkes Multibeam data from a v2 MS. 50 56 // </summary> 51 52 #include <casa/namespace.h>53 57 54 58 class PKSMS2reader : public PKSreader … … 64 68 virtual Int open( 65 69 const String msName, 70 const String antenna, 66 71 Vector<Bool> &beams, 67 72 Vector<Bool> &IFs, … … 79 84 Vector<Double> &antPosition, 80 85 String &obsMode, 86 String &bunit, 81 87 Float &equinox, 82 String &freqRef, 88 //String &freqRef, 89 String &dopplerFrame, 83 90 Double &mjd, 84 91 Double &refFreq, 85 Double &bandwidth, 86 String &fluxunit); 92 Double &bandwidth); 87 93 88 94 // Get frequency parameters for each IF. … … 101 107 const Bool getSpectra = True, 102 108 const Bool getXPol = False, 103 const Bool getFeedPos = False); 109 const Bool getFeedPos = False, 110 const Bool getPointing = False, 111 const Int coordSys = 0); 112 104 113 105 114 // Find the range of the data selected in time and position. … … 111 120 112 121 // Read the next data record. 122 /** 113 123 virtual Int read( 114 124 Int &scanNo, … … 153 163 Complex &xCalFctr, 154 164 Vector<Complex> &xPol); 165 **/ 166 virtual Int read(PKSrecord &pksrec); 167 155 168 156 169 // Read the next data record, just the basics. … … 168 181 169 182 private: 183 Vector<String> splitAntennaSelectionString( const String s ); 184 void setupAntennaList( const String s ) ; 185 170 186 Bool cHaveBaseLin, cHaveCalFctr, cHaveSrcVel, cHaveTsys, cHaveXCalFctr, 171 cMSopen, cHaveTcal, cHaveDataCol, cA TF, cHaveSysCal, cHaveCorrectedDataCol;187 cMSopen, cHaveTcal, cHaveDataCol, cALMA, cHaveSysCal, cHaveCorrectedDataCol; 172 188 Int cCycleNo, cIdx, cNRow, cScanNo; 173 189 Double cTime, lastmjd; … … 175 191 Vector<Bool> cBeams, cIFs; 176 192 Vector<Slicer> cDataSel; 193 String cDirRef, cTelName; 177 194 MeasurementSet cPKSMS; 178 195 Table cSysCalTab, tmptab, tmptab2; 196 197 //Vector<String> cAntenna; 198 Vector<Int> cAntId; 179 199 180 200 ROScalarColumn<Int> cScanNoCol; … … 197 217 ROScalarColumn<Int> cSpWinIdCol; 198 218 ROArrayColumn<Double> cChanFreqCol; 219 ROScalarColumn<Double> cTotBWCol; 199 220 ROScalarColumn<Double> cWeatherTimeCol; 200 221 ROScalarColumn<Float> cTemperatureCol; … … 204 225 ROScalarColumn<Int> cBeamNoCol; 205 226 ROArrayColumn<Double> cPointingCol; 227 ROScalarColumn<Double> cPointingTimeCol; 206 228 ROArrayColumn<Float> cTsysCol; 207 229 ROArrayColumn<Float> cSigmaCol; … … 211 233 ROArrayColumn<Float> cFloatDataCol; 212 234 ROArrayColumn<Bool> cFlagCol; 235 ROScalarColumn<Bool> cFlagRowCol; 213 236 ROScalarColumn<Complex> cXCalFctrCol; 214 237 ROArrayColumn<Complex> cDataCol;
Note: See TracChangeset
for help on using the changeset viewer.