PageRenderTime 48ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/Healpix_2.13a/doc/html/Healpix_cxx/healpix__map__fitsio_8h-source.html

#
HTML | 103 lines | 102 code | 0 blank | 1 comment | 0 complexity | befff658f70a3b16a7f40e40990e1cfd MD5 | raw file
Possible License(s): GPL-2.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  3. <title>Healpix C++: healpix_map_fitsio.h Source File</title>
  4. <link href="sheet.css" rel="stylesheet" type="text/css">
  5. </head><body>
  6. <!-- Generated by Doxygen 1.5.6 -->
  7. <div class="navigation" id="top">
  8. <div class="tabs">
  9. <ul>
  10. <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
  11. <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  12. <li><a href="modules.html"><span>Modules</span></a></li>
  13. <li><a href="classes.html"><span>Classes</span></a></li>
  14. <li class="current"><a href="files.html"><span>Files</span></a></li>
  15. <li><a href="dirs.html"><span>Directories</span></a></li>
  16. </ul>
  17. </div>
  18. <div class="navpath"><a class="el" href="dir_1283e087bffca834c0434fdb936f0239.html">Healpix_cxx</a>
  19. </div>
  20. </div>
  21. <div class="contents">
  22. <h1>healpix_map_fitsio.h</h1><a href="healpix__map__fitsio_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
  23. <a name="l00002"></a>00002 <span class="comment"> * This file is part of Healpix_cxx.</span>
  24. <a name="l00003"></a>00003 <span class="comment"> *</span>
  25. <a name="l00004"></a>00004 <span class="comment"> * Healpix_cxx is free software; you can redistribute it and/or modify</span>
  26. <a name="l00005"></a>00005 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
  27. <a name="l00006"></a>00006 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
  28. <a name="l00007"></a>00007 <span class="comment"> * (at your option) any later version.</span>
  29. <a name="l00008"></a>00008 <span class="comment"> *</span>
  30. <a name="l00009"></a>00009 <span class="comment"> * Healpix_cxx is distributed in the hope that it will be useful,</span>
  31. <a name="l00010"></a>00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
  32. <a name="l00011"></a>00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
  33. <a name="l00012"></a>00012 <span class="comment"> * GNU General Public License for more details.</span>
  34. <a name="l00013"></a>00013 <span class="comment"> *</span>
  35. <a name="l00014"></a>00014 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
  36. <a name="l00015"></a>00015 <span class="comment"> * along with Healpix_cxx; if not, write to the Free Software</span>
  37. <a name="l00016"></a>00016 <span class="comment"> * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA</span>
  38. <a name="l00017"></a>00017 <span class="comment"> *</span>
  39. <a name="l00018"></a>00018 <span class="comment"> * For more information about HEALPix, see http://healpix.jpl.nasa.gov</span>
  40. <a name="l00019"></a>00019 <span class="comment"> */</span>
  41. <a name="l00020"></a>00020
  42. <a name="l00021"></a>00021 <span class="comment">/*</span>
  43. <a name="l00022"></a>00022 <span class="comment"> * Healpix_cxx is being developed at the Max-Planck-Institut fuer Astrophysik</span>
  44. <a name="l00023"></a>00023 <span class="comment"> * and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt</span>
  45. <a name="l00024"></a>00024 <span class="comment"> * (DLR).</span>
  46. <a name="l00025"></a>00025 <span class="comment"> */</span>
  47. <a name="l00026"></a>00026 <span class="comment"></span>
  48. <a name="l00027"></a>00027 <span class="comment">/*! \file healpix_map_fitsio.h</span>
  49. <a name="l00028"></a>00028 <span class="comment"> * Copyright (C) 2003, 2004 Max-Planck-Society</span>
  50. <a name="l00029"></a>00029 <span class="comment"> * \author Martin Reinecke</span>
  51. <a name="l00030"></a>00030 <span class="comment"> */</span>
  52. <a name="l00031"></a>00031
  53. <a name="l00032"></a>00032 <span class="preprocessor">#ifndef HEALPIX_MAP_FITSIO_H</span>
  54. <a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define HEALPIX_MAP_FITSIO_H</span>
  55. <a name="l00034"></a>00034 <span class="preprocessor"></span>
  56. <a name="l00035"></a>00035 <span class="preprocessor">#include &lt;string&gt;</span>
  57. <a name="l00036"></a>00036
  58. <a name="l00037"></a>00037 <span class="keyword">class </span><a class="codeRef" doxygen="cxxsupport.tag:../cxxsupport/" href="../cxxsupport/classfitshandle.html">fitshandle</a>;
  59. <a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="classHealpix__Base.html">Healpix_Base</a>;
  60. <a name="l00039"></a>00039
  61. <a name="l00040"></a>00040 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keyword">class </span><a class="codeRef" doxygen="cxxsupport.tag:../cxxsupport/" href="../cxxsupport/classarr.html">arr</a>;
  62. <a name="l00041"></a>00041 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keyword">class </span><a class="code" href="classHealpix__Map.html">Healpix_Map</a>;
  63. <a name="l00042"></a>00042 <span class="comment"></span>
  64. <a name="l00043"></a>00043 <span class="comment">/*! \defgroup healpix_map_fitsio_group FITS-based I/O of HEALPix maps */</span><span class="comment"></span>
  65. <a name="l00044"></a>00044 <span class="comment">/*! \{ */</span>
  66. <a name="l00045"></a>00045 <span class="comment"></span>
  67. <a name="l00046"></a>00046 <span class="comment">/*! Reads the map stored in column \a colnum of the FITS binary table</span>
  68. <a name="l00047"></a>00047 <span class="comment"> pointed to by \a inp into \a map. */</span>
  69. <a name="l00048"></a>00048 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">void</span> <a class="code" href="group__healpix__map__fitsio__group.html#gc9bb9ebd33781ca2ae9b47de4baa1723">read_Healpix_map_from_fits</a>
  70. <a name="l00049"></a>00049 (<a class="codeRef" doxygen="cxxsupport.tag:../cxxsupport/" href="../cxxsupport/classfitshandle.html">fitshandle</a> &amp;inp, <a class="code" href="classHealpix__Map.html">Healpix_Map&lt;T&gt;</a> &amp;map, <span class="keywordtype">int</span> colnum=1);<span class="comment"></span>
  71. <a name="l00050"></a>00050 <span class="comment">/*! Opens the FITS file \a filename, jumps to the HDU \a hdunum,</span>
  72. <a name="l00051"></a>00051 <span class="comment"> and reads the column \a colnum into \a map. */</span>
  73. <a name="l00052"></a>00052 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">void</span> <a class="code" href="group__healpix__map__fitsio__group.html#gc9bb9ebd33781ca2ae9b47de4baa1723">read_Healpix_map_from_fits</a>
  74. <a name="l00053"></a>00053 (<span class="keyword">const</span> std::string &amp;filename, <a class="code" href="classHealpix__Map.html">Healpix_Map&lt;T&gt;</a> &amp;map, <span class="keywordtype">int</span> colnum=1,
  75. <a name="l00054"></a>00054 <span class="keywordtype">int</span> hdunum=2);
  76. <a name="l00055"></a>00055 <span class="comment"></span>
  77. <a name="l00056"></a>00056 <span class="comment">/*! Inserts a new binary table into \a out, which contains one column</span>
  78. <a name="l00057"></a>00057 <span class="comment"> of FITS type \a datatype with the name \a name, and writes all HEALPix</span>
  79. <a name="l00058"></a>00058 <span class="comment"> specific keywords based on the information in \a base. */</span>
  80. <a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="group__healpix__map__fitsio__group.html#g91e04ad50911df254b636e5eaea11d09">prepare_Healpix_fitsmap</a>
  81. <a name="l00060"></a>00060 (<a class="codeRef" doxygen="cxxsupport.tag:../cxxsupport/" href="../cxxsupport/classfitshandle.html">fitshandle</a> &amp;out, <span class="keyword">const</span> <a class="code" href="classHealpix__Base.html">Healpix_Base</a> &amp;base, <span class="keywordtype">int</span> datatype,
  82. <a name="l00061"></a>00061 <span class="keyword">const</span> <a class="codeRef" doxygen="cxxsupport.tag:../cxxsupport/" href="../cxxsupport/classarr.html">arr&lt;std::string&gt;</a> &amp;colname);
  83. <a name="l00062"></a>00062 <span class="comment"></span>
  84. <a name="l00063"></a>00063 <span class="comment">/*! Inserts a new binary table into \a out, which contains one column</span>
  85. <a name="l00064"></a>00064 <span class="comment"> of FITS type \a datatype, and stores \a map into this column. */</span>
  86. <a name="l00065"></a>00065 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">void</span> <a class="code" href="group__healpix__map__fitsio__group.html#g99b240f0abb19cd2fa6476858e1b22dd">write_Healpix_map_to_fits</a>
  87. <a name="l00066"></a>00066 (<a class="codeRef" doxygen="cxxsupport.tag:../cxxsupport/" href="../cxxsupport/classfitshandle.html">fitshandle</a> &amp;out, <span class="keyword">const</span> <a class="code" href="classHealpix__Map.html">Healpix_Map&lt;T&gt;</a> &amp;map, <span class="keywordtype">int</span> datatype);<span class="comment"></span>
  88. <a name="l00067"></a>00067 <span class="comment">/*! Inserts a new binary table into \a out, which contains three columns</span>
  89. <a name="l00068"></a>00068 <span class="comment"> of FITS type \a datatype, and stores \a mapT, \a mapQ and \a mapU</span>
  90. <a name="l00069"></a>00069 <span class="comment"> into these columns. */</span>
  91. <a name="l00070"></a>00070 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">void</span> <a class="code" href="group__healpix__map__fitsio__group.html#g99b240f0abb19cd2fa6476858e1b22dd">write_Healpix_map_to_fits</a>
  92. <a name="l00071"></a>00071 (<a class="codeRef" doxygen="cxxsupport.tag:../cxxsupport/" href="../cxxsupport/classfitshandle.html">fitshandle</a> &amp;out, <span class="keyword">const</span> <a class="code" href="classHealpix__Map.html">Healpix_Map&lt;T&gt;</a> &amp;mapT,
  93. <a name="l00072"></a>00072 <span class="keyword">const</span> <a class="code" href="classHealpix__Map.html">Healpix_Map&lt;T&gt;</a> &amp;mapQ, <span class="keyword">const</span> <a class="code" href="classHealpix__Map.html">Healpix_Map&lt;T&gt;</a> &amp;mapU, <span class="keywordtype">int</span> datatype);
  94. <a name="l00073"></a>00073 <span class="comment"></span>
  95. <a name="l00074"></a>00074 <span class="comment">/*! \} */</span>
  96. <a name="l00075"></a>00075
  97. <a name="l00076"></a>00076 <span class="preprocessor">#endif</span>
  98. </pre></div></div>
  99. <hr><address style="align: right;"><small>
  100. Generated on Fri Nov 27 15:00:13 2009 for Healpix C++
  101. </a> </small></address>
  102. </body>
  103. </html>