casa
$Rev:20696$
|
00001 //# FITS2.h: Transform an AIPS++ Array to or from a FITS disk file (helper functions) 00002 //# Copyright (C) 1994,1995 00003 //# Associated Universities, Inc. Washington DC, USA. 00004 //# 00005 //# This library is free software; you can redistribute it and/or modify it 00006 //# under the terms of the GNU Library General Public License as published by 00007 //# the Free Software Foundation; either version 2 of the License, or (at your 00008 //# option) any later version. 00009 //# 00010 //# This library is distributed in the hope that it will be useful, but WITHOUT 00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00013 //# License for more details. 00014 //# 00015 //# You should have received a copy of the GNU Library General Public License 00016 //# along with this library; if not, write to the Free Software Foundation, 00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA. 00018 //# 00019 //# Correspondence concerning AIPS++ should be addressed as follows: 00020 //# Internet email: aips2-request@nrao.edu. 00021 //# Postal address: AIPS++ Project Office 00022 //# National Radio Astronomy Observatory 00023 //# 520 Edgemont Road 00024 //# Charlottesville, VA 22903-2475 USA 00025 //# 00026 //# $Id: FITS2.h 20299 2008-04-03 05:56:44Z gervandiepen $ 00027 00028 #ifndef FITS_FITS2_H 00029 #define FITS_FITS2_H 00030 00031 #include <casa/aips.h> 00032 //# Would like to forward declare 00033 #include <casa/Arrays/Vector.h> 00034 #include <casa/Containers/Map.h> 00035 #include <fits/FITS/hdu.h> 00036 00037 namespace casa { //# NAMESPACE CASA - BEGIN 00038 00039 class String; // Forward declaration 00040 00041 00042 //<summary> helper function for ReadFITS and WriteFITS</summary> 00043 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos=""> 00044 // </reviewed> 00045 // Helper functions to reduce the tedium/code replication of writing the 00046 // ReadFITS and WriteFITS functions. If a baseclass is introduced that 00047 // aboved the PrimaryArray class that contains functions like operator() 00048 // and copy() then these functions won't be necessary. 00049 //<group name=ReadFITSin> 00050 template<class StorageType> 00051 void ReadFITSin(PrimaryArray<StorageType> &fitsdata, 00052 Array<Float> &data, 00053 Bool &ok, 00054 String &ErrorMessage, 00055 String *unitName, 00056 Vector<String> *axisNames, 00057 Vector<Float> *refPixel, 00058 Vector<Float> *refLocation, 00059 Vector<Float> *delta, 00060 Map<String, Double> *keywords, 00061 String *objectName); 00062 //</group> 00063 00064 } //# NAMESPACE CASA - END 00065 00066 #ifndef CASACORE_NO_AUTO_TEMPLATES 00067 #include <fits/FITS/FITS2.tcc> 00068 #endif //# CASACORE_NO_AUTO_TEMPLATES 00069 #endif