27.01.2015 Views

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

24.32 <strong>CCfits</strong>::HDU Class Reference 113<br />

for image or column structural keywords, such as BITPIX, NAXIS, TFORMn, etc. As<br />

a general rule, it is best to use this for keywords belonging to the same categories listed<br />

in the keywordCategories() function.<br />

Parameters:<br />

Parameters<br />

name (String) The keyword name<br />

value (Recommended T = String, double, std::complex, int, or bool<br />

comment (String) the keyword value<br />

It is possible to create a keyword with a value of any of the allowed data types in fitsio<br />

(see the cfitsio manual section 4.3). However one should be aware that if this keyword<br />

value is read in from the file at a later time, it will be stored in a templated Keyword<br />

subclass (KeyData) where T will be one of the recommended types listed above.<br />

Also see Keyword::value (T& val) for more details.<br />

24.32.2.2 Keyword ∗ <strong>CCfits</strong>::HDU::addKey ( const Keyword ∗ inKeyword )<br />

create a copy of an existing Keyword and add to HDU<br />

This is particularly useful for copying Keywords from one HDU to another. For example<br />

the inKeyword pointer might come from a different HDU’s std::map. If a keyword with this name already exists, it will be overwritten. The<br />

return value is a pointer to the newly created Keyword inserted into this HDU. Also see<br />

copyAllKeys().<br />

24.32.2.3 long <strong>CCfits</strong>::HDU::axis ( size t index ) const [inline]<br />

return the size of axis numbered index [zero based].<br />

return the length of HDU data axis i.<br />

24.32.2.4 long <strong>CCfits</strong>::HDU::bitpix ( ) const [inline]<br />

return the data type keyword.<br />

Takes values denoting the image data type for images, and takes the fixed value 8 for<br />

tables.<br />

24.32.2.5 void <strong>CCfits</strong>::HDU::copyAllKeys ( const HDU ∗ inHdu )<br />

copy all keys from another header<br />

Parameters:<br />

Parameters<br />

inHdu (const HDU∗) An existing HDU whose keys will be copied.<br />

Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!