source: tags/asap2.2.0/external/atnf/PKSIO/PKSSDwriter.h@ 1845

Last change on this file since 1845 was 1325, checked in by mar637, 17 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.4 KB
Line 
1//#---------------------------------------------------------------------------
2//# PKSSDWriter.h: Class to write Parkes multibeam data to an SDFITS file.
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: PKSSDwriter.h,v 19.12 2006/07/05 05:37:32 mcalabre Exp $
29//# Original: 2000/07/21, Mark Calabretta, ATNF
30//#---------------------------------------------------------------------------
31
32#ifndef ATNF_PKSSDWRITER_H
33#define ATNF_PKSSDWRITER_H
34
35#include <atnf/PKSIO/PKSwriter.h>
36#include <atnf/PKSIO/SDFITSwriter.h>
37
38#include <casa/aips.h>
39#include <casa/Arrays/Vector.h>
40#include <casa/Arrays/Matrix.h>
41#include <casa/BasicSL/Complex.h>
42#include <casa/BasicSL/String.h>
43
44// <summary>
45// Class to write Parkes multibeam data to an SDFITS file.
46// </summary>
47
48#include <casa/namespace.h>
49class PKSSDwriter : public PKSwriter
50{
51 public:
52 // Default constructor.
53 PKSSDwriter();
54
55 // Destructor.
56 virtual ~PKSSDwriter();
57
58 // Create the SDFITS file and write static data.
59 virtual Int create(
60 const String sdName,
61 const String observer,
62 const String project,
63 const String antName,
64 const Vector<Double> antPosition,
65 const String obsMode,
66 const Float equinox,
67 const String dopplerFrame,
68 const Vector<uInt> nChan,
69 const Vector<uInt> nPol,
70 const Vector<Bool> haveXPol,
71 const Bool haveBase);
72
73 // Write the next data record.
74 virtual Int write(
75 const Int scanNo,
76 const Int cycleNo,
77 const Double mjd,
78 const Double interval,
79 const String fieldName,
80 const String srcName,
81 const Vector<Double> srcDir,
82 const Vector<Double> srcPM,
83 const Double srcVel,
84 const String obsMode,
85 const Int IFno,
86 const Double refFreq,
87 const Double bandwidth,
88 const Double freqInc,
89 const Double restFreq,
90 const Vector<Float> tcal,
91 const String tcalTime,
92 const Float azimuth,
93 const Float elevation,
94 const Float parAngle,
95 const Float focusAxi,
96 const Float focusTan,
97 const Float focusRot,
98 const Float temperature,
99 const Float pressure,
100 const Float humidity,
101 const Float windSpeed,
102 const Float windAz,
103 const Int refBeam,
104 const Int beamNo,
105 const Vector<Double> direction,
106 const Vector<Double> scanRate,
107 const Vector<Float> tsys,
108 const Vector<Float> sigma,
109 const Vector<Float> calFctr,
110 const Matrix<Float> baselin,
111 const Matrix<Float> basesub,
112 const Matrix<Float> &spectra,
113 const Matrix<uChar> &flagged,
114 const Complex xCalFctr,
115 const Vector<Complex> &xPol);
116
117 // Close the SDFITS file.
118 virtual void close();
119
120 private:
121 // Masks declaration in parent class.
122 Vector<uInt> cHaveXPol;
123
124 SDFITSwriter cSDwriter;
125};
126
127#endif
Note: See TracBrowser for help on using the repository browser.