casacore
Loading...
Searching...
No Matches
FITS2.h
Go to the documentation of this file.
1//# FITS2.h: Transform a Casacore Array to or from a FITS disk file (helper functions)
2//# Copyright (C) 1994,1995
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This library is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU Library General Public License as published by
7//# the Free Software Foundation; either version 2 of the License, or (at your
8//# option) any later version.
9//#
10//# This library is distributed in the hope that it will be useful, but WITHOUT
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25
26#ifndef FITS_FITS2_H
27#define FITS_FITS2_H
28
29#include <casacore/casa/aips.h>
30//# Would like to forward declare
31#include <casacore/casa/Arrays/Vector.h>
32#include <casacore/fits/FITS/hdu.h>
33#include <map>
34
35namespace casacore { //# NAMESPACE CASACORE - BEGIN
36
37class String; // Forward declaration
38
39
40//<summary> helper function for ReadFITS and WriteFITS</summary>
41// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
42// </reviewed>
43// Helper functions to reduce the tedium/code replication of writing the
44// ReadFITS and WriteFITS functions. If a baseclass is introduced that
45// aboved the PrimaryArray class that contains functions like operator()
46// and copy() then these functions won't be necessary.
47//<group name=ReadFITSin>
48template<class StorageType>
49void ReadFITSin(PrimaryArray<StorageType> &fitsdata,
51 Bool &ok,
52 String &ErrorMessage,
53 String *unitName,
54 Vector<String> *axisNames,
55 Vector<Float> *refPixel,
56 Vector<Float> *refLocation,
57 Vector<Float> *delta,
58 std::map<String, Double> *keywords,
59 String *objectName);
60//</group>
61
62} //# NAMESPACE CASACORE - END
63
64#ifndef CASACORE_NO_AUTO_TEMPLATES
65#include <casacore/fits/FITS/FITS2.tcc>
66#endif //# CASACORE_NO_AUTO_TEMPLATES
67#endif
templated primary array base class of given type
Definition hdu.h:338
String: the storage and methods of handling collections of characters.
Definition String.h:223
this file contains all the compiler specific defines
Definition mainpage.dox:28
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40
void ReadFITSin(PrimaryArray< StorageType > &fitsdata, Array< Float > &data, Bool &ok, String &ErrorMessage, String *unitName, Vector< String > *axisNames, Vector< Float > *refPixel, Vector< Float > *refLocation, Vector< Float > *delta, std::map< String, Double > *keywords, String *objectName)