source: trunk/external-alma/atnf/PKSIO/PKSwriter.h@ 2059

Last change on this file since 2059 was 1757, checked in by Kana Sugimoto, 14 years ago

New Development: Yes

JIRA Issue: Yes (CAS-2211)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: ASAP 3.0.0 interface changes

Test Programs:

Put in Release Notes: Yes

Module(s): all the CASA sd tools and tasks are affected.

Description: Merged ATNF-ASAP 3.0.0 developments to CASA (alma) branch.

Note you also need to update casa/code/atnf.


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/PKSrecord.h>
38
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
45#include <casa/namespace.h>
46
47// <summary>
48// Class to write out Parkes multibeam data.
49// </summary>
50
51class 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,
65 const String bunit,
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) = 0;
72
73 // Write the next data record.
74 virtual Int write (
75 const PKSrecord &pksrec) = 0;
76
77 // Write a history record.
78 virtual Int history(const String text) {return 0;};
79 virtual Int history(const char *text) {return 0;};
80
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
Note: See TracBrowser for help on using the repository browser.