Changeset 1757 for branches/alma/external/atnf/PKSIO/PKSreader.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/PKSreader.h
r1453 r1757 2 2 //# PKSreader.h: Class to read Parkes multibeam data. 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: PKSreader.h,v 19.24 2009-09-29 07:33:39 cal103 Exp $ 29 32 //#--------------------------------------------------------------------------- 30 33 //# Original: 2000/08/02, Mark Calabretta, ATNF … … 33 36 #ifndef ATNF_PKSREADER_H 34 37 #define ATNF_PKSREADER_H 38 39 #include <atnf/PKSIO/PKSrecord.h> 40 #include <atnf/PKSIO/SrcType.h> 35 41 36 42 #include <casa/aips.h> … … 40 46 #include <casa/BasicSL/String.h> 41 47 48 #include <casa/namespace.h> 49 42 50 // <summary> 43 51 // Class to read Parkes multibeam data. 44 52 // </summary> 45 53 46 #include <casa/namespace.h> 54 // Return an appropriate PKSreader for a Parkes Multibeam dataset. 55 class PKSreader* getPKSreader( 56 const String name, 57 const Int retry, 58 const Int interpolate, 59 String &format); 60 61 // As above, but search a list of directories for it. 62 class PKSreader* getPKSreader( 63 const String name, 64 const Vector<String> directories, 65 const Int retry, 66 const Int interpolate, 67 Int &iDir, 68 String &format); 47 69 48 70 // Open an appropriate PKSreader for a Parkes Multibeam dataset. 49 71 class PKSreader* getPKSreader( 50 72 const String name, 73 const String antenna, 51 74 const Int retry, 52 75 const Int interpolate, … … 63 86 class PKSreader* getPKSreader( 64 87 const String name, 88 const String antenna, 65 89 const Vector<String> directories, 66 90 const Int retry, … … 86 110 virtual Int open( 87 111 const String inName, 112 const String antenna, 88 113 Vector<Bool> &beams, 89 114 Vector<Bool> &IFs, … … 101 126 Vector<Double> &antPosition, 102 127 String &obsType, 128 String &bunit, 103 129 Float &equinox, 104 130 String &dopplerFrame, 105 131 Double &mjd, 106 132 Double &refFreq, 107 Double &bandwidth, 108 String &fluxunit) = 0; 133 Double &bandwidth) = 0; 109 134 110 135 // Get frequency parameters for each IF. … … 115 140 // Set data selection criteria. Channel numbering is 1-relative, zero or 116 141 // negative channel numbers are taken to be offsets from the last channel. 142 // Coordinate system selection (only supported for SDFITS input): 143 // 0: equatorial (RA,Dec), 144 // 1: horizontal (Az,El), 145 // 2: feed-plane, 146 // 3: zenithal position angle of feed and elevation, (ZPA,El). 117 147 virtual uInt select( 118 148 const Vector<Bool> beamSel, … … 123 153 const Bool getSpectra = True, 124 154 const Bool getXPol = False, 125 const Bool getFeedPos = False) = 0; 155 const Bool getFeedPos = False, 156 const Bool getPointing = False, 157 const Int coordSys = 0) = 0; 158 126 159 127 160 // Find the range of the data selected in time and position. … … 132 165 Matrix<Double> &positions) = 0; 133 166 134 // Read the next data record. 167 // Read the next data record. 168 /** 135 169 virtual Int read( 136 170 Int &scanNo, … … 175 209 Complex &xCalFctr, 176 210 Vector<Complex> &xPol) = 0; 177 211 **/ 212 /** 178 213 // Read the next data record, just the basics. 179 214 virtual Int read( … … 185 220 Matrix<Float> &spectra, 186 221 Matrix<uChar> &flagged) = 0; 222 **/ 223 virtual Int read(PKSrecord &pksrec) = 0; 187 224 188 225 // Close the input file. … … 190 227 191 228 protected: 192 Bool cGetFeedPos, cGetSpectra, cGetXPol; 229 Bool cGetFeedPos, cGetSpectra, cGetXPol, cGetPointing; 230 Int cCoordSys; 193 231 194 232 Vector<uInt> cNChan, cNPol;
Note: See TracChangeset
for help on using the changeset viewer.