source: trunk/external/atnf/PKSIO/PKSwriter.h@ 1374

Last change on this file since 1374 was 1325, checked in by mar637, 18 years ago

Changes to use casacore instead of casa_asap/aips++\nAdded atnf PKSIO library snapshot to external and linking against this local copy

File size: 4.1 KB
Line 
1//#---------------------------------------------------------------------------
2//# PKSwriter.h: Class to write out Parkes multibeam data.
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
13//# 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: PKSwriter.h,v 19.12 2006/07/05 05:33:31 mcalabre Exp $
29//#---------------------------------------------------------------------------
30
31#ifndef ATNF_PKSWRITER_H
32#define ATNF_PKSWRITER_H
33
34#include <casa/aips.h>
35#include <casa/Arrays/Matrix.h>
36#include <casa/Arrays/Vector.h>
37#include <casa/BasicSL/Complex.h>
38#include <casa/BasicSL/String.h>
39
40// <summary>
41// Class to write out Parkes multibeam data.
42// </summary>
43
44#include <casa/namespace.h>
45class PKSwriter
46{
47 public:
48 // Destructor.
49 virtual ~PKSwriter() {};
50
51 // Create the output file and and write static data.
52 virtual Int create(
53 const String outName,
54 const String observer,
55 const String project,
56 const String antName,
57 const Vector<Double> antPosition,
58 const String obsMode,
59 const Float equinox,
60 const String dopplerFrame,
61 const Vector<uInt> nChan,
62 const Vector<uInt> nPol,
63 const Vector<Bool> haveXPol,
64 const Bool havebase) = 0;
65
66 // Write the next data record.
67 virtual Int write (
68 const Int scanNo,
69 const Int cycleNo,
70 const Double mjd,
71 const Double interval,
72 const String fieldName,
73 const String srcName,
74 const Vector<Double> srcDir,
75 const Vector<Double> srcPM,
76 const Double srcVel,
77 const String obsMode,
78 const Int IFno,
79 const Double refFreq,
80 const Double bandwidth,
81 const Double freqInc,
82 const Double restFreq,
83 const Vector<Float> tcal,
84 const String tcalTime,
85 const Float azimuth,
86 const Float elevation,
87 const Float parAngle,
88 const Float focusAxi,
89 const Float focusTan,
90 const Float focusRot,
91 const Float temperature,
92 const Float pressure,
93 const Float humidity,
94 const Float windSpeed,
95 const Float windAz,
96 const Int refBeam,
97 const Int beamNo,
98 const Vector<Double> direction,
99 const Vector<Double> scanRate,
100 const Vector<Float> tsys,
101 const Vector<Float> sigma,
102 const Vector<Float> calFctr,
103 const Matrix<Float> baseLin,
104 const Matrix<Float> baseSub,
105 const Matrix<Float> &spectra,
106 const Matrix<uChar> &flagged,
107 const Complex xCalFctr,
108 const Vector<Complex> &xPol) = 0;
109
110 // Close the output file.
111 virtual void close() = 0;
112
113 protected:
114 Bool cHaveBase;
115 uInt cNIF;
116 Vector<Bool> cHaveXPol;
117 Vector<uInt> cNChan, cNPol;
118};
119
120#endif
Note: See TracBrowser for help on using the repository browser.