source: branches/asap-3.x/external/atnf/PKSIO/PKSwriter.h@ 2270

Last change on this file since 2270 was 1720, checked in by Malte Marquarding, 15 years ago

Update from livedata CVS repository

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