source: trunk/src/STFITSImageWriter.h@ 2788

Last change on this file since 2788 was 2658, checked in by Malte Marquarding, 12 years ago

Ticket #199: Excised Logger::pushLog; now everything is using LogIO

File size: 2.3 KB
RevLine 
[1443]1//#---------------------------------------------------------------------------
2//# STFITSImageWriter.h: ASAP class to write out single dish spectra as image FITS
3//#---------------------------------------------------------------------------
4//# Copyright (C) 2008
5//# ATNF
6//#
7//# This program is free software; you can redistribute it and/or modify it
8//# under the terms of the GNU General Public License as published by the Free
9//# Software Foundation; either version 2 of the License, or (at your option)
10//# any later version.
11//#
12//# This program is distributed in the hope that it will be useful, but
13//# WITHOUT ANY WARRANTY; without even the implied warranty of
14//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15//# Public License for more details.
16//#
17//# You should have received a copy of the GNU General Public License along
18//# with this program; if not, write to the Free Software Foundation, Inc.,
19//# 675 Massachusetts Ave, Cambridge, MA 02139, USA.
20//#
21//# Correspondence concerning this software should be addressed as follows:
22//# Internet email: Malte.Marquarding@csiro.au
23//# Postal address: Malte Marquarding,
24//# Australia Telescope National Facility,
25//# P.O. Box 76,
26//# Epping, NSW, 2121,
27//# AUSTRALIA
28//#
29//# $Id: STFITSImageWriter.h 1106 2006-08-03 00:28:39Z mar637 $
30//#---------------------------------------------------------------------------
31#ifndef STFITSIMAGEWRITER_H
32#define STFITSIMAGEWRITER_H
33
34#include <casa/aips.h>
35
36#include <coordinates/Coordinates/DirectionCoordinate.h>
37
[2658]38//#include "Scantable.h"
39
40namespace casa {
41 class String;
42}
43
[1443]44namespace asap {
[2658]45
46class Scantable;
47
48
[1443]49/**
50 * A class to export a Scantable to FITS file(s)
51 */
[2658]52class STFITSImageWriter {
[1443]53public:
54// Constructor
55 STFITSImageWriter();
56
57// Destructor
58 virtual ~STFITSImageWriter();
59
60// Write out ascii table
61 casa::Bool write(const Scantable& table, const casa::String& name);
62
63 void setClass(casa::Bool flag) { isClass_ = flag; }
64
65private:
66 casa::DirectionCoordinate getDirectionCoordinate(const casa::String& reff,
67 casa::Double lon,
68 casa::Double lat);
69
70 casa::Bool isClass_;
71};
72
73}// namespace
74#endif
Note: See TracBrowser for help on using the repository browser.