CCfits - HEASARC - NASA
CCfits - HEASARC - NASA
CCfits - HEASARC - NASA
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
24.14 <strong>CCfits</strong>::FITS Class Reference 83<br />
• FITS (const string &name, RWmode mode, int hduIndex, bool readDataFlag=false,<br />
const std::vector< String > &hduKeys=std::vector< String >(), const std::vector<<br />
String > &primaryKey=std::vector< String >())<br />
read a single numbered HDU.<br />
• FITS (const String &name, RWmode mode, const std::vector< String > &search-<br />
Keys, const std::vector< String > &searchValues, bool readDataFlag=false, const<br />
std::vector< String > &hduKeys=std::vector< String >(), const std::vector< -<br />
String > &primaryKey=std::vector< string >(), int version=1)<br />
open fits file and read HDU which contains supplied keywords with [optional] specified<br />
values (sometimes one just wants to know that the keyword is present).<br />
• ∼FITS ()<br />
destructor<br />
• ExtHDU ∗ addImage (const String &hduName, int bpix, std::vector< long ><br />
&naxes, int version=1)<br />
Add an image extension to an existing FITS object. (File with w or rw access).<br />
• Table ∗ addTable (const String &hduName, int rows, const std::vector< String ><br />
&columnName=std::vector< String >(), const std::vector< String > &column-<br />
Fmt=std::vector< String >(), const std::vector< String > &columnUnit=std-<br />
::vector< String >(), HduType type=BinaryTbl, int version=1)<br />
Add a table extension to an existing FITS object. Add extension to FITS object for file<br />
with w or rw access.<br />
• void copy (const HDU &source)<br />
copy the HDU source into the FITS object.<br />
• ExtHDU & currentExtension ()<br />
return a non-const reference to whichever is the current extension.<br />
• const String & currentExtensionName () const<br />
return the name of the extension that the fitsfile is currently addressing.<br />
• void deleteExtension (const String &doomed, int version=1)<br />
Delete extension specified by name and version number.<br />
• void deleteExtension (int doomed)<br />
Delete extension specified by extension number.<br />
• void destroy () throw ()<br />
Erase FITS object and close corresponding file.<br />
• const ExtHDU & extension (int i) const<br />
return FITS extension by index number. N.B. The input index number is currently<br />
defined as enumerating extensions, so the extension(1) returns HDU number 2.<br />
• ExtHDU & extension (int i)<br />
return FITS extension by index number. non-const version. see const version for<br />
details.<br />
• const ExtHDU & extension (const String &hduName, int version=1) const<br />
return FITS extension by name and (optionally) version number.<br />
• ExtHDU & extension (const String &hduName, int version=1)<br />
Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen