27.01.2015 Views

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24.12 <strong>CCfits</strong>::ExtHDU Class Reference 79<br />

Parameters<br />

first a vector representing an n-tuple giving the coordinates in the<br />

image of the first pixel.<br />

24.12.3.13 template void <strong>CCfits</strong>::ExtHDU::read ( std::valarray< S > & image,<br />

const std::vector< long > & firstVertex, const std::vector< long > & lastVertex,<br />

const std::vector< long > & stride, S ∗ nullValue )<br />

read an image subset into valarray image, processing null values<br />

The image subset is defined by two vertices and a stride indicating the ’denseness’ of<br />

the values to be picked in each dimension (a stride = (1,1,1,...) means picking every<br />

pixel in every dimension, whereas stride = (2,2,2,...) means picking every other value<br />

in each dimension.<br />

24.12.3.14 static void <strong>CCfits</strong>::ExtHDU::readHduName ( const fitsfile ∗ fptr, int hduIndex, String<br />

& hduName, int & hduVersion ) [static]<br />

read extension name.<br />

Used primarily to allow extensions to be specified by HDU number and provide their<br />

name for the associative array that contains them. Alternatively, if there is no name<br />

keyword in the extension, one is synthesized from the index.<br />

24.12.3.15 long <strong>CCfits</strong>::ExtHDU::rows ( ) const [virtual]<br />

return the number of rows in the extension.<br />

Exceptions<br />

WrongExtensionType thrown if ∗this is an image extension.<br />

Reimplemented in <strong>CCfits</strong>::Table.<br />

24.12.3.16 template void <strong>CCfits</strong>::ExtHDU::write ( const std::vector< long > &<br />

first, long nElements, const std::valarray< S > & data, S ∗ nullValue )<br />

Write a set of pixels to an image extension with the first pixel specified by an n-tuple,<br />

processing undefined data.<br />

All the overloaded versions of ExtHDU::write perform operations on ∗this if it is an<br />

image and throw a WrongExtensionType exception if not. Where appropriate, alternate<br />

versions allow undefined data to be processed<br />

Parameters<br />

first an n-tuple of dimension equal to the image dimension specifying the<br />

first pixel in the range to be written<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!