84 FitsFile (
const std::string & filename ,
bool write =
false );
89 void fillHDUNames ( std::vector < std::string > & names );
149 void writeHDU (
long rows,
int columns,
150 const std::vector < std::string > & names,
151 const std::vector < std::vector < int > > & shapes,
152 const std::string & extname );
161 const std::vector <double > & data );
173 #endif // _FitsFile_h
int fillIntVectorFromColumn(std::vector< int > &vec, int column)
Read elements from an ASCII or binary table column (in the CDU) and fill STL vector<int> with its con...
void fillRefPixelIndices(std::vector< int > &indices) const
Clears and fills the vector with the reference pixel's indexes.
int fillColumnNamesFromTable(std::vector< std::string > &labels)
Clears and fills the vector with the column labels of binary or ASCII table.
A base class for the concrete classes that wrap the cfitsio library.
hippodraw::FitsFileBase interface
void writeRefPixelValues(double value1, double value2)
int write(const std::vector< double > &a)
Given the vector it writes it to std stream.
int fillFromImage(std::vector< double > &vec, unsigned int axis)
Fills the vector vec from an image HDU.
void writeColumn(int c, const std::vector< double > &data)
Writes the vector to FITS table.
int fillFromTableColumn(std::vector< double > &v, int column)
Fills the vector v from a table column.
void * data(numeric::array arr)
std::vector< intptr_t > shape(numeric::array arr)
int fillColumnNamesFromImage(std::vector< std::string > &labels)
Clears and fills the vector with the column labels of a image.
Wrapper class to CFITSIO.
void fillImageDeltas(std::vector< double > &deltas) const
Clears and fills the vector with the delta values of an image.
void writeHDU(long rows, int columns, const std::vector< std::string > &names, const std::vector< std::vector< int > > &shapes, const std::string &extname)
int fillDoubleVectorFromColumn(std::vector< double > &vec, int column)
Read elements from an ASCII or binary table column (in the CDU) and fill the vector with its contents...
void fillHDUNames(std::vector< std::string > &names)
Clears and fills the vector with the HDU names.
int fillColumnNames(std::vector< std::string > &labels)
Clears and fills the vector with the column labels of the current HDU table.
void writePix(long x, long y, const std::vector< double > &data)
FitsFile(const std::string &filename, bool write=false)
Public construction taking a filename as argument.
column
The column indices for 2 dimension data point tuple.
int fillAxisSizes(std::vector< long > &vec) const
Clears and fills the vector vec with the size of each dimension of an image.
void fillRefPixelValues(std::vector< double > &values) const
Clears and fills the vector with the reference pixel's values.
void writeImageHDU(long x, long y)
bool isHammerAitoff() const
Returns true if coordinate system of the axis is should undergo Hammer-Aitoff transformation.
void fillShape(std::vector< intptr_t > &shape, int column)
Fills the vector with the shape of the column.