healpix_map_fitsio.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef HEALPIX_MAP_FITSIO_H
00033 #define HEALPIX_MAP_FITSIO_H
00034
00035 #include <string>
00036 #include "datatypes.h"
00037 #include "fitshandle.h"
00038 #include "healpix_base.h"
00039
00040 template<typename T> class arr;
00041 template<typename T> class Healpix_Map;
00042
00043
00044
00045
00046
00047
00048 template<typename T> void read_Healpix_map_from_fits
00049 (fitshandle &inp, Healpix_Map<T> &map, int colnum=1);
00050
00051
00052 template<typename T> void read_Healpix_map_from_fits
00053 (const std::string &filename, Healpix_Map<T> &map, int colnum=1,
00054 int hdunum=2);
00055
00056 template<typename T> void read_Healpix_map_from_fits
00057 (fitshandle &inp, Healpix_Map<T> &mapT, Healpix_Map<T> &mapQ,
00058 Healpix_Map<T> &mapU);
00059 template<typename T> void read_Healpix_map_from_fits
00060 (const std::string &filename, Healpix_Map<T> &mapT, Healpix_Map<T> &mapQ,
00061 Healpix_Map<T> &mapU, int hdunum=2);
00062
00063
00064
00065
00066 void prepare_Healpix_fitsmap
00067 (fitshandle &out, const Healpix_Base &base, PDT datatype,
00068 const arr<std::string> &colname);
00069
00070
00071
00072 template<typename T> void write_Healpix_map_to_fits
00073 (fitshandle &out, const Healpix_Map<T> &map, PDT datatype);
00074
00075
00076
00077 template<typename T> void write_Healpix_map_to_fits
00078 (fitshandle &out, const Healpix_Map<T> &mapT,
00079 const Healpix_Map<T> &mapQ, const Healpix_Map<T> &mapU, PDT datatype);
00080
00081
00082
00083
00084 template<typename T> inline void write_Healpix_map_to_fits
00085 (const std::string &outfile, const Healpix_Map<T> &map, PDT datatype)
00086 {
00087 fitshandle out;
00088 out.create (outfile);
00089 write_Healpix_map_to_fits (out,map,datatype);
00090 }
00091
00092
00093
00094 template<typename T> inline void write_Healpix_map_to_fits
00095 (const std::string &outfile, const Healpix_Map<T> &mapT,
00096 const Healpix_Map<T> &mapQ, const Healpix_Map<T> &mapU, PDT datatype)
00097 {
00098 fitshandle out;
00099 out.create (outfile);
00100 write_Healpix_map_to_fits (out,mapT,mapQ,mapU,datatype);
00101 }
00102
00103
00104
00105 #endif