|
| void | freeData () |
| | Unmap data segment, free address space. More...
|
| |
| virtual void | describeSelf (std::ostream &os) |
| | Write FITS file geometry and class interna to out stream. More...
|
| |
| FitsHeader | getHeader () const |
| | Return copy of FITS header. More...
|
| |
| virtual FitsIn | getNextExtension () |
| | Return input object for next FITS extension when present. More...
|
| |
| template<class T > |
| FitsIn & | operator>> (FitsIn &fitsfile, T &a) |
| |
| template<class T , int N> |
| FitsIn & | operator>> (FitsIn &fitsfile, MArray< T, N > &a) |
| |
| template<> |
| FitsIn & | operator>> (FitsIn &infile, FitsOut &outfile) |
| |
| std::string | adjustKeyword (std::string keyword) const |
| | Return keyword trimmed (or expanded) to a width of 8 chars. More...
|
| |
| void | addCommentCard (FitsCard *cardptr) throw (FitsException) |
| | Add a commentary card to the correct list. More...
|
| |
| void | addValueCard (FitsCard *cardptr) throw (FitsException) |
| | Add a value holding card to its proper list. More...
|
| |
| int | eraseCard (const std::string &keyword) throw (FitsException) |
| | Erase FITS card keyword. More...
|
| |
| off_t | getDataOffset () const |
| | Return the byte offset within the file to the data segment. More...
|
| |
| off_t | getDataLength () const |
| | Return the size of the data segment in bytes. More...
|
| |
| std::string | writeHeader (const bool with_junk=false) |
| | Return a new valid FITS file format header. More...
|
| |
| void | readHeader (const std::string &filename, const bool alljunk=false, unsigned char *inmemptr=NULL, size_t inmemlen=0) throw (FitsException) |
| | Read and parse a FITS header from file. More...
|
| |
| void | parseCommentToCardList (const std::string &keyword, const std::string &comment) |
| | Parse and add a commentstring to its list. More...
|
| |
| void | addJunkCard (const std::string &native_card) |
| | Just split 80 char card into keyword + rest and push it on the junk list. More...
|
| |
| void | addJunkCard (const std::string &keyword, const std::string &comment) |
| | Add a suitable trimmed junk card. More...
|
| |
| void | addJunkCard (FitsCard *cardptr) |
| | Add a preexisting ltl::FitsCard to junk list. More...
|
| |
| void | clearCardList (std::list< FitsCard * > &the_list) |
| | Clear a whole list of cards. More...
|
| |
| int | eraseCardFromList (const std::string &keyword, std::list< FitsCard * > &the_list) |
| | Erase first ltl::FitsCard mathcing keyword from the_list. More...
|
| |
| int | eraseCardsFromJunkList (const std::string &keyword) |
| | Erase all cards matching keyword from the ltl::FitsHeader::junk_ list. More...
|
| |
| FitsCard * | findCardInList (const std::string &keyword, const std::list< FitsCard * > &the_list) const |
| | Return pointer to card matching keyword in the_list. More...
|
| |
| FitsCard * | getValueCard (const std::string &keyword) const throw (FitsException) |
| | Return pointer to first card matching keyword on any non commentary list. More...
|
| |
| std::string | writeCommentsOfList (const std::list< FitsCard * > &the_list) const |
| | Return string holding new line broken comments of a whole list. More...
|
| |
| std::string | writeCardsOfList (const std::list< FitsCard * > &the_list) const |
| | Return string holding FITS formatted cards of a list. More...
|
| |
| void | copy (const FitsHeader &other) |
| | Copy header from other. More...
|
| |
| void | copyCardList (std::list< FitsCard * > &dest_list, const std::list< FitsCard * > &src_list) |
| | Copy list of ltl::FitsCard. More...
|
| |
| void | testRegion (const util::Region &testreg) const throw (FitsException) |
| | Test if region complies with FITS file geometry. More...
|
| |
| string | getFilename () const |
| | Return ltl::FitsIO::filename_ . More...
|
| |
| unsigned char * | streampos () const |
| | Return ltl::FitsIO::fitsstreamptr_ . More...
|
| |
| FitsOut & | operator<< (FitsOut &outfile, FitsIn &infile) |
| |
| FitsOut & | operator<< (FitsOut &outfile, FitsExtensionIn &infile) |
| |
| FitsExtensionOut & | operator<< (FitsExtensionOut &outfile, const emptyData_ &) |
| |
| FitsExtensionOut & | operator<< (FitsExtensionOut &outfile, FitsIn &infile) |
| |
|
| unsigned char * | begin () |
| |
| unsigned char * | end () |
| |
| void | resetPosition () |
| |
| void | setPosition (off_t offset) |
| |
| ptrdiff_t | getPosition () |
| |
|
| void | setRegion (const util::Region &fregion) throw (FitsException) |
| | Select region of interest in data segment. More...
|
| |
| void | resetRegion () |
| | Reset region of interest in data segment to full region. More...
|
| |
|
| template<class T > |
| T * | getRegionArray (const util::Region ®) |
| | Return array holding preselected region of data segment. More...
|
| |
| template<class T > |
| void | readRegionArray (T &i, const util::Region ®) |
| | Fill container via iterator i with region reg of data segment. More...
|
| |
| template<class T > |
| void | readRegionArray (T &i) |
| | Fill container via iterator i with preselected region of data segment. More...
|
| |
| template<class T > |
| void | readDataArray (T &i) |
| | Fill container via iterator i with data segment. More...
|
| |
| template<class T > |
| T * | getDataArray (const T) |
| | Return array holding data segment. More...
|
| |
| template<class T > |
| T | getNextPixel (const T) |
| | Read next pixel of datasegment with per pixel read. More...
|
| |
|
| void | addCommentCard (const std::string &keyword, const std::string &comment) |
| | Add a commentary card. More...
|
| |
| void | addHistory (const std::string &history) |
| | Add a history of arbitrary length. More...
|
| |
| void | addComment (const std::string &comment) |
| | Add a history of arbitrary length. More...
|
| |
| void | addValueCard (const std::string &keyword, const std::string &value, const std::string comment="", const bool fixed=true) |
| | Add a string value card. More...
|
| |
| void | addValueCard (const std::string &keyword, const char *value, const std::string comment="", const bool fixed=true) |
| | Add a char value card. More...
|
| |
| void | addValueCard (const std::string &keyword, const bool value, const std::string comment="", const bool fixed=true) |
| | Add a boolean value card. More...
|
| |
| void | addValueCard (const std::string &keyword, const int value, const std::string comment="", const bool fixed=true) |
| | Add an integer value card. More...
|
| |
| void | addValueCard (const std::string &keyword, const long value, const std::string comment="", const bool fixed=true) |
| | Add an integer value card. More...
|
| |
| void | addValueCard (const std::string &keyword, const float value, const std::string comment="", const bool fixed=true) |
| | Add a floating point value card. More...
|
| |
| void | addValueCard (const std::string &keyword, const double value, const std::string comment="", const bool fixed=true) |
| | Add a floating point value card. More...
|
| |
|
Get (and set) values of mandatories and array keys via shortcuts.
|
| int | getBitpix () const |
| | Return BITPIX setting. More...
|
| |
| int | getBytpix () const |
| | Return bytes per pixel, i.e. abs( bitpix_ ) / 8. More...
|
| |
| int | getNaxis () const |
| | Return NAXIS setting. More...
|
| |
| int | getNaxis (const int i) const |
| | Return width of i NAXIS. More...
|
| |
| double | getBscale () const |
| | Return BSCALE setting. More...
|
| |
| double | getBzero () const |
| | Return BZERO setting. More...
|
| |
| void | setBscale (const double value) |
| | Set the BSCALE key to value. More...
|
| |
| void | setBzero (const double value) |
| | Set the BZERO key to value. More...
|
| |
| util::Region | getFullRegion () const |
| | Return a util::Region according to the NAXIS geometry. More...
|
| |
|
Search the lists for card matching keyword and return requested instance.
|
| std::string | getString (const std::string &keyword) const |
| | Return string value of FITS key keyword. More...
|
| |
| bool | getBool (const std::string &keyword) const |
| | Return boolean value of FITS key keyword. More...
|
| |
| long | getInt (const std::string &keyword) const |
| | Return integer value of FITS key keyword. More...
|
| |
| double | getFloat (const std::string &keyword) const |
| | Return floating point value of FITS key keyword. More...
|
| |
| bool | isFixed (const std::string &keyword) const |
| | Indicate if value of FITS key keyword is of fixed type. More...
|
| |
| std::string | getComment (const std::string &keyword) const |
| | Return comment of FITS key keyword. More...
|
| |
| std::string | getComment () const |
| | Return complete COMMENT. More...
|
| |
| std::string | getHistory () const |
| | Return complete HISTORY. More...
|
| |
| std::string | getValueAsString (const std::string &keyword) const |
| | Return value of FITS key keyword as a string irrespective of its type. More...
|
| |
|
The next 4 methods parse a complete 2880 char record into lists of ltl::FitsCards.
|
| std::string::size_type | parseRecord (const std::string &record, const bool alljunk=false) throw (FitsException) |
| | Parse a FITS record and assign the cards to their proper lists. More...
|
| |
| std::string::size_type | parseMandatory (const std::string &record) throw (FitsException) |
| | Parse the mandatory keys of record. More...
|
| |
| std::string::size_type | parseNaxis (const std::string &record, std::string::size_type card_of_record=0) |
| | Parse cards until Naxis parameter is matched, returns card offset in record. More...
|
| |
| void | checkNaxis () throw (FitsException) |
| | Check the Naxis list, ltl::FitsException on error. More...
|
| |
|
These 2 functions parse a 80 char line card into an ltl::FitsCard.
|
| FitsCard * | parseCard (const std::string &card) const throw (FitsException) |
| | Parse 80 char line into an ltl::FitsCard object. More...
|
| |
| std::string | getCardComment (const std::string &teststring) const throw (FitsException) |
| | Return the comment of a 80 char line card remainder. More...
|
| |
|
| size_t | getRegionLength () const |
| | Get number of pixels in selected region. More...
|
| |
| size_t | getRegionLength (const size_t dim) const |
| | Get length along dimension dim of selected region in pixels. More...
|
| |
| int | getRegionStart (const size_t dim) const |
| | Get start pixel coordinate in dimension dim of selected region. More...
|
| |
| int | getRegionEnd (const size_t dim) const |
| | Get end pixel coordinate in dimension dim of selected region. More...
|
| |
| util::Region | getRegion () const |
| | Return copy of selected region. More...
|
| |
Class to read binary table from FITS extensions.