Changeset 1757 for branches/alma/external/atnf/PKSIO/PKSFITSreader.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/PKSFITSreader.h
r1453 r1757 2 2 //# PKSFITSreader.h: Class to read Parkes Multibeam data from a FITS file. 3 3 //#--------------------------------------------------------------------------- 4 //# Copyright (C) 2000-20065 //# Associated Universities, Inc. Washington DC, USA.4 //# livedata - processing pipeline for single-dish, multibeam spectral data. 5 //# Copyright (C) 2000-2009, Australia Telescope National Facility, CSIRO 6 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. 7 //# This file is part of livedata. 11 8 //# 12 //# This library is distributed in the hope that it will be useful, but WITHOUT 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 Public15 //# License formore details.16 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 17 //# more details. 16 18 //# 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. 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/>. 20 21 //# 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 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 27 29 //# 28 //# $Id$ 30 //# http://www.atnf.csiro.au/computing/software/livedata.html 31 //# $Id: PKSFITSreader.h,v 19.18 2009-09-29 07:33:38 cal103 Exp $ 29 32 //#--------------------------------------------------------------------------- 30 33 //# This class is basically a wrapper class for reading data from either an … … 39 42 40 43 #include <atnf/PKSIO/FITSreader.h> 44 #include <atnf/PKSIO/PKSrecord.h> 41 45 #include <atnf/PKSIO/PKSreader.h> 42 46 43 47 #include <casa/aips.h> 48 #include <casa/stdio.h> 44 49 #include <casa/Arrays/Vector.h> 45 50 #include <casa/Arrays/Matrix.h> … … 47 52 #include <casa/BasicSL/String.h> 48 53 54 #include <casa/namespace.h> 55 49 56 // <summary> 50 57 // Class to read Parkes Multibeam data from a FITS file. 51 58 // </summary> 52 59 53 #include <casa/namespace.h>54 60 class PKSFITSreader : public PKSreader 55 61 { … … 67 73 virtual Int open( 68 74 const String fitsName, 75 const String antenna, 69 76 Vector<Bool> &beams, 70 77 Vector<Bool> &IFs, … … 82 89 Vector<Double> &antPosition, 83 90 String &obsType, 91 String &bunit, 84 92 Float &equinox, 85 93 String &dopplerFrame, 86 94 Double &mjd, 87 95 Double &refFreq, 88 Double &bandwidth, 89 String &fluxunit); 96 Double &bandwidth); 90 97 91 98 // Get frequency parameters for each IF. … … 104 111 const Bool getSpectra = True, 105 112 const Bool getXPol = False, 106 const Bool getFeedPos = False); 113 const Bool getFeedPos = False, 114 const Bool getPointing = False, 115 const Int coordSys = 0); 107 116 108 117 // Find the range of the data selected in time and position. … … 114 123 115 124 // Read the next data record. 116 virtual Int read( 117 Int &scanNo, 118 Int &cycleNo, 119 Double &mjd, 120 Double &interval, 121 String &fieldName, 122 String &srcName, 123 Vector<Double> &srcDir, 124 Vector<Double> &srcPM, 125 Double &srcVel, 126 String &obsType, 127 Int &IFno, 128 Double &refFreq, 129 Double &bandwidth, 130 Double &freqInc, 131 Vector<Double> &restFreq, 132 Vector<Float> &tcal, 133 String &tcalTime, 134 Float &azimuth, 135 Float &elevation, 136 Float &parAngle, 137 Float &focusAxi, 138 Float &focusTan, 139 Float &focusRot, 140 Float &temperature, 141 Float &pressure, 142 Float &humidity, 143 Float &windSpeed, 144 Float &windAz, 145 Int &refBeam, 146 Int &beamNo, 147 Vector<Double> &direction, 148 Vector<Double> &scanRate, 149 Vector<Float> &tsys, 150 Vector<Float> &sigma, 151 Vector<Float> &calFctr, 152 Matrix<Float> &baseLin, 153 Matrix<Float> &baseSub, 154 Matrix<Float> &spectra, 155 Matrix<uChar> &flagged, 156 Complex &xCalFctr, 157 Vector<Complex> &xPol); 158 159 // Read the next data record, just the basics. 160 virtual Int read( 161 Int &IFno, 162 Vector<Float> &tsys, 163 Vector<Float> &calFctr, 164 Matrix<Float> &baseLin, 165 Matrix<Float> &baseSub, 166 Matrix<Float> &spectra, 167 Matrix<uChar> &flagged); 125 virtual Int read(PKSrecord &pksrec); 168 126 169 127 // Close the FITS file. … … 173 131 Int *cBeams, *cIFs; 174 132 uInt cNBeam, cNIF; 175 PKSMBrecord cMBrec;133 MBrecord cMBrec; 176 134 FITSreader *cReader; 177 135
Note: See TracChangeset
for help on using the changeset viewer.