[1325] | 1 | //#---------------------------------------------------------------------------
|
---|
| 2 | //# PKSwriter.h: Class to write out Parkes multibeam data.
|
---|
| 3 | //#---------------------------------------------------------------------------
|
---|
[1757] | 4 | //# livedata - processing pipeline for single-dish, multibeam spectral data.
|
---|
| 5 | //# Copyright (C) 2000-2009, Australia Telescope National Facility, CSIRO
|
---|
[1325] | 6 | //#
|
---|
[1757] | 7 | //# This file is part of livedata.
|
---|
[1325] | 8 | //#
|
---|
[1757] | 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
|
---|
[1757] | 16 | //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
---|
| 17 | //# more details.
|
---|
[1325] | 18 | //#
|
---|
[1757] | 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 | //#
|
---|
[1757] | 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 | //#
|
---|
[1757] | 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 |
|
---|
[1757] | 37 | #include <atnf/PKSIO/PKSrecord.h>
|
---|
| 38 |
|
---|
[1325] | 39 | #include <casa/aips.h>
|
---|
| 40 | #include <casa/Arrays/Matrix.h>
|
---|
| 41 | #include <casa/Arrays/Vector.h>
|
---|
| 42 | #include <casa/BasicSL/Complex.h>
|
---|
| 43 | #include <casa/BasicSL/String.h>
|
---|
| 44 |
|
---|
[1757] | 45 | #include <casa/namespace.h>
|
---|
| 46 |
|
---|
[1325] | 47 | // <summary>
|
---|
| 48 | // Class to write out Parkes multibeam data.
|
---|
| 49 | // </summary>
|
---|
| 50 |
|
---|
| 51 | class PKSwriter
|
---|
| 52 | {
|
---|
| 53 | public:
|
---|
| 54 | // Destructor.
|
---|
| 55 | virtual ~PKSwriter() {};
|
---|
| 56 |
|
---|
| 57 | // Create the output file and and write static data.
|
---|
| 58 | virtual Int create(
|
---|
| 59 | const String outName,
|
---|
| 60 | const String observer,
|
---|
| 61 | const String project,
|
---|
| 62 | const String antName,
|
---|
| 63 | const Vector<Double> antPosition,
|
---|
| 64 | const String obsMode,
|
---|
[1757] | 65 | const String bunit,
|
---|
[1325] | 66 | const Float equinox,
|
---|
| 67 | const String dopplerFrame,
|
---|
| 68 | const Vector<uInt> nChan,
|
---|
| 69 | const Vector<uInt> nPol,
|
---|
| 70 | const Vector<Bool> haveXPol,
|
---|
[1757] | 71 | const Bool havebase) = 0;
|
---|
[1325] | 72 |
|
---|
| 73 | // Write the next data record.
|
---|
| 74 | virtual Int write (
|
---|
[1757] | 75 | const PKSrecord &pksrec) = 0;
|
---|
[1325] | 76 |
|
---|
[1757] | 77 | // Write a history record.
|
---|
[3067] | 78 | virtual Int history(const String /*text*/) {return 0;};
|
---|
| 79 | virtual Int history(const char */*text*/) {return 0;};
|
---|
[1757] | 80 |
|
---|
[1325] | 81 | // Close the output file.
|
---|
| 82 | virtual void close() = 0;
|
---|
| 83 |
|
---|
| 84 | protected:
|
---|
| 85 | Bool cHaveBase;
|
---|
| 86 | uInt cNIF;
|
---|
| 87 | Vector<Bool> cHaveXPol;
|
---|
| 88 | Vector<uInt> cNChan, cNPol;
|
---|
| 89 | };
|
---|
| 90 |
|
---|
| 91 | #endif
|
---|