|
CfitsioType | DidToCfitsioType (ctd::defines::DataType did_type) |
| Convert an ELT ICS data type to the corresponding cfitsio data type. More...
|
|
void | HandleCfitsioError (const std::string &operation, const int cfitsio_status) |
| Throw an exception, extracting the relevant info from cfitsio, if status != 0. More...
|
|
std::string | GenerateKey (const std::string &key, const std::string &hierarch_prefix=FITS_KEY_ESO_HIERARCH) |
| Generates an ESO hierarchical keyword. More...
|
|
void | Verify (const std::string &filename, std::string &target_filename, dit::fits::FitsReport &report) |
| Function to carry out a verification check on a FITS file. More...
|
|
void | Verify (const std::string &filename, std::string &target_filename, const dit::did::Did &dictionary, dit::fits::FitsReport &report) |
| Function to carry out a verification check on a FITS file. Dictionary taken into account. More...
|
|
void | CreateFile (CCfits::FITS **fits_handle, const std::string &filename, const dit::did::Did &dictionary, const int32_t bitpix, const std::list< int32_t > &naxes, std::string &target_filename, const bool remove_if_exists=false, const uint16_t nb_of_hdr_blocks=1) |
| Create a new FITS file. More...
|
|
void | MoveToHdu (CCfits::FITS &fits_handle, const int16_t hdu_nb) |
| Move to the given HDU. More...
|
|
bool | KeyInHdu (CCfits::FITS &fits_handle, const int16_t hdu_nb, const std::string &key) |
| Check if a given key is contained in the referenced HDU (primary HDU = 1). More...
|
|
void | AddDoubleKey (CCfits::FITS &fits_handle, const dit::did::Did &dictionary, const std::string &key, const double value, const uint16_t hdu_nb) |
| Add a double type key in an existing FITS file. More...
|
|
void | PrepForAddingKey (CCfits::FITS &fits_handle, const dit::did::Did &dictionary, const std::string &key, const int16_t hdu_nb, dit::did::Record &did_record, std::string &target_key, bool &key_in_hdu, CfitsioType &cfitsio_type, dit::did::FormatSpecifier &format_specifier) |
| Used to prepare for adding a keyword card in a FITS file (mostly internal usage). More...
|
|
void | ExtractHeaders (CCfits::FITS &fits_handle, std::string &hdr_buf, const int16_t hdr_ref=ALL_HEADERS) |
| Extract the keyword cards in one or more HDU's in an ASCII format (newline terminated). More...
|
|
void | ExtractHeaders (const std::string &filename, std::string &target_filename, std::string &hdr_buf, const int16_t hdr_ref=ALL_HEADERS) |
| Extract all or a specific header from a FITS file. More...
|
|
void | OpenFitsFile (CCfits::FITS **fits_handle, const std::string &filename, std::string &target_filename, CCfits::RWmode mode=CCfits::Read) |
| Open an existing FITS file. More...
|
|
template<class TYPE > |
void | AddKey (CCfits::FITS &fits_handle, const dit::did::Did &dictionary, const std::string &key, const TYPE &value, const int16_t hdu_nb) |
| Template function to add a keyword card in an existing FITS file. More...
|
|
void dit::fits::CreateFile |
( |
CCfits::FITS ** |
fits_handle, |
|
|
const std::string & |
filename, |
|
|
const dit::did::Did & |
dictionary, |
|
|
const int32_t |
bitpix, |
|
|
const std::list< int32_t > & |
naxes, |
|
|
std::string & |
target_filename, |
|
|
const bool |
remove_if_exists = false , |
|
|
const uint16_t |
nb_of_hdr_blocks = 1 |
|
) |
| |
Create a new FITS file.
- Parameters
-
fits_handle | The CCfits handle for the new file. Will be allocated by the function. |
filename | Basename for target file. |
dictionary | Dictionary containing the definition of the keys to be created. |
target_filename | The resulting final target filename. |
remove_if_exists | If true, remove a file if already exsting with the target filename. |
nb_of_hdr_blocks | Number of header blocks to reserve ( |
- Todo:
- not implemented).
- Parameters
-
data_size | Size in bytes to allocate for the data ( |
- Todo:
- not implemented).
Files given by their basename, will be created in "$DATAROOT/resource/image".
- Parameters
-
fits_handle | The CCfits handle for the new file. Will be allocated by the function. |
filename | Basename for target file. |
dictionary | Dictionary containing the definition of the keys to be created. |
target_filename | The resulting final target filename. |
remove_if_exists | If true, remove a file if already exsting with the target filename. |
nb_of_hdr_blocks | Number of header blocks to reserve ( |
- Todo:
- not implemented).
- Parameters
-
data_size | Size in bytes to allocate for the data ( |
- Todo:
- not implemented).
Files given by their basename, will be created in "$DATAROOT/resource/image".
- Parameters
-
fits_handle | The CCfits handle for the new file. Will be allocated by the function. |
filename | Basename for target file. |
dictionary | Dictionary containing the definition of the keys to be created. |
target_filename | The resulting final target filename. |
remove_if_exists | If true, remove a file if already exsting with the target filename. |
nb_of_hdr_blocks | Number of header blocks to reserve ( |
- Todo:
- not implemented).
- Parameters
-
data_size | Size in bytes to allocate for the data ( |
- Todo:
- not implemented).
Files given by their basename, will be created in "$DATAROOT/resource/image".
- Todo:
- : Handle nb_of_hdr_blocks, data_size.
- Todo:
- : Handle nb_of_hdr_blocks, data_size.
- Todo:
- : Handle nb_of_hdr_blocks, data_size.
Function to carry out a verification check on a FITS file.
- Parameters
-
filename | Basename of file to check. |
target_filename | Filename of the FITS file checked. |
report | Report object with the results from the check. |
This is a basic verification check, not involving a ICS dictionary.
- Todo:
- Not yet implemented.
- Parameters
-
filename | Basename of file to check. |
target_filename | Filename of the FITS file checked. |
report | Report object with the results from the check. |
This is a basic verification check, not involving a ICS dictionary.
- Todo:
- Not yet implemented.
- Parameters
-
filename | Basename of file to check. |
target_filename | Filename of the FITS file checked. |
report | Report object with the results from the check. |
This is a basic verification check, not involving a ICS dictionary.
- Todo:
- Not yet implemented.