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