casacore
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: aips2-request@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 //# $Id$
27 
28 #ifndef FITS_FITS2_H
29 #define FITS_FITS2_H
30 
31 #include <casacore/casa/aips.h>
32 //# Would like to forward declare
33 #include <casacore/casa/Arrays/Vector.h>
34 #include <casacore/fits/FITS/hdu.h>
35 #include <map>
36 
37 namespace casacore { //# NAMESPACE CASACORE - BEGIN
38 
39 class String; // Forward declaration
40 
41 
42 //<summary> helper function for ReadFITS and WriteFITS</summary>
43 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
44 // </reviewed>
45 // Helper functions to reduce the tedium/code replication of writing the
46 // ReadFITS and WriteFITS functions. If a baseclass is introduced that
47 // aboved the PrimaryArray class that contains functions like operator()
48 // and copy() then these functions won't be necessary.
49 //<group name=ReadFITSin>
50 template<class StorageType>
51 void ReadFITSin(PrimaryArray<StorageType> &fitsdata,
52  Array<Float> &data,
53  Bool &ok,
54  String &ErrorMessage,
55  String *unitName,
56  Vector<String> *axisNames,
57  Vector<Float> *refPixel,
58  Vector<Float> *refLocation,
59  Vector<Float> *delta,
60  std::map<String, Double> *keywords,
61  String *objectName);
62 //</group>
63 
64 } //# NAMESPACE CASACORE - END
65 
66 #ifndef CASACORE_NO_AUTO_TEMPLATES
67 #include <casacore/fits/FITS/FITS2.tcc>
68 #endif //# CASACORE_NO_AUTO_TEMPLATES
69 #endif
templated primary array base class of given type
Definition: hdu.h:340
String: the storage and methods of handling collections of characters.
Definition: String.h:225
this file contains all the compiler specific defines
Definition: mainpage.dox:28
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42