Class for reading or writing data in FITS file. The data stored should be 1D array(s).
More...
#include <GyotoFitsRW.h>
|
|
| FitsRW () |
| | Constructor.
|
| |
|
| FitsRW (const FitsRW &) |
| | Copy constructor.
|
| |
|
virtual FitsRW * | clone () const |
| |
|
virtual | ~FitsRW () |
| | Destructor.
|
| |
| fitsfile * | fitsCreate (std::string const filename) const |
| | Creates a FITS file with dummy primary HDU. More...
|
| |
| fitsfile * | fitsOpen (std::string const filename) const |
| | Open a fits file. More...
|
| |
| void | fitsClose (fitsfile *fptr) const |
| | Closes a fits file referred to by a fitsfile pointer. More...
|
| |
| void | fitsWriteHDUData (fitsfile *const fptr, std::string const extname, double *const src, long const nelements) const |
| | Writes 1D array in FITS files. More...
|
| |
| void | fitsWriteKey (fitsfile *const fptr, std::string const key, double value, std::string const hdu="PRIMARY") const |
| | Writes a key in the header of a given HDU (by default "PRIMARY") More...
|
| |
| double * | fitsReadHDUData (fitsfile *const fptr, std::string const extname, double *dest, long expectedSize) const |
| | Read 1D array in FITS files. More...
|
| |
| double | fitsReadKey (fitsfile *const fptr, std::string const key, std::string const hdu) const |
| | Read a specific key of the HDU with a specific 'extname'. More...
|
| |
| double | fitsReadKey (fitsfile *const fptr, std::string const key, int const hdu_num=1) const |
| | Read a specific key of the HDU defined by its number (by default 1 equivalent ot the "PRIMARY" HDU) More...
|
| |
Class for reading or writing data in FITS file. The data stored should be 1D array(s).
◆ fitsClose()
| void Gyoto::FitsRW::fitsClose |
( |
fitsfile * |
fptr | ) |
const |
Closes a fits file referred to by a fitsfile pointer.
- Parameters
-
| fptr | fitsfile pointer to FITS file to be closed |
◆ fitsCreate()
| fitsfile* Gyoto::FitsRW::fitsCreate |
( |
std::string const |
filename | ) |
const |
Creates a FITS file with dummy primary HDU.
Opens a new fits file referred to by a fitsfile pointer and fills the primary HDU by a single pixel equal to 0. Returns the fitsfile pointer to the new FITS file.
- Parameters
-
| filename | Name of fits file to be created |
◆ fitsOpen()
| fitsfile* Gyoto::FitsRW::fitsOpen |
( |
std::string const |
filename | ) |
const |
Open a fits file.
- Parameters
-
| filename | name of the FITS file to be open |
◆ fitsReadHDUData()
| double* Gyoto::FitsRW::fitsReadHDUData |
( |
fitsfile *const |
fptr, |
|
|
std::string const |
extname, |
|
|
double * |
dest, |
|
|
long |
expectedSize |
|
) |
| const |
Read 1D array in FITS files.
- Parameters
-
| fptr | fitsfile pointer to FITS file |
| extname | Name of extension to be read |
◆ fitsReadKey() [1/2]
| double Gyoto::FitsRW::fitsReadKey |
( |
fitsfile *const |
fptr, |
|
|
std::string const |
key, |
|
|
std::string const |
hdu |
|
) |
| const |
Read a specific key of the HDU with a specific 'extname'.
- Parameters
-
| fptr | fitsfile pointer to FITS file |
| key | Name of the key to be read |
| hdu | HDU extname where to search for the key |
◆ fitsReadKey() [2/2]
| double Gyoto::FitsRW::fitsReadKey |
( |
fitsfile *const |
fptr, |
|
|
std::string const |
key, |
|
|
int const |
hdu_num = 1 |
|
) |
| const |
Read a specific key of the HDU defined by its number (by default 1 equivalent ot the "PRIMARY" HDU)
- Parameters
-
| fptr | fitsfile pointer to FITS file |
| key | Name of the key to be read |
| hdu_num | HDU number where to search for the key |
◆ fitsWriteHDUData()
| void Gyoto::FitsRW::fitsWriteHDUData |
( |
fitsfile *const |
fptr, |
|
|
std::string const |
extname, |
|
|
double *const |
src, |
|
|
long const |
nelements |
|
) |
| const |
Writes 1D array in FITS files.
- Parameters
-
| fptr | fitsfile pointer to FITS file |
| extname | Name of extension to be written |
| src | Data to be written in extension |
| ndim | numer of axes of src |
| len | of each axes |
◆ fitsWriteKey()
| void Gyoto::FitsRW::fitsWriteKey |
( |
fitsfile *const |
fptr, |
|
|
std::string const |
key, |
|
|
double |
value, |
|
|
std::string const |
hdu = "PRIMARY" |
|
) |
| const |
Writes a key in the header of a given HDU (by default "PRIMARY")
- Parameters
-
| fptr | fitsfile pointer to FITS file |
| key | Name of the key to be stored |
| value | Value of the key to be stored |
| hdu | HDU where to store the key, by default "PRIMARY" |
The documentation for this class was generated from the following file: