CCfits - HEASARC - NASA
CCfits - HEASARC - NASA
CCfits - HEASARC - NASA
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
24.14 <strong>CCfits</strong>::FITS Class Reference 89<br />
24.14.2.7 <strong>CCfits</strong>::FITS::FITS ( const string & name, RWmode mode, int hduIndex,<br />
bool readDataFlag = false, const std::vector< String > & hduKeys =<br />
std::vector(), const std::vector< String > & primaryKey =<br />
std::vector() )<br />
read a single numbered HDU.<br />
Constructor analogous to the version that reads by name. This is required since HDU<br />
extensions are not required to have the EXTNAME or HDUNAME keyword by the<br />
standard. If there is no name, a dummy name based on the HDU number is created and<br />
becomes the key.<br />
If extended file name syntax is used and selects an extension other than hduIndex, a<br />
FITS::OperationNotSupported exception will be thrown.<br />
24.14.2.8 <strong>CCfits</strong>::FITS::FITS ( const String & name, RWmode mode, const std::vector<<br />
String > & searchKeys, const std::vector< String > & searchValues,<br />
bool readDataFlag = false, const std::vector< String > & hduKeys =<br />
std::vector(), const std::vector< String > & primaryKey =<br />
std::vector(), 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 />
Optional parameters allows the reading of specified primary HDU keys and specified<br />
columns and keywords in the HDU of interest.<br />
Parameters<br />
name The name of the FITS file to be read<br />
mode The read/write mode: must be Read or Write<br />
searchKeys A string vector of keywords to search for in each header<br />
Parameters<br />
hduIndex The index of the HDU to be read. see above for other parameter definitions.<br />
search-<br />
Values<br />
A string vector of values those keywords are required to have for success.<br />
Note that the keys must be of type string. If any value does<br />
not need to be checked the corresponding searchValue element can be<br />
empty.<br />
readData- boolean: if true, read data if HDU is found<br />
Flag<br />
hduKeys Allows optional reading of keys in the HDU that is searched for if it is<br />
successfully found<br />
primaryKey Allows optional reading of primary header keys on construction<br />
version Optional version number. If specified, checks the EXTVERS keyword.<br />
Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen