Changeset 2780 for trunk/external-alma
- Timestamp:
- 03/07/13 14:01:29 (12 years ago)
- Location:
- trunk/external-alma/atnf/PKSIO
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/atnf/PKSIO/ASTEFXReader.cc
r1757 r2780 53 53 } 54 54 55 // Read data header 56 Int ASTEFXReader::read() 55 void ASTEFXReader::initDataset() 57 56 { 58 LogIO os( LogOrigin( "ASTEFXReader", "read()", WHERE ) ) ;59 60 int status = 0 ;61 62 // create ASTEFXDataset63 57 dataset_ = new ASTEFXDataset( filename_ ) ; 64 65 // fill ASTEFXDataset66 status = dataset_->fillHeader() ;67 68 if ( status != 0 ) {69 //cerr << "Failed to fill data header." << endl ;70 os << LogIO::SEVERE << "Failed to fill data header." << LogIO::EXCEPTION ;71 }72 73 return status ;74 58 } 75 -
trunk/external-alma/atnf/PKSIO/ASTEFXReader.h
r1757 r2780 79 79 ~ASTEFXReader() ; 80 80 81 // Read data header 82 virtual int read() ; 81 protected: 82 // initialize Dataset 83 void initDataset(); 83 84 }; 84 85 -
trunk/external-alma/atnf/PKSIO/ASTEReader.cc
r2154 r2780 53 53 } 54 54 55 // Read data header 56 Int ASTEReader::read() 55 void ASTEReader::initDataset() 57 56 { 58 LogIO os( LogOrigin( "ASTEReader", "read()", WHERE ) ) ;59 60 int status = 0 ;61 62 // create ASTEDataset63 57 dataset_ = new ASTEDataset( filename_ ) ; 64 65 // fill ASTEDataset66 status = dataset_->fillHeader() ;67 68 if ( status != 0 ) {69 os << LogIO::SEVERE << "Failed to fill data header." << LogIO::EXCEPTION ;70 }71 72 return status ;73 58 } 74 59 -
trunk/external-alma/atnf/PKSIO/ASTEReader.h
r2154 r2780 78 78 ~ASTEReader() ; 79 79 80 // Read data header81 virtual int read() ;82 83 80 // get number of IF 84 81 virtual Int getNumIF() ; … … 88 85 89 86 protected: 87 // initialize Dataset 88 void initDataset(); 89 90 90 // Get Antenna Position in ITRF coordinate 91 91 virtual vector<double> getAntennaPosition() ; -
trunk/external-alma/atnf/PKSIO/NRO45Reader.cc
r2154 r2780 53 53 } 54 54 55 // Read data header 56 Int NRO45Reader::read() 55 void NRO45Reader::initDataset() 57 56 { 58 LogIO os( LogOrigin( "NRO45Reader", "read()", WHERE ) ) ;59 60 // DEBUG61 //cout << "NRO45Reader::read()" << endl ;62 //63 int status = 0 ;64 65 // create NROOTFDataset66 57 dataset_ = new NROOTFDataset( filename_ ) ; 67 68 // fill NROOTFDataset69 status = dataset_->fillHeader() ;70 71 if ( status != 0 ) {72 os << LogIO::SEVERE << "Failed to fill data header." << LogIO::EXCEPTION ;73 }74 75 return status ;76 58 } 77 59 -
trunk/external-alma/atnf/PKSIO/NRO45Reader.h
r2154 r2780 80 80 ~NRO45Reader() ; 81 81 82 // Read data header83 virtual int read() ;84 85 82 // get number of IF 86 83 virtual Int getNumIF() ; … … 90 87 91 88 protected: 89 // initialize Dataset 90 virtual void initDataset(); 91 92 92 // Get Antenna Position in ITRF coordinate 93 93 virtual vector<double> getAntennaPosition() ; -
trunk/external-alma/atnf/PKSIO/NROReader.cc
r2777 r2780 197 197 NROReader::~NROReader() 198 198 { 199 } 200 201 // Read data header 202 Int NROReader::read() 203 { 204 LogIO os( LogOrigin( "NROReader", "read()", WHERE ) ) ; 205 206 int status = 0 ; 207 208 // initialize Dataset object 209 initDataset(); 210 211 // fill Dataset 212 status = dataset_->fillHeader() ; 213 214 if ( status != 0 ) { 215 os << LogIO::SEVERE << "Failed to fill data header." << LogIO::EXCEPTION ; 216 } 217 218 return status ; 199 219 } 200 220 -
trunk/external-alma/atnf/PKSIO/NROReader.h
r2764 r2780 108 108 109 109 // Read data header 110 virtual Int read() = 0;110 virtual Int read() ; 111 111 112 112 // Get header information … … 186 186 187 187 protected: 188 // get Dataset object 189 virtual void initDataset() = 0; 190 188 191 // convert time in character representation to MJD representation 189 192 virtual double getMJD( char *time ) ;
Note:
See TracChangeset
for help on using the changeset viewer.