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.39 <strong>CCfits</strong>::PHDU Class Reference 128<br />
Write a set of pixels to an image extension with the first pixel specified by an n-tuple,<br />
processing undefined data.<br />
• template<br />
void write (long first, long nElements, const std::valarray< S > &data, S ∗null-<br />
Value)<br />
write array to image starting with a specified pixel and allowing undefined data to be<br />
processed<br />
• template<br />
void write (const std::vector< long > &first, long nElements, const std::valarray<<br />
S > &data)<br />
write array starting from specified n-tuple, without undefined data processing<br />
• template<br />
void write (long first, long nElements, const std::valarray< S > &data)<br />
write array starting from specified pixel number, without undefined data processing<br />
• template<br />
void write (const std::vector< long > &firstVertex, const std::vector< long ><br />
&lastVertex, const std::vector< long > &stride, const std::valarray< S > &data)<br />
write a subset (generalize slice) of data to the image<br />
• virtual void zero (double value)<br />
set the BZERO keyword value for images (see warning for images of int type)<br />
• virtual double zero () const<br />
return the BZERO keyword value<br />
Protected Member Functions<br />
• PHDU (const PHDU &right)<br />
copy constructor<br />
• PHDU (FITSBase ∗p, int bpix, int naxis, const std::vector< long > &axes)<br />
Writing Primary HDU constructor, called by PrimaryHDU class.<br />
• PHDU (FITSBase ∗p=0)<br />
Reading Primary HDU constructor.<br />
• virtual void initRead ()<br />
24.39.1 Detailed Description<br />
class representing the primary HDU for a FITS file.<br />
A PHDU object is automatically instantiated and added to a FITS object when a FITS<br />
file is accessed in any way. If a new file is created without specifying the data type for<br />
the header, <strong>CCfits</strong> assumes that the file is to be used for table extensions and creates a<br />
Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen