source: trunk/external/atnf/PKSIO/SDFITSwriter.h@ 1403

Last change on this file since 1403 was 1399, checked in by Malte Marquarding, 17 years ago

Mark C added brightness unit to getHeader()

File size: 2.8 KB
RevLine 
[1325]1//#---------------------------------------------------------------------------
2//# SDFITSwriter.h: ATNF CFITSIO interface class for SDFITS output.
3//#---------------------------------------------------------------------------
[1399]4//# Copyright (C) 2000-2007
[1325]5//# Mark Calabretta, ATNF
6//#
7//# This library is free software; you can redistribute it and/or modify it
8//# under the terms of the GNU Library General Public License as published by
9//# the Free Software Foundation; either version 2 of the License, or (at your
10//# option) any later version.
11//#
12//# This library is distributed in the hope that it will be useful, but WITHOUT
13//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15//# License for more details.
16//#
17//# You should have received a copy of the GNU Library General Public License
18//# along with this library; if not, write to the Free Software Foundation,
19//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
20//#
21//# Correspondence concerning this software should be addressed as follows:
22//# Internet email: mcalabre@atnf.csiro.au.
23//# Postal address: Dr. Mark Calabretta,
24//# Australia Telescope National Facility,
25//# P.O. Box 76,
26//# Epping, NSW, 2121,
27//# AUSTRALIA
28//#
[1399]29//# $Id: SDFITSwriter.h,v 19.7 2007/11/12 03:37:56 cal103 Exp $
[1325]30//#---------------------------------------------------------------------------
31//# Original: 2000/07/24, Mark Calabretta, ATNF
32//#---------------------------------------------------------------------------
33
34#ifndef ATNF_SDFITSWRITER_H
35#define ATNF_SDFITSWRITER_H
36
37#include <atnf/PKSIO/PKSMBrecord.h>
38
39#include <fitsio.h>
40
41// <summary>
42// ATNF CFITSIO interface class for SDFITS output.
43// </summary>
44
45class SDFITSwriter
46{
47 public:
48 // Default constructor.
49 SDFITSwriter();
50
51 // Destructor.
52 ~SDFITSwriter();
53
54 // Create a new SDFITSwriter and store static data.
55 int create(
56 char* sdname,
57 char* observer,
58 char* project,
59 char* telescope,
60 double antPos[3],
61 char* obsMode,
[1399]62 char* bunit,
[1325]63 float equinox,
64 char* dopplerFrame,
65 int nIF,
66 int* nChan,
67 int* nPol,
68 int* haveXPol,
69 int haveBase,
70 int extraSysCal);
71
72 // Store time-variable data.
73 int write(PKSMBrecord &record);
74
[1399]75 // Write a history record.
76 int history(char* text);
77
[1325]78 // Print out CFITSIO error messages.
79 void reportError();
80
81 // Close the SDFITS file.
82 void close();
83
84 // Close and delete the SDFITS file.
85 void deleteFile();
86
87 private:
88 fitsfile *cSDptr;
89 int cDoTDIM, cDoXPol, cExtraSysCal, cHaveBase, *cHaveXPol, cIsMX,
90 *cNChan, cNIF, *cNPol, cStatus;
91 long cRow;
92};
93
94#endif
Note: See TracBrowser for help on using the repository browser.