99 TFITSHDU(
const char *filepath_with_filter);
101 TFITSHDU(
const char *filepath,
const char *extension_name);
Int_t fNRows
Number of rows (when fType == kTableHDU)
TString fExtensionName
Extension Name.
TFITSHDU(const char *filepath_with_filter)
TFITSHDU constructor from file path with HDU selection filter.
void Draw(Option_t *opt="")
If the HDU is an image, draw the first layer of the primary array To set a title to the canvas...
Int_t fNRecords
Number of records.
TArrayI * fSizes
Image sizes in each dimension (when fType == kImageHDU)
Int_t GetTabNColumns() const
TMatrixD * ReadAsMatrix(Int_t layer=0, Option_t *opt="")
Read image HDU as a matrix.
Int_t GetTabNRows() const
Int_t GetRecordNumber() const
An abstract interface to image processing library.
void _release_resources()
Release internal resources.
Bool_t LoadHDU(TString &filepath_filter)
Load HDU from fits file satisfying the specified filter.
Array of integers (32 bits per element).
void Print(const Option_t *opt="") const
Print metadata.
~TFITSHDU()
TFITSHDU destructor.
struct HDURecord * GetRecord(const char *keyword)
Get record by keyword.
#define ClassDef(name, id)
FITS file interface class.
void _initialize_me()
Do some initializations.
The TNamed class is the base class for all named ROOT classes.
void PrintFileMetadata(const Option_t *opt="") const
Print HDU's parent file's metadata.
TVectorD * GetArrayRow(UInt_t row)
Get a row from the image HDU when it's a 2D array.
enum EHDUTypes fType
HDU type.
TObjArray * GetTabStringColumn(Int_t colnum)
Get a string-typed column from a table HDU given its column index (>=0).
TH1 * ReadAsHistogram()
Read image HDU as a histogram.
Bool_t Change(const char *filter)
Change to another HDU given by "filter".
void PrintColumnInfo(const Option_t *) const
Print column information.
void PrintHDUMetadata(const Option_t *opt="") const
Print records.
TArrayD * fPixels
Image pixels (when fType == kImageHDU)
TVectorD * GetTabRealVectorColumn(Int_t colnum)
Get a real number-typed column from a table HDU given its column index (>=0).
Int_t fNumber
HDU number (1=PRIMARY)
A class to define a conversion from pixel values to pixel color.
Array of doubles (64 bits per element).
TString fBaseFilePath
Path to HDU's file excluding filter.
TVectorD * GetTabRealVectorCell(Int_t rownum, Int_t colnum)
Get a real vector embedded in a cell given by (row>=0, column>=0)
TString fFilePath
Path to HDU's file including filter.
TVectorD * GetArrayColumn(UInt_t col)
Get a column from the image HDU when it's a 2D array.
union Cell * fCells
Table cells (when fType == kTableHDU).
TString & GetKeywordValue(const char *keyword)
Get the value of a given keyword. Return "" if not found.
static void CleanFilePath(const char *filepath_with_filter, TString &dst)
Clean path from possible filter and put the result in 'dst'.
struct HDURecord * fRecords
HDU metadata records.
void PrintFullTable(const Option_t *) const
Print full table contents.
const TString & GetColumnName(Int_t colnum)
Get the name of a column given its index (column>=0).
struct Column * fColumnsInfo
Information about columns (when fType == kTableHDU)
Int_t fNColumns
Number of columns (when fType == kTableHDU)
TObjArray * GetTabRealVectorCells(Int_t colnum)
Get a collection of real vectors embedded in cells along a given column from a table HDU...
TImage * ReadAsImage(Int_t layer=0, TImagePalette *pal=0)
Read image HDU as a displayable image.
Int_t GetColumnNumber(const char *colname)
Get column number given its name.