I/O interface for FITS files. More...
#include "NcFITSIO.h"
I/O interface for FITS files.
Definition at line 26 of file NcFITSIO.h.
Public Types | |
| enum | eColumnTypes { kString , kStringArray , kRealNumber , kRealArray , kComplexNumber , kComplexArray , kLogical , kLogicalArray } |
| enum | eHDUTypes { kImageHDU , kTableHDU } |
Public Member Functions | |
| NcFITSIO (const char *name="NcFITSIO", const char *title="FITS data I/O interface") | |
| NcFITSIO (const NcFITSIO &q) | |
| virtual | ~NcFITSIO () |
| virtual TObject * | Clone (const char *name="") const |
| TString | GetColumnName (Int_t colnum) const |
| Int_t | GetColumnNumber (TString colname, Int_t mode=0) const |
| Int_t | GetHDUCount () const |
| UInt_t | GetImageArray (TArrayD &arr, TArrayI ifirst, TArrayI ilast, TArrayI incr) |
| UInt_t | GetImageArray (TArrayD &arr, TArrayI ifirst, UInt_t npix) |
| Int_t | GetImageDimension (Int_t i=0) const |
| Int_t | GetImageLayer (TASImage &im, Int_t layer=1, Double_t *thres=0, Double_t max=-1) |
| Int_t | GetImageLayer (TH2D &his, Int_t layer=1, Double_t *thres=0, Double_t max=-1) |
| Int_t | GetImageLayer (TMatrixD &m, Int_t layer=1, Double_t *thres=0, Double_t max=-1) |
| TString | GetKeywordValue (TString keyname, Int_t mode=0) |
| Int_t | GetTableCell (Double_t &val, Int_t row, Int_t col, Int_t layer=1) |
| Int_t | GetTableCell (Double_t &val, Int_t row, TString colname, Int_t layer=1, Int_t mode=0) |
| Int_t | GetTableCell (TArrayD &arr, Int_t row, Int_t col) |
| Int_t | GetTableCell (TArrayD &arr, Int_t row, TString colname, Int_t mode=0) |
| Int_t | GetTableCell (TObjArray &arr, Int_t row, Int_t col) |
| Int_t | GetTableCell (TObjArray &arr, Int_t row, TString colname, Int_t mode=0) |
| Int_t | GetTableCell (TString &str, Int_t row, Int_t col, Int_t layer=1) |
| Int_t | GetTableCell (TString &str, Int_t row, TString colname, Int_t layer=1, Int_t mode=0) |
| Int_t | GetTableCell (TString *&arr, Int_t row, Int_t col) |
| Int_t | GetTableCell (TString *&arr, Int_t row, TString colname, Int_t mode=0) |
| Int_t | GetTableColumn (TArrayD &arr, Int_t col, Int_t rstart=1, Int_t rend=0, Int_t layer=1) |
| Int_t | GetTableColumn (TArrayD &arr, TString colname, Int_t rstart=1, Int_t rend=0, Int_t layer=1, Int_t mode=0) |
| Int_t | GetTableColumn (TObjArray &arr, Int_t col, Int_t rstart=1, Int_t rend=0, Int_t layer=1) |
| Int_t | GetTableColumn (TObjArray &arr, TString colname, Int_t rstart=1, Int_t rend=0, Int_t layer=1, Int_t mode=0) |
| Int_t | GetTableColumn (TString *&arr, Int_t col, Int_t rstart=1, Int_t rend=0, Int_t layer=1) |
| Int_t | GetTableColumn (TString *&arr, TString colname, Int_t rstart=1, Int_t rend=0, Int_t layer=1, Int_t mode=0) |
| Int_t | GetTableNcolumns () const |
| Int_t | GetTableNrows () const |
| Bool_t | IsTable () const |
| void | ListFileHeader (Int_t mode=1) const |
| void | ListHDUHeader () const |
| void | ListTable (Int_t width=-10, Int_t rstart=1, Int_t rend=0, Int_t cstart=1, Int_t cend=0) |
| Bool_t | OpenInputFile (TString specs) |
| Bool_t | SelectHDU (Int_t extnumber) |
| Bool_t | SelectHDU (TString extname="[0]") |
Protected Member Functions | |
| void | ApplyPixelThreshold (TArrayD &arr, Double_t thres) |
| void | Initialize () |
| Bool_t | LoadHeaderInfo () |
| Int_t | LoadLayer (TArrayD &arr, Int_t layer) |
| void | RescalePixels (TArrayD &arr, Double_t max) |
| void | Reset () |
| TString | StripFilter (TString filename) const |
Protected Attributes | |
| Int_t * | fColumnLayers |
| TString * | fColumnNames |
| eColumnTypes * | fColumnTypes |
| TString * | fComments |
| TString | fExtensionName |
| Int_t | fExtensionNumber |
| TString | fFilename |
| TString | fFilenameFilter |
| fitsfile * | fInput |
| TString * | fKeyNames |
| TString * | fKeyValues |
| Int_t | fNcolumns |
| Int_t | fNkeys |
| Int_t | fNrows |
| fitsfile * | fOutput |
| TArrayI * | fSizes |
| eHDUTypes | fType |
| Enumerator | |
|---|---|
| kString | |
| kStringArray | |
| kRealNumber | |
| kRealArray | |
| kComplexNumber | |
| kComplexArray | |
| kLogical | |
| kLogicalArray | |
Definition at line 33 of file NcFITSIO.h.
| enum NcFITSIO::eHDUTypes |
| Enumerator | |
|---|---|
| kImageHDU | |
| kTableHDU | |
Definition at line 30 of file NcFITSIO.h.
| NcFITSIO::NcFITSIO | ( | const char * | name = "NcFITSIO", |
| const char * | title = "FITS data I/O interface" ) |
Definition at line 297 of file NcFITSIO.cxx.
|
virtual |
Definition at line 308 of file NcFITSIO.cxx.
| NcFITSIO::NcFITSIO | ( | const NcFITSIO & | q | ) |
Definition at line 319 of file NcFITSIO.cxx.
|
protected |
Definition at line 2588 of file NcFITSIO.cxx.
|
virtual |
Definition at line 2654 of file NcFITSIO.cxx.
| TString NcFITSIO::GetColumnName | ( | Int_t | colnum | ) | const |
Definition at line 993 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetColumnNumber | ( | TString | colname, |
| Int_t | mode = 0 ) const |
Definition at line 962 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetHDUCount | ( | ) | const |
Definition at line 900 of file NcFITSIO.cxx.
| UInt_t NcFITSIO::GetImageArray | ( | TArrayD & | arr, |
| TArrayI | ifirst, | ||
| TArrayI | ilast, | ||
| TArrayI | incr ) |
Definition at line 1981 of file NcFITSIO.cxx.
| UInt_t NcFITSIO::GetImageArray | ( | TArrayD & | arr, |
| TArrayI | ifirst, | ||
| UInt_t | npix ) |
Definition at line 2091 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetImageDimension | ( | Int_t | i = 0 | ) | const |
Definition at line 1780 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetImageLayer | ( | TASImage & | im, |
| Int_t | layer = 1, | ||
| Double_t * | thres = 0, | ||
| Double_t | max = -1 ) |
Definition at line 1810 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetImageLayer | ( | TH2D & | his, |
| Int_t | layer = 1, | ||
| Double_t * | thres = 0, | ||
| Double_t | max = -1 ) |
Definition at line 1923 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetImageLayer | ( | TMatrixD & | m, |
| Int_t | layer = 1, | ||
| Double_t * | thres = 0, | ||
| Double_t | max = -1 ) |
Definition at line 1858 of file NcFITSIO.cxx.
| TString NcFITSIO::GetKeywordValue | ( | TString | keyname, |
| Int_t | mode = 0 ) |
Definition at line 845 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableCell | ( | Double_t & | val, |
| Int_t | row, | ||
| Int_t | col, | ||
| Int_t | layer = 1 ) |
Definition at line 1012 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableCell | ( | Double_t & | val, |
| Int_t | row, | ||
| TString | colname, | ||
| Int_t | layer = 1, | ||
| Int_t | mode = 0 ) |
Definition at line 1044 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableCell | ( | TArrayD & | arr, |
| Int_t | row, | ||
| Int_t | col ) |
Definition at line 1074 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableCell | ( | TArrayD & | arr, |
| Int_t | row, | ||
| TString | colname, | ||
| Int_t | mode = 0 ) |
Definition at line 1156 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableCell | ( | TObjArray & | arr, |
| Int_t | row, | ||
| Int_t | col ) |
Definition at line 1396 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableCell | ( | TObjArray & | arr, |
| Int_t | row, | ||
| TString | colname, | ||
| Int_t | mode = 0 ) |
Definition at line 1434 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableCell | ( | TString & | str, |
| Int_t | row, | ||
| Int_t | col, | ||
| Int_t | layer = 1 ) |
Definition at line 1183 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableCell | ( | TString & | str, |
| Int_t | row, | ||
| TString | colname, | ||
| Int_t | layer = 1, | ||
| Int_t | mode = 0 ) |
Definition at line 1224 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableCell | ( | TString *& | arr, |
| Int_t | row, | ||
| Int_t | col ) |
Definition at line 1260 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableCell | ( | TString *& | arr, |
| Int_t | row, | ||
| TString | colname, | ||
| Int_t | mode = 0 ) |
Definition at line 1360 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableColumn | ( | TArrayD & | arr, |
| Int_t | col, | ||
| Int_t | rstart = 1, | ||
| Int_t | rend = 0, | ||
| Int_t | layer = 1 ) |
Definition at line 1466 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableColumn | ( | TArrayD & | arr, |
| TString | colname, | ||
| Int_t | rstart = 1, | ||
| Int_t | rend = 0, | ||
| Int_t | layer = 1, | ||
| Int_t | mode = 0 ) |
Definition at line 1523 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableColumn | ( | TObjArray & | arr, |
| Int_t | col, | ||
| Int_t | rstart = 1, | ||
| Int_t | rend = 0, | ||
| Int_t | layer = 1 ) |
Definition at line 1675 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableColumn | ( | TObjArray & | arr, |
| TString | colname, | ||
| Int_t | rstart = 1, | ||
| Int_t | rend = 0, | ||
| Int_t | layer = 1, | ||
| Int_t | mode = 0 ) |
Definition at line 1739 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableColumn | ( | TString *& | arr, |
| Int_t | col, | ||
| Int_t | rstart = 1, | ||
| Int_t | rend = 0, | ||
| Int_t | layer = 1 ) |
Definition at line 1558 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableColumn | ( | TString *& | arr, |
| TString | colname, | ||
| Int_t | rstart = 1, | ||
| Int_t | rend = 0, | ||
| Int_t | layer = 1, | ||
| Int_t | mode = 0 ) |
Definition at line 1630 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableNcolumns | ( | ) | const |
Definition at line 951 of file NcFITSIO.cxx.
| Int_t NcFITSIO::GetTableNrows | ( | ) | const |
Definition at line 940 of file NcFITSIO.cxx.
|
protected |
Definition at line 338 of file NcFITSIO.cxx.
| Bool_t NcFITSIO::IsTable | ( | ) | const |
Definition at line 885 of file NcFITSIO.cxx.
| void NcFITSIO::ListFileHeader | ( | Int_t | mode = 1 | ) | const |
Definition at line 2362 of file NcFITSIO.cxx.
| void NcFITSIO::ListHDUHeader | ( | ) | const |
Definition at line 2342 of file NcFITSIO.cxx.
| void NcFITSIO::ListTable | ( | Int_t | width = -10, |
| Int_t | rstart = 1, | ||
| Int_t | rend = 0, | ||
| Int_t | cstart = 1, | ||
| Int_t | cend = 0 ) |
Definition at line 2190 of file NcFITSIO.cxx.
|
protected |
Definition at line 485 of file NcFITSIO.cxx.
|
protected |
Definition at line 2525 of file NcFITSIO.cxx.
| Bool_t NcFITSIO::OpenInputFile | ( | TString | specs | ) |
Definition at line 413 of file NcFITSIO.cxx.
|
protected |
Definition at line 2605 of file NcFITSIO.cxx.
|
protected |
Definition at line 365 of file NcFITSIO.cxx.
| Bool_t NcFITSIO::SelectHDU | ( | Int_t | extnumber | ) |
Definition at line 820 of file NcFITSIO.cxx.
| Bool_t NcFITSIO::SelectHDU | ( | TString | extname = "[0]" | ) |
Definition at line 777 of file NcFITSIO.cxx.
|
protected |
Definition at line 470 of file NcFITSIO.cxx.
|
protected |
Definition at line 97 of file NcFITSIO.h.
|
protected |
Definition at line 95 of file NcFITSIO.h.
|
protected |
Definition at line 96 of file NcFITSIO.h.
|
protected |
Definition at line 92 of file NcFITSIO.h.
|
protected |
Definition at line 87 of file NcFITSIO.h.
|
protected |
Definition at line 88 of file NcFITSIO.h.
|
protected |
Definition at line 82 of file NcFITSIO.h.
|
protected |
Definition at line 83 of file NcFITSIO.h.
|
protected |
Definition at line 84 of file NcFITSIO.h.
|
protected |
Definition at line 90 of file NcFITSIO.h.
|
protected |
Definition at line 91 of file NcFITSIO.h.
|
protected |
Definition at line 94 of file NcFITSIO.h.
|
protected |
Definition at line 89 of file NcFITSIO.h.
|
protected |
Definition at line 93 of file NcFITSIO.h.
|
protected |
Definition at line 85 of file NcFITSIO.h.
|
protected |
Definition at line 98 of file NcFITSIO.h.
|
protected |
Definition at line 86 of file NcFITSIO.h.