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

Last change on this file since 1483 was 1452, checked in by Malte Marquarding, 16 years ago

update from livedata CVS

File size: 2.9 KB
Line 
1//#---------------------------------------------------------------------------
2//# PKSwriter.h: Class to write out Parkes multibeam data.
3//#---------------------------------------------------------------------------
4//# Copyright (C) 2000-2007
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.16 2008-11-17 06:46:36 cal103 Exp $
29//#---------------------------------------------------------------------------
30
31#ifndef ATNF_PKSWRITER_H
32#define ATNF_PKSWRITER_H
33
34#include <atnf/PKSIO/PKSmsg.h>
35#include <atnf/PKSIO/PKSrecord.h>
36
37#include <casa/aips.h>
38#include <casa/Arrays/Matrix.h>
39#include <casa/Arrays/Vector.h>
40#include <casa/BasicSL/Complex.h>
41#include <casa/BasicSL/String.h>
42
43#include <casa/namespace.h>
44
45// <summary>
46// Class to write out Parkes multibeam data.
47// </summary>
48
49class PKSwriter : public PKSmsg
50{
51 public:
52 // Destructor.
53 virtual ~PKSwriter() {};
54
55 // Create the output file and and write static data.
56 virtual Int create(
57 const String outName,
58 const String observer,
59 const String project,
60 const String antName,
61 const Vector<Double> antPosition,
62 const String obsMode,
63 const String bunit,
64 const Float equinox,
65 const String dopplerFrame,
66 const Vector<uInt> nChan,
67 const Vector<uInt> nPol,
68 const Vector<Bool> haveXPol,
69 const Bool havebase) = 0;
70
71 // Write the next data record.
72 virtual Int write (
73 const PKSrecord &pksrec) = 0;
74
75 // Write a history record.
76 virtual Int history(const String text) {return 0;};
77 virtual Int history(const char *text) {return 0;};
78
79 // Close the output file.
80 virtual void close() = 0;
81
82 protected:
83 Bool cHaveBase;
84 uInt cNIF;
85 Vector<Bool> cHaveXPol;
86 Vector<uInt> cNChan, cNPol;
87};
88
89#endif
Note: See TracBrowser for help on using the repository browser.