source: trunk/src/STFITSImageWriter.h@ 3115

Last change on this file since 3115 was 3106, checked in by Takeshi Nakazato, 8 years ago

New Development: No

JIRA Issue: No

Ready for Test: Yes/No

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...


Check-in asap modifications from Jim regarding casacore namespace conversion.

File size: 2.3 KB
Line 
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
38//#include "Scantable.h"
39
40namespace casacore {
41 class String;
42}
43
44namespace asap {
45
46class Scantable;
47
48
49/**
50 * A class to export a Scantable to FITS file(s)
51 */
52class STFITSImageWriter {
53public:
54// Constructor
55 STFITSImageWriter();
56
57// Destructor
58 virtual ~STFITSImageWriter();
59
60// Write out ascii table
61 casacore::Bool write(const Scantable& table, const casacore::String& name);
62
63 void setClass(casacore::Bool flag) { isClass_ = flag; }
64
65private:
66 casacore::DirectionCoordinate getDirectionCoordinate(const casacore::String& reff,
67 casacore::Double lon,
68 casacore::Double lat);
69
70 casacore::Bool isClass_;
71};
72
73}// namespace
74#endif
Note: See TracBrowser for help on using the repository browser.