My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::PtSrcFitsReader Class Referenceabstract
Inheritance diagram for gcp::util::PtSrcFitsReader:
gcp::util::PtSrcReader gcp::util::FirstFitsReader gcp::util::NvssReader

Public Member Functions

 PtSrcFitsReader (std::string catalogFile)
 
 PtSrcFitsReader ()
 
virtual ~PtSrcFitsReader ()
 
void initialize ()
 
void openCatalogFile ()
 
void closeCatalogFile ()
 
PtSrcReader::Source readNextEntry ()
 
void readNextChunk ()
 
bool eof ()
 
void setRaRange (HourAngle &ra, Declination &dec, Angle &radius)
 
void initRange ()
 
- Public Member Functions inherited from gcp::util::PtSrcReader
 PtSrcReader (std::string catalogFile)
 
 PtSrcReader ()
 
void initialize ()
 
virtual ~PtSrcReader ()
 
void setCatalogFile (std::string catalogFile)
 
std::vector< PtSrcReader::SourcefindSources (HourAngle ra, Declination dec, Angle radius, Flux fMin=minFlux_, Flux fMax=maxFlux_, bool doPrint=true)
 
unsigned countSources (HourAngle ra, Declination dec, Angle radius, Flux fMin=minFlux_, Flux fMax=maxFlux_)
 
void indexSources ()
 
bool checkAngle (PtSrcReader::Source &src, HourAngle &ra, Declination &dec, Angle &radius)
 
void printHeader (std::ostream &os)
 
virtual void applyCorrections (Source &src)
 

Protected Member Functions

virtual PtSrcReader::Source parseData ()=0
 
virtual void readFitsData (long startRow, long nElement)=0
 
void incrementRange ()
 
- Protected Member Functions inherited from gcp::util::PtSrcReader
void throwCfitsioError (int status)
 

Protected Attributes

fitsfilefitsFile_
 
int status_
 
long indices_ [25]
 
unsigned nChunk_
 
unsigned iChunk_
 
long nRow_
 
long nRowTotal_
 
unsigned iRow_
 
double ras_ [chunkSize_]
 
double decs_ [chunkSize_]
 
float peakFluxes_ [chunkSize_]
 
float rmsFluxes_ [chunkSize_]
 
float majorAxes_ [chunkSize_]
 
float minorAxes_ [chunkSize_]
 
float positionAngles_ [chunkSize_]
 
char * sourceNames_ [chunkSize_]
 
unsigned int nRange_
 
unsigned int iRange_
 
unsigned rowMin_
 
unsigned int rangeStartInd_ [2]
 
unsigned int rangeStopInd_ [2]
 
- Protected Attributes inherited from gcp::util::PtSrcReader
std::string catalogFile_
 
long sourceIndices_ [25]
 
unsigned nSrc_
 

Static Protected Attributes

static const unsigned chunkSize_ = 10
 

Additional Inherited Members

- Public Attributes inherited from gcp::util::PtSrcReader
HourAngle raMin_
 
HourAngle raMax_
 
- Static Public Attributes inherited from gcp::util::PtSrcReader
static Flux minFlux_
 
static Flux maxFlux_
 

Constructor & Destructor Documentation

PtSrcFitsReader::PtSrcFitsReader ( std::string  catalogFile)

Constructor.

....................................................................... Constructor.

PtSrcFitsReader::PtSrcFitsReader ( )

....................................................................... Constructor.

PtSrcFitsReader::~PtSrcFitsReader ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

void PtSrcFitsReader::closeCatalogFile ( )
virtual

....................................................................... Close the catalog file

Implements gcp::util::PtSrcReader.

bool PtSrcFitsReader::eof ( )
virtual

....................................................................... Return true if the input stream for the catalog file is at the EOF mark

Implements gcp::util::PtSrcReader.

void PtSrcFitsReader::incrementRange ( )
protected

....................................................................... Increment to the next range.

void PtSrcFitsReader::initialize ( void  )

Initialize critical members

....................................................................... Initialize critical members

void PtSrcFitsReader::openCatalogFile ( )
virtual

....................................................................... Open the catalog file

Implements gcp::util::PtSrcReader.

void PtSrcFitsReader::readNextChunk ( )

....................................................................... Read the next chunk of data from the FITS file

Data structure from the NVSS catalog.ps file:

1 RA(2000) J2000 Right Ascension (degrees) 2 DEC(2000) J2000 declination (degrees) 3 PEAK INT Peak Stokes I (Jy/beam) 4 MAJOR AX Fitted major axis (degrees) 5 MINOR AX Fitted minior axis (degrees) 6 POSANGLE Fitted position angle of the major axis (degrees) 7 Q CENTER Interpolated Q value at position of I peak (Jy/beam) 8 U CENTER Interpolated U value at position of I peak (Jy/beam) 9 P FLUX Integrated polarized (linear) flux (Jy) 10 I RMS RMS noise in Stokes I image (Jy/beam) 11 POL RMS RMS noise in Stokes Q,U image (Jy/beam) 12 RES RMS RMS Stokes I residual after fit 13 RES PEAK Peak Stokes I residual (Jy/beam) 14 RES FLUX Integrated Stokes I residual (Jy) 15 CENTER X X pixel in FIELD of center (pixels) 16 CENTER Y Y pixel in FIELD of center (pixels) 17 FIELD Name of the 4x4 degree field (string) 18 JD PROCESSED Julian date on which this entry was derived from an image (day)

PtSrcReader::Source PtSrcFitsReader::readNextEntry ( )
virtual

....................................................................... Read the next entry from the catalog file

Implements gcp::util::PtSrcReader.

void PtSrcFitsReader::setRaRange ( HourAngle ra,
Declination dec,
Angle radius 
)
virtual

....................................................................... Overload the base-class method to set up RA ranges to search

Reimplemented from gcp::util::PtSrcReader.


The documentation for this class was generated from the following files: