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

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

Update from livedata CVS repository

File size: 2.9 KB
RevLine 
[1325]1//#---------------------------------------------------------------------------
2//# PKSwriter.h: Class to write out Parkes multibeam data.
3//#---------------------------------------------------------------------------
[1720]4//# livedata - processing pipeline for single-dish, multibeam spectral data.
5//# Copyright (C) 2000-2009, Australia Telescope National Facility, CSIRO
[1325]6//#
[1720]7//# This file is part of livedata.
[1325]8//#
[1720]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
[1325]15//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
[1720]16//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17//# more details.
[1325]18//#
[1720]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/>.
[1325]21//#
[1720]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
[1325]29//#
[1720]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 $
[1325]32//#---------------------------------------------------------------------------
33
34#ifndef ATNF_PKSWRITER_H
35#define ATNF_PKSWRITER_H
36
[1452]37#include <atnf/PKSIO/PKSmsg.h>
38#include <atnf/PKSIO/PKSrecord.h>
39
[1325]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
[1452]46#include <casa/namespace.h>
47
[1325]48// <summary>
49// Class to write out Parkes multibeam data.
50// </summary>
51
[1452]52class PKSwriter : public PKSmsg
[1325]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,
[1399]66 const String bunit,
[1325]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 (
[1452]76 const PKSrecord &pksrec) = 0;
[1325]77
[1399]78 // Write a history record.
79 virtual Int history(const String text) {return 0;};
80 virtual Int history(const char *text) {return 0;};
81
[1325]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.