Changeset 3106 for trunk/external-alma/oldasdm2ASAP
- Timestamp:
- 10/04/16 18:20:50 (8 years ago)
- Location:
- trunk/external-alma/oldasdm2ASAP
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/oldasdm2ASAP/OldASDMFiller.cc
r2407 r3106 74 74 //logsink_->postLocally( LogMessage("sFreqFrame = "+sFreqFrame,LogOrigin(className_,funcName,WHERE)) ) ; 75 75 76 Vector<casa ::Double> antpos = table_->getHeader().antennaposition ;76 Vector<casacore::Double> antpos = table_->getHeader().antennaposition ; 77 77 78 78 // data selection … … 172 172 173 173 // fill MOLECULE_ID and add MOLECULES row if necessary 174 Vector<casa ::Double> restFreqs( rf.size() ) ;174 Vector<casacore::Double> restFreqs( rf.size() ) ; 175 175 for ( uInt i = 0 ; i < rf.size() ; i++ ) 176 restFreqs[i] = (casa ::Double)(rf[i]) ;176 restFreqs[i] = (casacore::Double)(rf[i]) ; 177 177 setMolecule( restFreqs ) ; 178 178 179 179 // time and interval 180 casa ::Double mjd = (casa::Double)(reader_->getTime()) ;181 casa ::Double interval = (casa::Double)(reader_->getInterval()) ;180 casacore::Double mjd = (casacore::Double)(reader_->getTime()) ; 181 casacore::Double interval = (casacore::Double)(reader_->getInterval()) ; 182 182 183 183 // fill TIME and INTERVAL … … 185 185 186 186 // fill SRCNAME, SRCTYPE, FIELDNAME, SRCDIRECTION, SRCPROPERMOTION, and SRCVELOCITY 187 Vector<casa ::Double> srcDir( 2 ) ;188 srcDir[0] = (casa ::Double)(srcDirection[0]) ;189 srcDir[1] = (casa ::Double)(srcDirection[1]) ;190 Vector<casa ::Double> srcPM( 2 ) ;191 srcPM[0] = (casa ::Double)(srcProperMotion[0]) ;192 srcPM[1] = (casa ::Double)(srcProperMotion[1]) ;193 setSource( srcname, srctype, fieldname, srcDir, srcPM, (casa ::Double)sysVel ) ;187 Vector<casacore::Double> srcDir( 2 ) ; 188 srcDir[0] = (casacore::Double)(srcDirection[0]) ; 189 srcDir[1] = (casacore::Double)(srcDirection[1]) ; 190 Vector<casacore::Double> srcPM( 2 ) ; 191 srcPM[0] = (casacore::Double)(srcProperMotion[0]) ; 192 srcPM[1] = (casacore::Double)(srcProperMotion[1]) ; 193 setSource( srcname, srctype, fieldname, srcDir, srcPM, (casacore::Double)sysVel ) ; 194 194 195 195 // fill FLAGROW … … 208 208 windspeed, 209 209 windaz ) ; 210 setWeather2( (casa ::Float)temperature,211 (casa ::Float)pressure,212 (casa ::Float)humidity,213 (casa ::Float)windspeed,214 (casa ::Float)windaz ) ;210 setWeather2( (casacore::Float)temperature, 211 (casacore::Float)pressure, 212 (casacore::Float)humidity, 213 (casacore::Float)windspeed, 214 (casacore::Float)windaz ) ; 215 215 216 216 // fill AZIMUTH, ELEVATION, DIRECTION and SCANRATE … … 223 223 el, 224 224 srate ) ; 225 Vector<casa ::Double> scanRate( 2, 0.0 ) ;226 Vector<casa ::Double> direction( 2, 0.0 ) ;225 Vector<casacore::Double> scanRate( 2, 0.0 ) ; 226 Vector<casacore::Double> direction( 2, 0.0 ) ; 227 227 if ( srate.size() > 0 ) { 228 scanRate[0] = (casa ::Double)(srate[0]) ;229 scanRate[1] = (casa ::Double)(srate[1]) ;228 scanRate[0] = (casacore::Double)(srate[0]) ; 229 scanRate[1] = (casacore::Double)(srate[1]) ; 230 230 } 231 231 setScanRate( scanRate ) ; 232 232 if ( dir.size() > 0 ) { 233 direction[0] = (casa ::Double)(dir[0]) ;234 direction[1] = (casa ::Double)(dir[1]) ;233 direction[0] = (casacore::Double)(dir[0]) ; 234 direction[1] = (casacore::Double)(dir[1]) ; 235 235 } 236 236 else { … … 238 238 } 239 239 //logsink_->postLocally( LogMessage("direction = "+String::toString(direction),LogOrigin(className_,funcName,WHERE)) ) ; 240 setDirection( direction, (casa ::Float)az, (casa::Float)el ) ;240 setDirection( direction, (casacore::Float)az, (casacore::Float)el ) ; 241 241 242 242 // REFPIX, REFVAL, INCREMENT … … 247 247 else { 248 248 reader_->getFrequency( refpix, refval, incr, freqref ) ; 249 refval = (double)toLSRK( casa ::Double(refval),249 refval = (double)toLSRK( casacore::Double(refval), 250 250 String(freqref), 251 251 mjd, … … 258 258 259 259 // fill FREQ_ID and add FREQUENCIES row if necessary 260 setFrequency( (casa ::Double)refpix, (casa::Double)refval, (casa::Double)incr ) ;260 setFrequency( (casacore::Double)refpix, (casacore::Double)refval, (casacore::Double)incr ) ; 261 261 262 262 // loop on polarization … … 280 280 // OPACITY 281 281 vector<float> tau = reader_->getOpacity() ; 282 Vector<casa ::Float> opacity = toVector( tau, numPol ) ;282 Vector<casacore::Float> opacity = toVector( tau, numPol ) ; 283 283 284 284 // SPECTRA, FLAGTRA, TSYS, TCAL … … 287 287 vector< vector<float> > tc ; 288 288 reader_->getTcalAndTsys( tc, ts ) ; 289 Matrix<casa ::Float> spectra = toMatrix( sp, numPol, numChan ) ;289 Matrix<casacore::Float> spectra = toMatrix( sp, numPol, numChan ) ; 290 290 Vector<uChar> flagtra( numChan, 0 ) ; 291 Matrix<casa ::Float> tsys = toMatrix( ts, numPol, numChan ) ;292 Matrix<casa ::Float> tcal = toMatrix( tc, numPol, numChan ) ;291 Matrix<casacore::Float> tsys = toMatrix( ts, numPol, numChan ) ; 292 Matrix<casacore::Float> tcal = toMatrix( tc, numPol, numChan ) ; 293 293 // String caltime = "" ; 294 // if ( anyNE( tcal, (casa ::Float)1.0 ) )294 // if ( anyNE( tcal, (casacore::Float)1.0 ) ) 295 295 // caltime = toTcalTime( mjd ) ; 296 296 String caltime = toTcalTime( mjd ) ; … … 374 374 string ref ; 375 375 reader_->getSourceDirection( sdir, ref ) ; 376 Vector<casa ::Double> sourceDir( sdir ) ;376 Vector<casacore::Double> sourceDir( sdir ) ; 377 377 hdr.reffreq = toLSRK( hdr.reffreq, hdr.freqref, hdr.utc, hdr.antennaposition, sdir, String(ref) ) ; 378 378 hdr.freqref = "LSRK" ; … … 410 410 } 411 411 412 Matrix<casa ::Float> OldASDMFiller::toMatrix( float *sp,412 Matrix<casacore::Float> OldASDMFiller::toMatrix( float *sp, 413 413 unsigned int npol, 414 414 unsigned int nchan ) 415 415 { 416 Matrix<casa ::Float> mSp( npol, nchan ) ;416 Matrix<casacore::Float> mSp( npol, nchan ) ; 417 417 if ( npol <= 2 ) { 418 418 // 1 or 2 polarization case 419 419 for ( unsigned int ich = 0 ; ich < nchan ; ich++ ) { 420 420 for ( unsigned int ipol = 0 ; ipol < npol ; ipol++ ) { 421 mSp(ipol,ich) = (casa ::Float)(sp[npol*ich+ipol]) ;421 mSp(ipol,ich) = (casacore::Float)(sp[npol*ich+ipol]) ; 422 422 } 423 423 } … … 426 426 // 4 polarization case 427 427 for ( unsigned int ich = 0 ; ich < nchan ; ich++ ) { 428 mSp(0,ich) = (casa ::Float)(sp[4*ich]) ; // Re(XX)429 mSp(1,ich) = (casa ::Float)(sp[4*ich+4]) ; // Re(YY)430 mSp(2,ich) = (casa ::Float)(sp[4*ich+2]) ; // Re(XY)431 mSp(3,ich) = (casa ::Float)(sp[4*ich+3]) ; // Im(XY)428 mSp(0,ich) = (casacore::Float)(sp[4*ich]) ; // Re(XX) 429 mSp(1,ich) = (casacore::Float)(sp[4*ich+4]) ; // Re(YY) 430 mSp(2,ich) = (casacore::Float)(sp[4*ich+2]) ; // Re(XY) 431 mSp(3,ich) = (casacore::Float)(sp[4*ich+3]) ; // Im(XY) 432 432 } 433 433 } … … 435 435 } 436 436 437 Matrix<casa ::Float> OldASDMFiller::toMatrix( vector< vector<float> > &tsys,437 Matrix<casacore::Float> OldASDMFiller::toMatrix( vector< vector<float> > &tsys, 438 438 unsigned int npol, 439 439 unsigned int nchan ) … … 441 441 unsigned int numRec = tsys.size() ; 442 442 unsigned int numChan = tsys[0].size() ; 443 Matrix<casa ::Float> ret ;443 Matrix<casacore::Float> ret ; 444 444 if ( npol == numRec && nchan == numChan ) { 445 445 ret.resize( npol, nchan ) ; 446 446 for ( unsigned int ip = 0 ; ip < npol ; ip++ ) 447 447 for ( unsigned int ic = 0 ; ic < nchan ; ic++ ) 448 ret( ip, ic ) = (casa ::Float)(tsys[ip][ic]) ;448 ret( ip, ic ) = (casacore::Float)(tsys[ip][ic]) ; 449 449 } 450 450 else if ( npol == numRec && numChan == 1 ) { 451 451 ret.resize( npol, 1 ) ; 452 452 for ( unsigned int ip = 0 ; ip < npol ; ip++ ) 453 ret( ip, 0 ) = (casa ::Float)(tsys[0][0]) ;453 ret( ip, 0 ) = (casacore::Float)(tsys[0][0]) ; 454 454 } 455 455 else if ( numRec == 1 && nchan == numChan ) { … … 457 457 for ( unsigned int ip = 0 ; ip < npol ; ip++ ) 458 458 for ( unsigned int ic = 0 ; ic < nchan ; ic++ ) 459 ret( ip, ic ) = (casa ::Float)(tsys[0][ic]) ;459 ret( ip, ic ) = (casacore::Float)(tsys[0][ic]) ; 460 460 } 461 461 else if ( numRec == 1 && numChan == 1 ) { 462 462 ret.resize( npol, 1 ) ; 463 463 for ( unsigned int ip = 0 ; ip < npol ; ip++ ) 464 ret( ip, 0 ) = (casa ::Float)(tsys[0][0]) ;464 ret( ip, 0 ) = (casacore::Float)(tsys[0][0]) ; 465 465 } 466 466 else if ( numRec == 2 && npol == 4 && numChan == nchan ) { … … 469 469 ret.resize( npol, nchan ) ; 470 470 for ( unsigned int ic = 0 ; ic < nchan ; ic++ ) { 471 casa ::Float tsysxy = (casa::Float)(0.5*(tsys[0][ic]+tsys[1][ic])) ;472 ret( 0, ic ) = (casa ::Float)(tsys[0][ic]) ;473 ret( 1, ic ) = (casa ::Float)(tsys[1][ic]) ;471 casacore::Float tsysxy = (casacore::Float)(0.5*(tsys[0][ic]+tsys[1][ic])) ; 472 ret( 0, ic ) = (casacore::Float)(tsys[0][ic]) ; 473 ret( 1, ic ) = (casacore::Float)(tsys[1][ic]) ; 474 474 ret( 2, ic ) = tsysxy ; 475 475 ret( 3, ic ) = tsysxy ; … … 480 480 // at the moment Tsys[XY] = 0.5*(Tsys[X]+Tsys[Y]) 481 481 ret.resize( npol, 1 ) ; 482 casa ::Float tsysxy = (casa::Float)(0.5*(tsys[0][0]+tsys[1][0])) ;483 ret( 0, 0 ) = (casa ::Float)(tsys[0][0]) ;484 ret( 1, 0 ) = (casa ::Float)(tsys[1][0]) ;482 casacore::Float tsysxy = (casacore::Float)(0.5*(tsys[0][0]+tsys[1][0])) ; 483 ret( 0, 0 ) = (casacore::Float)(tsys[0][0]) ; 484 ret( 1, 0 ) = (casacore::Float)(tsys[1][0]) ; 485 485 ret( 2, 0 ) = tsysxy ; 486 486 ret( 3, 0 ) = tsysxy ; … … 490 490 for ( unsigned int ip = 0 ; ip < npol ; ip++ ) 491 491 for ( unsigned int ic = 0 ; ic < nchan ; ic++ ) 492 ret( ip, ic ) = (casa ::Float)(tsys[0][ic]) ;492 ret( ip, ic ) = (casacore::Float)(tsys[0][ic]) ; 493 493 } 494 494 return ret ; 495 495 } 496 496 497 Vector<casa ::Float> OldASDMFiller::toVector( vector<float> &tau,497 Vector<casacore::Float> OldASDMFiller::toVector( vector<float> &tau, 498 498 unsigned int npol ) 499 499 { 500 500 String funcName = "toVector" ; 501 501 502 Vector<casa ::Float> ret( npol ) ;502 Vector<casacore::Float> ret( npol ) ; 503 503 //logsink_->postLocally( LogMessage("tau0="+String::toString(tau[0]),LogOrigin(className_,funcName,WHERE)) ) ; 504 504 if ( npol == 4 ) { 505 ret[0] = (casa ::Float)tau[0] ;506 ret[1] = (casa ::Float)tau[1] ;505 ret[0] = (casacore::Float)tau[0] ; 506 ret[1] = (casacore::Float)tau[1] ; 507 507 ret[2] = 0.5 * ( ret[0] + ret[1] ) ; 508 508 ret[3] = ret[2] ; … … 510 510 else if ( npol == tau.size() ) { 511 511 for ( unsigned int ipol = 0 ; ipol < npol ; ipol++ ) 512 ret[ipol] = (casa ::Float)tau[ipol] ;512 ret[ipol] = (casacore::Float)tau[ipol] ; 513 513 } 514 514 else { 515 515 // I don't know how to handle... 516 516 for ( unsigned int ipol = 0 ; ipol < npol ; ipol++ ) 517 ret[ipol] = (casa ::Float)tau[0] ;517 ret[ipol] = (casacore::Float)tau[0] ; 518 518 } 519 519 //logsink_->postLocally( LogMessage("tau="+String::toString(ret),LogOrigin(className_,funcName,WHERE)) ) ; … … 521 521 } 522 522 523 String OldASDMFiller::toTcalTime( casa ::Double mjd )523 String OldASDMFiller::toTcalTime( casacore::Double mjd ) 524 524 { 525 525 return MVTime( mjd ).string( MVTime::YMD ) ; 526 526 } 527 527 528 void OldASDMFiller::toJ2000( Vector<casa ::Double> &dir,528 void OldASDMFiller::toJ2000( Vector<casacore::Double> &dir, 529 529 double az, 530 530 double el, 531 casa ::Double mjd,532 Vector<casa ::Double> antpos )531 casacore::Double mjd, 532 Vector<casacore::Double> antpos ) 533 533 { 534 534 String funcName = "toJ2000" ; 535 535 536 Vector<casa ::Double> azel( 2 ) ;536 Vector<casacore::Double> azel( 2 ) ; 537 537 azel[0] = az ; 538 538 azel[1] = el ; … … 553 553 } 554 554 555 Vector<casa ::Double> OldASDMFiller::toJ2000( Vector<casa::Double> dir,555 Vector<casacore::Double> OldASDMFiller::toJ2000( Vector<casacore::Double> dir, 556 556 String dirref, 557 casa ::Double mjd,558 Vector<casa ::Double> antpos )559 { 560 Vector<casa ::Double> newd( dir ) ;557 casacore::Double mjd, 558 Vector<casacore::Double> antpos ) 559 { 560 Vector<casacore::Double> newd( dir ) ; 561 561 if ( dirref != "J2000" ) { 562 562 MEpoch me( Quantity( mjd, "d" ), MEpoch::UTC ) ; … … 593 593 } 594 594 595 casa ::Double OldASDMFiller::toLSRK( casa::Double freq,595 casacore::Double OldASDMFiller::toLSRK( casacore::Double freq, 596 596 String freqref, 597 casa ::Double utc,598 Vector<casa ::Double> antpos,599 Vector<casa ::Double> dir,597 casacore::Double utc, 598 Vector<casacore::Double> antpos, 599 Vector<casacore::Double> dir, 600 600 String dirref ) 601 601 { … … 603 603 604 604 //logsink_->postLocally( LogMessage("freqref = "+freqref,LogOrigin(className_,funcName,WHERE)) ) ; 605 casa ::Double newf = freq ;605 casacore::Double newf = freq ; 606 606 if ( freqref != "LSRK" ) { 607 MEpoch me( Quantum<casa ::Double>( utc, Unit("d") ), MEpoch::UTC ) ;608 Vector< Quantum<casa ::Double> > antposQ( 3 ) ;607 MEpoch me( Quantum<casacore::Double>( utc, Unit("d") ), MEpoch::UTC ) ; 608 Vector< Quantum<casacore::Double> > antposQ( 3 ) ; 609 609 for ( int i = 0 ; i < 3 ; i++ ) 610 antposQ[i] = Quantum<casa ::Double>( antpos[i], Unit("m") ) ;610 antposQ[i] = Quantum<casacore::Double>( antpos[i], Unit("m") ) ; 611 611 MPosition mp( antposQ, MPosition::ITRF ) ; 612 612 MDirection::Types dirtype ; … … 614 614 if ( !b ) 615 615 dirtype = MDirection::J2000 ; 616 MDirection md( Quantum<casa ::Double>( dir[0], Unit("rad") ),617 Quantum<casa ::Double>( dir[1], Unit("rad") ),616 MDirection md( Quantum<casacore::Double>( dir[0], Unit("rad") ), 617 Quantum<casacore::Double>( dir[1], Unit("rad") ), 618 618 dirtype ) ; 619 619 MeasFrame mf( me, mp, md ) ; … … 624 624 MFrequency::Convert tolsr( freqtype, 625 625 MFrequency::Ref( MFrequency::LSRK, mf ) ) ; 626 newf = tolsr( Quantum<casa ::Double>( freq, Unit("Hz") ) ).get( "Hz" ).getValue() ;626 newf = tolsr( Quantum<casacore::Double>( freq, Unit("Hz") ) ).get( "Hz" ).getValue() ; 627 627 //logsink_->postLocally( LogMessage("freq = "+String::toString(freq)+", newf = "+String::toString(newf),LogOrigin(className_,funcName,WHERE)) ) ; 628 628 } -
trunk/external-alma/oldasdm2ASAP/OldASDMFiller.h
r2273 r3106 13 13 public: 14 14 // constructor and destructor 15 OldASDMFiller( casa ::CountedPtr<asap::Scantable> stable ) ;15 OldASDMFiller( casacore::CountedPtr<asap::Scantable> stable ) ; 16 16 ~OldASDMFiller() ; 17 17 18 18 // open data 19 bool open( const std::string &filename, const casa ::Record &rec ) ;19 bool open( const std::string &filename, const casacore::Record &rec ) ; 20 20 21 21 // fill data … … 26 26 27 27 // get reader object 28 casa ::CountedPtr<OldASDMReader> getReader() { return reader_ ; } ;28 casacore::CountedPtr<OldASDMReader> getReader() { return reader_ ; } ; 29 29 30 30 // set logger 31 void setLogger( casa ::CountedPtr<casa::LogSinkInterface> &logsink ) ;31 void setLogger( casacore::CountedPtr<casacore::LogSinkInterface> &logsink ) ; 32 32 33 33 private: … … 36 36 37 37 // get IF key 38 casa ::String getIFKey( casa::uInt ifno ) ;38 casacore::String getIFKey( casacore::uInt ifno ) ; 39 39 40 40 // get FREQUENCIES attributes from ifrec_ 41 void getFrequencyRec( casa ::String key,41 void getFrequencyRec( casacore::String key, 42 42 double &refpix, 43 43 double &refval, … … 45 45 46 46 // set FREQUENCIES attributes to ifrec_ 47 void setFrequencyRec( casa ::String key,47 void setFrequencyRec( casacore::String key, 48 48 double refpix, 49 49 double refval, … … 51 51 52 52 // reshape float array spectra to Matrix<Float> 53 casa ::Matrix<casa::Float> toMatrix( float *sp,53 casacore::Matrix<casacore::Float> toMatrix( float *sp, 54 54 unsigned int npol, 55 55 unsigned int nchan ) ; 56 56 57 57 // reshape 2d vector Tsys to Matrix<Float> 58 casa ::Matrix<casa::Float> toMatrix( std::vector< std::vector<float> > &tsys,58 casacore::Matrix<casacore::Float> toMatrix( std::vector< std::vector<float> > &tsys, 59 59 unsigned int npol, 60 60 unsigned int nchan ) ; 61 61 62 62 // reshape vector<float> to Vector<Float> with appropriate length 63 casa ::Vector<casa::Float> toVector( std::vector<float> &tau,63 casacore::Vector<casacore::Float> toVector( std::vector<float> &tau, 64 64 unsigned int npol ) ; 65 65 66 66 // create TCAL time string from MJD 67 casa ::String toTcalTime( casa::Double mjd ) ;67 casacore::String toTcalTime( casacore::Double mjd ) ; 68 68 69 69 // AZEL to J2000 70 void toJ2000( casa ::Vector<casa::Double> &dir,70 void toJ2000( casacore::Vector<casacore::Double> &dir, 71 71 double az, 72 72 double el, 73 casa ::Double mjd,74 casa ::Vector<casa::Double> antpos ) ;73 casacore::Double mjd, 74 casacore::Vector<casacore::Double> antpos ) ; 75 75 76 76 // to J2000 77 casa ::Vector<casa::Double> toJ2000( casa::Vector<casa::Double> dir,78 casa ::String dirref,79 casa ::Double mjd,80 casa ::Vector<casa::Double> antpos ) ;77 casacore::Vector<casacore::Double> toJ2000( casacore::Vector<casacore::Double> dir, 78 casacore::String dirref, 79 casacore::Double mjd, 80 casacore::Vector<casacore::Double> antpos ) ; 81 81 82 82 // get frequency frame enum value from string 83 casa ::MFrequency::Types toFrameType( std::string &s ) ;83 casacore::MFrequency::Types toFrameType( std::string &s ) ; 84 84 85 85 // to LSRK 86 86 // utc must be UTC time in "d" (day) 87 87 // antpos must be ITRF value in "m" 88 casa ::Double toLSRK( casa::Double freq,89 casa ::String freqref,90 casa ::Double utc,91 casa ::Vector<casa::Double> antpos,92 casa ::Vector<casa::Double> dir,93 casa ::String dirref ) ;88 casacore::Double toLSRK( casacore::Double freq, 89 casacore::String freqref, 90 casacore::Double utc, 91 casacore::Vector<casacore::Double> antpos, 92 casacore::Vector<casacore::Double> dir, 93 casacore::String dirref ) ; 94 94 95 casa ::CountedPtr<OldASDMReader> reader_ ;96 casa ::Int antennaId_ ;97 casa ::String antennaName_ ;95 casacore::CountedPtr<OldASDMReader> reader_ ; 96 casacore::Int antennaId_ ; 97 casacore::String antennaName_ ; 98 98 99 casa ::Record ifrec_ ;99 casacore::Record ifrec_ ; 100 100 101 casa ::CountedPtr<casa::LogSinkInterface> logsink_ ;101 casacore::CountedPtr<casacore::LogSinkInterface> logsink_ ; 102 102 103 casa ::String className_ ;103 casacore::String className_ ; 104 104 105 105 } ; -
trunk/external-alma/oldasdm2ASAP/OldASDMReader.cc
r2355 r3106 56 56 } 57 57 58 bool OldASDMReader::open( const string &filename, const casa ::Record &rec )59 { 60 casa ::String funcName = "open" ;58 bool OldASDMReader::open( const string &filename, const casacore::Record &rec ) 59 { 60 casacore::String funcName = "open" ; 61 61 62 62 // return value … … 71 71 // parsing ASDM options 72 72 if ( rec.isDefined( "asdm" ) ) { 73 casa ::Record asdmrec = rec.asRecord( "asdm" ) ;73 casacore::Record asdmrec = rec.asRecord( "asdm" ) ; 74 74 75 75 // antenna 76 76 if ( asdmrec.isDefined( "antenna" ) ) { 77 if ( asdmrec.type( asdmrec.fieldNumber( "antenna" ) ) == casa ::TpInt ) {77 if ( asdmrec.type( asdmrec.fieldNumber( "antenna" ) ) == casacore::TpInt ) { 78 78 antennaId_ = asdmrec.asInt( "antenna" ) ; 79 79 } … … 182 182 vector<AntennaRow *> rows = atab.get() ; 183 183 int idx = -1 ; 184 for ( casa ::uInt irow = 0 ; irow < rows.size() ; irow++ ) {185 if ( casa ::String(rows[irow]->getName()) == antennaName_ ) {184 for ( casacore::uInt irow = 0 ; irow < rows.size() ; irow++ ) { 185 if ( casacore::String(rows[irow]->getName()) == antennaName_ ) { 186 186 idx = rows[irow]->getAntennaId().getTagValue() ; 187 187 break ; … … 190 190 if ( idx == -1 ) { 191 191 close() ; 192 throw (casa ::AipsError( antennaName_ + " not found." )) ;192 throw (casacore::AipsError( antennaName_ + " not found." )) ; 193 193 } 194 194 else { … … 203 203 if ( antennaRow == 0 ) { 204 204 close() ; 205 throw (casa ::AipsError( "AntennaId " + casa::String::toString(antennaId_) + " is invalid." ) ) ;205 throw (casacore::AipsError( "AntennaId " + casacore::String::toString(antennaId_) + " is invalid." ) ) ; 206 206 } 207 207 } … … 210 210 // set antenna name 211 211 if ( antennaName_.size() == 0 ) { 212 antennaName_ = casa ::String( antennaRow->getName() ) ;212 antennaName_ = casacore::String( antennaRow->getName() ) ; 213 213 } 214 214 … … 217 217 218 218 // station name 219 stationName_ = casa ::String( stationRow->getName() ) ;219 stationName_ = casacore::String( stationRow->getName() ) ; 220 220 221 221 // antenna position 222 222 antennaPosition_.resize( 3 ) ; 223 223 vector<Length> antpos = stationRow->getPosition() ; 224 for ( casa ::uInt i = 0 ; i < 3 ; i++ )225 antennaPosition_[i] = Quantity( casa ::Double( antpos[i].get() ), Unit( "m" ) ) ;224 for ( casacore::uInt i = 0 ; i < 3 ; i++ ) 225 antennaPosition_[i] = Quantity( casacore::Double( antpos[i].get() ), Unit( "m" ) ) ; 226 226 227 227 // create SDMBinData object … … 229 229 230 230 // get Main rows 231 //mainRow_ = casa ::Vector<MainRow *>(asdm_->getMain().get()) ;231 //mainRow_ = casacore::Vector<MainRow *>(asdm_->getMain().get()) ; 232 232 233 233 // set up IFNO … … 262 262 } 263 263 264 void OldASDMReader::fillHeader( casa ::Int &nchan,265 casa ::Int &npol,266 casa ::Int &nif,267 casa ::Int &nbeam,268 casa ::String &observer,269 casa ::String &project,270 casa ::String &obstype,271 casa ::String &antennaname,272 casa ::Vector<casa::Double> &antennaposition,273 casa ::Float &equinox,274 casa ::String &freqref,275 casa ::Double &reffreq,276 casa ::Double &bandwidth,277 casa ::Double &utc,278 casa ::String &fluxunit,279 casa ::String &epoch,280 casa ::String &poltype )281 { 282 casa ::String funcName = "fillHeader" ;264 void OldASDMReader::fillHeader( casacore::Int &nchan, 265 casacore::Int &npol, 266 casacore::Int &nif, 267 casacore::Int &nbeam, 268 casacore::String &observer, 269 casacore::String &project, 270 casacore::String &obstype, 271 casacore::String &antennaname, 272 casacore::Vector<casacore::Double> &antennaposition, 273 casacore::Float &equinox, 274 casacore::String &freqref, 275 casacore::Double &reffreq, 276 casacore::Double &bandwidth, 277 casacore::Double &utc, 278 casacore::String &fluxunit, 279 casacore::String &epoch, 280 casacore::String &poltype ) 281 { 282 casacore::String funcName = "fillHeader" ; 283 283 284 284 ExecBlockTable &ebtab = asdm_->getExecBlock() ; 285 285 // at the moment take first row of ExecBlock table 286 286 ExecBlockRow *ebrow = ebtab.get()[0] ; 287 casa ::String telescopeName( ebrow->getTelescopeName() ) ;288 //casa ::String stationName( stationRow_p->getName() ) ;287 casacore::String telescopeName( ebrow->getTelescopeName() ) ; 288 //casacore::String stationName( stationRow_p->getName() ) ; 289 289 290 290 // antennaname … … 295 295 // antennaposition 296 296 antennaposition.resize( 3 ) ; 297 for ( casa ::uInt i = 0 ; i < 3 ; i++ )297 for ( casacore::uInt i = 0 ; i < 3 ; i++ ) 298 298 antennaposition[i] = antennaPosition_[i].getValue( Unit("m") ) ; 299 299 … … 307 307 // utc 308 308 // start time of the project 309 utc = casa ::Double( ebrow->getStartTime().getMJD() ) ;309 utc = casacore::Double( ebrow->getStartTime().getMJD() ) ; 310 310 311 311 … … 326 326 refidx = irow ; 327 327 } 328 nchan = casa ::Int( *max_element( nchans.begin(), nchans.end() ) ) ;328 nchan = casacore::Int( *max_element( nchans.begin(), nchans.end() ) ) ; 329 329 330 330 //logsink_->postLocally( LogMessage("refidx = "+String::toString(refidx),LogOrigin(className_,funcName,WHERE)) ) ; … … 337 337 } 338 338 } 339 bandwidth = casa ::Double( *max_element( bws.begin(), bws.end() ) ) ;339 bandwidth = casacore::Double( *max_element( bws.begin(), bws.end() ) ) ; 340 340 341 341 // reffreq 342 reffreq = casa ::Double( spwrows[refidx]->getRefFreq().get() ) ;342 reffreq = casacore::Double( spwrows[refidx]->getRefFreq().get() ) ; 343 343 344 344 // freqref … … 382 382 383 383 // npol 384 npol = casa ::Int( *max_element( npols.begin(), npols.end() ) ) ;384 npol = casacore::Int( *max_element( npols.begin(), npols.end() ) ) ; 385 385 386 386 // poltype … … 421 421 422 422 // nbeam 423 nbeam = casa ::Int( *max_element( nbeams.begin(), nbeams.end() ) ) ;423 nbeam = casacore::Int( *max_element( nbeams.begin(), nbeams.end() ) ) ; 424 424 425 425 // fluxunit … … 441 441 obstype = "" ; 442 442 for ( unsigned int imode = 0 ; imode < obsmode.size() ; imode++ ) { 443 obstype += casa ::String(obsmode[imode]) ;443 obstype += casacore::String(obsmode[imode]) ; 444 444 if ( imode != obsmode.size()-1 ) 445 445 obstype += "#" ; … … 449 449 void OldASDMReader::selectConfigDescription() 450 450 { 451 casa ::String funcName = "selectConfigDescription" ;451 casacore::String funcName = "selectConfigDescription" ; 452 452 453 453 vector<ConfigDescriptionRow *> cdrows = asdm_->getConfigDescription().get() ; … … 462 462 configDescIdList_.resize( cdidTags.size() ) ; 463 463 for ( unsigned int i = 0 ; i < cdidTags.size() ; i++ ) { 464 configDescIdList_[i] = casa ::uInt( cdidTags[i].getTagValue() ) ;464 configDescIdList_[i] = casacore::uInt( cdidTags[i].getTagValue() ) ; 465 465 } 466 466 } … … 472 472 Tag atag( antennaId_, TagType::Antenna ) ; 473 473 for ( unsigned int irow = 0 ; irow < frows.size() ; irow++ ) { 474 casa ::uInt feedId = (casa::uInt)(frows[irow]->getFeedId() ) ;475 if ( casa ::anyEQ( feedIdList_, feedId ) )474 casacore::uInt feedId = (casacore::uInt)(frows[irow]->getFeedId() ) ; 475 if ( casacore::anyEQ( feedIdList_, feedId ) ) 476 476 continue ; 477 477 if ( frows[irow]->getAntennaId() == atag ) { … … 483 483 } 484 484 485 casa ::Vector<casa::uInt> OldASDMReader::getFieldIdList()486 { 487 casa ::String funcName = "getFieldIdList" ;485 casacore::Vector<casacore::uInt> OldASDMReader::getFieldIdList() 486 { 487 casacore::String funcName = "getFieldIdList" ; 488 488 489 489 vector<FieldRow *> frows = asdm_->getField().get() ; … … 497 497 } 498 498 499 casa ::uInt OldASDMReader::getNumMainRow()500 { 501 casa ::uInt nrow = casa::uInt( mainRow_.size() ) ;499 casacore::uInt OldASDMReader::getNumMainRow() 500 { 501 casacore::uInt nrow = casacore::uInt( mainRow_.size() ) ; 502 502 503 503 return nrow ; … … 530 530 } 531 531 532 casa ::Bool OldASDMReader::setMainRow( casa::uInt irow )533 { 534 casa ::Bool status = true ;532 casacore::Bool OldASDMReader::setMainRow( casacore::uInt irow ) 533 { 534 casacore::Bool status = true ; 535 535 row_ = irow ; 536 536 execBlockTag_ = mainRow_[row_]->getExecBlockId() ; … … 540 540 status = false ; 541 541 else { 542 status = (casa ::Bool)(sdmBin_->acceptMainRow( mainRow_[row_] )) ;542 status = (casacore::Bool)(sdmBin_->acceptMainRow( mainRow_[row_] )) ; 543 543 } 544 544 return status ; 545 545 } 546 546 547 casa ::Bool OldASDMReader::setMainRow( casa::uInt configDescId, casa::uInt fieldId )547 casacore::Bool OldASDMReader::setMainRow( casacore::uInt configDescId, casacore::uInt fieldId ) 548 548 { 549 549 clearMainRow() ; … … 551 551 Tag configDescTag( (unsigned int)configDescId, TagType::ConfigDescription ) ; 552 552 Tag fieldTag( (unsigned int)fieldId, TagType::Field ) ; 553 mainRow_ = casa ::Vector<MainRow *>( *(asdm_->getMain().getByContext( configDescTag, fieldTag ) ) ) ;553 mainRow_ = casacore::Vector<MainRow *>( *(asdm_->getMain().getByContext( configDescTag, fieldTag ) ) ) ; 554 554 555 555 return true ; … … 563 563 void OldASDMReader::setupIFNO() 564 564 { 565 casa ::String funcName = "setupIFNO" ;565 casacore::String funcName = "setupIFNO" ; 566 566 567 567 vector<SpectralWindowRow *> spwrows = asdm_->getSpectralWindow().get() ; 568 568 unsigned int nrow = spwrows.size() ; 569 569 ifno_.clear() ; 570 casa ::uInt idx = 0 ;571 casa ::uInt wvridx = 0 ;570 casacore::uInt idx = 0 ; 571 casacore::uInt wvridx = 0 ; 572 572 for ( unsigned int irow = 0 ; irow < nrow ; irow++ ) { 573 casa ::uInt index ;573 casacore::uInt index ; 574 574 if ( isWVR( spwrows[irow] ) ) { 575 575 //logsink_->postLocally( LogMessage(spwrows[irow]->getSpectralWindowId().toString()+" is WVR",LogOrigin(className_,funcName,WHERE)) ) ; … … 579 579 index = ++idx ; 580 580 } 581 ifno_.insert( pair<Tag,casa ::uInt>(spwrows[irow]->getSpectralWindowId(),index) ) ;581 ifno_.insert( pair<Tag,casacore::uInt>(spwrows[irow]->getSpectralWindowId(),index) ) ; 582 582 //logsink_->postLocally( LogMessage(spwrows[irow]->getSpectralWindowId().toString()+": IFNO="+String::toString(index),LogOrigin(className_,funcName,WHERE)) ) ; 583 583 } … … 594 594 } 595 595 596 casa ::Bool OldASDMReader::setData()597 { 598 casa ::String funcName = "setData" ;596 casacore::Bool OldASDMReader::setData() 597 { 598 casacore::String funcName = "setData" ; 599 599 600 600 //logsink_->postLocally( LogMessage("try to retrieve binary data",LogOrigin(className_,funcName,WHERE)) ) ; … … 671 671 } 672 672 673 casa ::uInt OldASDMReader::getIFNo( unsigned int idx )673 casacore::uInt OldASDMReader::getIFNo( unsigned int idx ) 674 674 { 675 675 prepareData( idx ) ; … … 677 677 } 678 678 679 casa ::uInt OldASDMReader::getIFNo()680 { 681 map<Tag,casa ::uInt>::iterator iter = ifno_.find( specWinTag_ ) ;679 casacore::uInt OldASDMReader::getIFNo() 680 { 681 map<Tag,casacore::uInt>::iterator iter = ifno_.find( specWinTag_ ) ; 682 682 if ( iter != ifno_.end() ) 683 683 return iter->second ; … … 713 713 string &freqref ) 714 714 { 715 casa ::String funcName = "getFrequency" ;715 casacore::String funcName = "getFrequency" ; 716 716 717 717 int nchan = specWinRow_p->getNumChan() ; … … 730 730 } 731 731 else { 732 throw (casa ::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ;732 throw (casacore::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ; 733 733 } 734 734 } … … 745 745 } 746 746 else { 747 throw (casa ::AipsError( "Either chanWidthArray or chanWidth must exist." )) ;747 throw (casacore::AipsError( "Either chanWidthArray or chanWidth must exist." )) ; 748 748 } 749 749 if ( specWinRow_p->isChanFreqStepExists() ) { … … 757 757 } 758 758 else { 759 throw (casa ::AipsError( "Either chanFreqArray or chanFreqStep must exist." )) ;759 throw (casacore::AipsError( "Either chanFreqArray or chanFreqStep must exist." )) ; 760 760 } 761 761 if ( specWinRow_p->isChanFreqStartExists() ) { … … 766 766 } 767 767 else { 768 throw (casa ::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ;768 throw (casacore::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ; 769 769 } 770 770 } … … 781 781 } 782 782 else { 783 throw (casa ::AipsError( "Either chanWidthArray or chanWidth must exist." )) ;783 throw (casacore::AipsError( "Either chanWidthArray or chanWidth must exist." )) ; 784 784 } 785 785 if ( specWinRow_p->isChanFreqStepExists() ) { … … 793 793 } 794 794 else { 795 throw (casa ::AipsError( "Either chanFreqArray or chanFreqStep must exist." )) ;795 throw (casacore::AipsError( "Either chanFreqArray or chanFreqStep must exist." )) ; 796 796 } 797 797 if ( specWinRow_p->isChanFreqStartExists() ) { … … 803 803 } 804 804 else { 805 throw (casa ::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ;805 throw (casacore::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ; 806 806 } 807 807 } … … 1237 1237 for ( unsigned int irow = 0 ; irow < nrow ; irow++ ) { 1238 1238 CalAtmosphereRow *atmrow = atmrows[irow] ; 1239 if ( casa ::String(atmrow->getAntennaName()) != antennaName_1239 if ( casacore::String(atmrow->getAntennaName()) != antennaName_ 1240 1240 //|| atmrow->getReceiverBand() != rb 1241 1241 //|| atmrow->getBasebandName() != bbname … … 1279 1279 float &windaz ) 1280 1280 { 1281 casa ::String funcName = "getWeatherInfo" ;1281 casacore::String funcName = "getWeatherInfo" ; 1282 1282 1283 1283 temperature = 0.0 ; … … 1668 1668 double &el, 1669 1669 double &mjd, 1670 casa ::Vector<casa::Quantity> &antpos )1671 // casa ::Vector<casa::Double> antpos )1670 casacore::Vector<casacore::Quantity> &antpos ) 1671 // casacore::Vector<casacore::Double> antpos ) 1672 1672 { 1673 1673 String funcName = "toJ2000" ; … … 1681 1681 1682 1682 vector<double> OldASDMReader::toJ2000( vector<double> &dir, 1683 casa ::String &dirref,1683 casacore::String &dirref, 1684 1684 double &mjd, 1685 casa ::Vector<casa::Quantity> &antpos )1686 // casa ::Vector<casa::Double> antpos )1687 { 1688 casa ::String funcName = "toJ2000" ;1685 casacore::Vector<casacore::Quantity> &antpos ) 1686 // casacore::Vector<casacore::Double> antpos ) 1687 { 1688 casacore::String funcName = "toJ2000" ; 1689 1689 1690 1690 vector<double> newd( dir ) ; 1691 1691 if ( dirref != "J2000" ) { 1692 casa ::MEpoch me( casa::Quantity( (casa::Double)mjd, "d" ), casa::MEpoch::UTC ) ;1693 casa ::MPosition mp( casa::MVPosition( antpos ),1694 casa ::MPosition::ITRF ) ;1692 casacore::MEpoch me( casacore::Quantity( (casacore::Double)mjd, "d" ), casacore::MEpoch::UTC ) ; 1693 casacore::MPosition mp( casacore::MVPosition( antpos ), 1694 casacore::MPosition::ITRF ) ; 1695 1695 //ostringstream oss ; 1696 1696 //mp.print( oss ) ; 1697 1697 //logsink_->postLocally( LogMessage(oss.str(),LogOrigin(className_,funcName,WHERE)) ) ; 1698 1698 1699 casa ::MeasFrame mf( me, mp ) ;1700 casa ::MDirection::Types dirtype ;1701 casa ::Bool b = casa::MDirection::getType( dirtype, dirref ) ;1699 casacore::MeasFrame mf( me, mp ) ; 1700 casacore::MDirection::Types dirtype ; 1701 casacore::Bool b = casacore::MDirection::getType( dirtype, dirref ) ; 1702 1702 if ( b ) { 1703 casa ::MDirection::Convert toj2000( dirtype,1704 casa ::MDirection::Ref( casa::MDirection::J2000, mf ) ) ;1705 casa ::Vector<casa::Double> cdir = toj2000( dir ).getAngle( "rad" ).getValue() ;1703 casacore::MDirection::Convert toj2000( dirtype, 1704 casacore::MDirection::Ref( casacore::MDirection::J2000, mf ) ) ; 1705 casacore::Vector<casacore::Double> cdir = toj2000( dir ).getAngle( "rad" ).getValue() ; 1706 1706 //logsink_->postLocally( LogMessage("cdir = "+String::toString(cdir),LogOrigin(className_,funcName,WHERE)) ) ; 1707 1707 newd[0] = (double)(cdir[0]) ; … … 1719 1719 string OldASDMReader::getFrame() 1720 1720 { 1721 casa ::String funcName = "getFrame" ;1721 casacore::String funcName = "getFrame" ; 1722 1722 1723 1723 // default is TOPO … … 1748 1748 int OldASDMReader::getNumIFs() 1749 1749 { 1750 casa ::String funcName = "getNumIFs" ;1750 casacore::String funcName = "getNumIFs" ; 1751 1751 1752 1752 int nif = 0 ; -
trunk/external-alma/oldasdm2ASAP/OldASDMReader.h
r2301 r3106 31 31 * @return boolean status (true or false) 32 32 **/ 33 bool open( const std::string &filename, const casa ::Record &rec ) ;33 bool open( const std::string &filename, const casacore::Record &rec ) ; 34 34 35 35 /** … … 46 46 * get antenna id 47 47 **/ 48 casa ::Int getAntennaId() { return antennaId_ ; } ;48 casacore::Int getAntennaId() { return antennaId_ ; } ; 49 49 50 50 /** 51 51 * get antenna name 52 52 **/ 53 casa ::String getAntennaName() { return antennaName_ ; } ;53 casacore::String getAntennaName() { return antennaName_ ; } ; 54 54 55 55 /** … … 74 74 * @param poltype polarization type 75 75 **/ 76 void fillHeader( casa ::Int &nchan,77 casa ::Int &npol,78 casa ::Int &nif,79 casa ::Int &nbeam,80 casa ::String &observer,81 casa ::String &project,82 casa ::String &obstype,83 casa ::String &antennaname,84 casa ::Vector<casa::Double> &antennaposition,85 casa ::Float &equinox,86 casa ::String &freqref,87 casa ::Double &reffreq,88 casa ::Double &bandwidth,89 casa ::Double &utc,90 casa ::String &fluxunit,91 casa ::String &epoch,92 casa ::String &poltype ) ;76 void fillHeader( casacore::Int &nchan, 77 casacore::Int &npol, 78 casacore::Int &nif, 79 casacore::Int &nbeam, 80 casacore::String &observer, 81 casacore::String &project, 82 casacore::String &obstype, 83 casacore::String &antennaname, 84 casacore::Vector<casacore::Double> &antennaposition, 85 casacore::Float &equinox, 86 casacore::String &freqref, 87 casacore::Double &reffreq, 88 casacore::Double &bandwidth, 89 casacore::Double &utc, 90 casacore::String &fluxunit, 91 casacore::String &epoch, 92 casacore::String &poltype ) ; 93 93 94 94 /** … … 100 100 * @return list of valid configDescriptionId 101 101 **/ 102 casa ::Vector<casa::uInt> getConfigDescriptionIdList() { return configDescIdList_ ; } ;102 casacore::Vector<casacore::uInt> getConfigDescriptionIdList() { return configDescIdList_ ; } ; 103 103 104 104 /** 105 105 * get list of fieldId 106 106 * 107 * @return list of fieldId as casa ::uInt108 **/ 109 casa ::Vector<casa::uInt> getFieldIdList() ;107 * @return list of fieldId as casacore::uInt 108 **/ 109 casacore::Vector<casacore::uInt> getFieldIdList() ; 110 110 111 111 /** … … 114 114 * @return number of rows in Main table 115 115 **/ 116 casa ::uInt getNumMainRow() ;116 casacore::uInt getNumMainRow() ; 117 117 118 118 /** … … 128 128 * @param fieldId 129 129 **/ 130 casa ::Bool setMainRow( casa::uInt configDescId, casa::uInt fieldId ) ;130 casacore::Bool setMainRow( casacore::uInt configDescId, casacore::uInt fieldId ) ; 131 131 132 132 /** … … 136 136 * @return boolean indicating the row is valid or not 137 137 **/ 138 casa ::Bool setMainRow( casa::uInt irow ) ;138 casacore::Bool setMainRow( casacore::uInt irow ) ; 139 139 140 140 /** … … 174 174 * @return IF number 175 175 **/ 176 casa ::uInt getIFNo( unsigned int idx ) ;177 casa ::uInt getIFNo() ;176 casacore::uInt getIFNo( unsigned int idx ) ; 177 casacore::uInt getIFNo() ; 178 178 179 179 /** … … 380 380 * @return boolean status 381 381 **/ 382 casa ::Bool setData() ;382 casacore::Bool setData() ; 383 383 384 384 /** … … 401 401 * @param logger (LogSinkInterface) 402 402 **/ 403 void setLogger( casa ::CountedPtr<casa::LogSinkInterface> &logsink ) ;403 void setLogger( casacore::CountedPtr<casacore::LogSinkInterface> &logsink ) ; 404 404 405 405 … … 490 490 double &el, 491 491 double &mjd, 492 casa ::Vector<casa::Quantity> &antpos ) ;492 casacore::Vector<casacore::Quantity> &antpos ) ; 493 493 494 494 /** … … 502 502 **/ 503 503 std::vector<double> toJ2000( std::vector<double> &dir, 504 casa ::String &dirref,504 casacore::String &dirref, 505 505 double &mjd, 506 casa ::Vector<casa::Quantity> &antpos ) ;506 casacore::Vector<casacore::Quantity> &antpos ) ; 507 507 /** 508 508 * get nIF … … 569 569 const sdmbin::VMSData *vmsData_ ; 570 570 571 casa ::Int antennaId_ ; // antenna id572 casa ::String antennaName_ ; // antenna name573 casa ::String stationName_ ; // station name574 casa ::Vector<casa::Quantity> antennaPosition_ ; // antenna position575 casa ::Vector<casa::uInt> configDescIdList_ ; // list of valid configDescriptionId576 casa ::Vector<casa::uInt> feedIdList_ ; // list of valid feedId577 casa ::Vector<casa::uInt> fieldIdList_ ; // list of fieldId578 casa ::Int row_ ; // current row index579 map<asdm::Tag,casa ::uInt> ifno_ ; // list of IFNO for each SpectralWindow rows571 casacore::Int antennaId_ ; // antenna id 572 casacore::String antennaName_ ; // antenna name 573 casacore::String stationName_ ; // station name 574 casacore::Vector<casacore::Quantity> antennaPosition_ ; // antenna position 575 casacore::Vector<casacore::uInt> configDescIdList_ ; // list of valid configDescriptionId 576 casacore::Vector<casacore::uInt> feedIdList_ ; // list of valid feedId 577 casacore::Vector<casacore::uInt> fieldIdList_ ; // list of fieldId 578 casacore::Int row_ ; // current row index 579 map<asdm::Tag,casacore::uInt> ifno_ ; // list of IFNO for each SpectralWindow rows 580 580 unsigned int numData_ ; // number of valid data in vmsData_ where v_antennaId equals antennaId_ 581 581 vector<unsigned int> dataIdList_ ; // list of valid data indexes in vmsData_ … … 587 587 EnumSet<TimeSamplingMod::TimeSampling> timeSampling_ ; // time sampling 588 588 EnumSet<SpectralResolutionTypeMod::SpectralResolutionType> resolutionType_ ; // spectral resolution type 589 casa ::CountedPtr<casa::LogSinkInterface> logsink_ ; // Logger590 casa ::String className_ ;589 casacore::CountedPtr<casacore::LogSinkInterface> logsink_ ; // Logger 590 casacore::String className_ ; 591 591 unsigned int dataIndex_ ; 592 592 593 593 // Tables/Rows for ASDM 594 casa ::Vector<asdm::MainRow *> mainRow_ ; // list of pointers to all Main rows594 casacore::Vector<asdm::MainRow *> mainRow_ ; // list of pointers to all Main rows 595 595 //asdm::AntennaRow *antennaRow_p ; // pointer to target Antenna row 596 596 //asdm::StationRow *stationRow_p ; // pointer to target Station row that target antenna is located
Note:
See TracChangeset
for help on using the changeset viewer.