Main Page | Modules | Class Hierarchy | Class List | File List | Class Members

ltl::FitsIn Class Reference
[MArray FITS file I/O]

Reading FITS data segment, reading and modifying FITS header. More...

#include <fits.h>

Inheritance diagram for ltl::FitsIn:

ltl::FitsHeader ltl::FitsIO ltl::FitsExtensionIn List of all members.

Card Lists

Lists representing the FITS header structure.

Public Member Functions

Protected Member Functions

Protected Attributes

Static Protected Attributes

Friends

Related Functions

(Note that these are not member functions.)

Detailed Description

Reading FITS data segment, reading and modifying FITS header.


Member Function Documentation

void ltl::FitsHeader::addValueCard FitsCard *  cardptr  )  throw (FitsException) [protected, inherited]
 

Add a value holding card to its proper list.

If the card has a bad syntax it's put on the ltl::FitsHeader::junk_ list.

Exceptions:
ltl::FitsException on error.

string ltl::FitsHeader::adjustKeyword string  keyword  )  const [inherited]
 

Return keyword trimmed (or expanded) to a width of 8 chars.

Trailing blanks are significant for FITS keywords. If you want to add missing trailing blanks or simply trim too long keywords you may want to use this method.

int ltl::FitsHeader::eraseCard const string &  keyword  )  throw (FitsException) [inherited]
 

Erase FITS card keyword.

Returns 0 on success, -1 on keyword not found.

Exceptions:
ltl::FitsException on forbidden erasures.

int ltl::FitsHeader::eraseCardFromList const string &  keyword,
list< FitsCard * > &  the_list
[protected, inherited]
 

Erase first ltl::FitsCard mathcing keyword from the_list.

Return -1 if keyword not found, otherwise 0.

int ltl::FitsHeader::eraseCardsFromJunkList const string &  keyword  )  [protected, inherited]
 

Erase all cards matching keyword from the ltl::FitsHeader::junk_ list.

Return the number of erased cards.

FitsCard * ltl::FitsHeader::findCardInList const string &  keyword,
const list< FitsCard * > &  the_list
const [protected, inherited]
 

Return pointer to card matching keyword in the_list.

Return NULL if no card is found.

FitsCard * ltl::FitsHeader::getValueCard const string &  keyword  )  const throw (FitsException) [protected, inherited]
 

Return pointer to first card matching keyword on any non commentary list.

Exceptions:
ltl::FitsException on error, i.e. no matching card found.

void ltl::FitsHeader::parseCommentToCardList const string &  keyword,
const string &  comment
[protected, inherited]
 

Parse and add a commentstring to its list.

Can be long, will be broken into lines)

string::size_type ltl::FitsHeader::parseMandatory const string &  record  )  throw (FitsException) [protected, inherited]
 

Parse the mandatory keys of record.

Return offset to next non-mandatory card within record.

Exceptions:
ltl::FitsException on error.

string::size_type ltl::FitsHeader::parseRecord const string &  record,
const bool  alljunk = false
throw (FitsException) [protected, inherited]
 

Parse a FITS record and assign the cards to their proper lists.

Returns the length of the record or 0 if "END" was found.

Exceptions:
ltl::FitsException on error.


Member Data Documentation

ltl::FitsHeader::ArrayList ltl::FitsHeader::array_ [protected, inherited]
 

List holding array keywords cards.

These are BSCALE, BZERO, BUNIT, BLANK, CTYPEn, CRPIXn, CRVALn, CRDELTn, CROTAn, DATAMIN and DATAMAX.

ltl::FitsHeader::ObserveList ltl::FitsHeader::observe_ [protected, inherited]
 

List holding reserved keywords cards which are not on other lists.

These are AUTHOR, BLOCKED, DATE, DATE-OBS, DATExxxx, EQUINOX, EPOCH, INSTRUME, OBJECT, OBSERVER, ORIGIN, REFERENC and TELESCOP. EPOCH will be copied to EQUINOX if EQUINOX not present.


The documentation for this class was generated from the following files:
Generated on Fri Dec 24 13:32:04 2004 for LTL by doxygen 1.3.4