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//<summary> helper function for ReadFITS and WriteFITS</summary>
40// <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
41// </reviewed>
42// Helper functions to reduce the tedium/code replication of writing the
43// ReadFITS and WriteFITS functions. If a baseclass is introduced that
44// aboved the PrimaryArray class that contains functions like operator()
45// and copy() then these functions won't be necessary.
46//<group name=ReadFITSin>
47template <class StorageType>
48void ReadFITSin(PrimaryArray<StorageType> &fitsdata, Array<Float> &data, Bool &ok,
49 String &ErrorMessage, String *unitName, Vector<String> *axisNames,
50 Vector<Float> *refPixel, Vector<Float> *refLocation, Vector<Float> *delta,
51 std::map<String, Double> *keywords, String *objectName);
52//</group>
53
54} // namespace casacore
55
56#ifndef CASACORE_NO_AUTO_TEMPLATES
57#include <casacore/fits/FITS/FITS2.tcc>
58#endif // # CASACORE_NO_AUTO_TEMPLATES
59#endif
String: the storage and methods of handling collections of characters.
Definition String.h:355
PrimaryArray(FitsInput &, FITSErrorHandler=FITSError::defaultHandler)
templated primary array base class of given type
For temporary backward namespace compatibility, use casa as alias for casacore.
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)