Changeset 3106 for trunk/external-alma/asdm2ASAP
- Timestamp:
- 10/04/16 18:20:50 (8 years ago)
- Location:
- trunk/external-alma/asdm2ASAP
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/asdm2ASAP/ASDMFiller.cc
r2869 r3106 90 90 //logsink_->postLocally( LogMessage("sFreqFrame = "+sFreqFrame,LogOrigin(className_,funcName,WHERE)) ) ; 91 91 92 Vector<casa ::Double> antpos = table_->getHeader().antennaposition ;92 Vector<casacore::Double> antpos = table_->getHeader().antennaposition ; 93 93 94 94 // data selection … … 194 194 195 195 // fill MOLECULE_ID and add MOLECULES row if necessary 196 Vector<casa ::Double> restFreqs( rf.size() ) ;196 Vector<casacore::Double> restFreqs( rf.size() ) ; 197 197 for ( uInt i = 0 ; i < rf.size() ; i++ ) 198 restFreqs[i] = (casa ::Double)(rf[i]) ;198 restFreqs[i] = (casacore::Double)(rf[i]) ; 199 199 setMolecule( restFreqs ) ; 200 200 201 201 // time and interval 202 casa ::Double mjd = (casa::Double)(reader_->getTime()) ;203 casa ::Double interval = (casa::Double)(reader_->getInterval()) ;202 casacore::Double mjd = (casacore::Double)(reader_->getTime()) ; 203 casacore::Double interval = (casacore::Double)(reader_->getInterval()) ; 204 204 //logsink_->postLocally( LogMessage("mjd = "+String::toString(mjd),LogOrigin(className_,funcName,WHERE)) ) ; 205 205 … … 208 208 209 209 // fill SRCNAME, SRCTYPE, FIELDNAME, SRCDIRECTION, SRCPROPERMOTION, and SRCVELOCITY 210 Vector<casa ::Double> srcDir( 2 ) ;211 srcDir[0] = (casa ::Double)(srcDirection[0]) ;212 srcDir[1] = (casa ::Double)(srcDirection[1]) ;213 Vector<casa ::Double> srcPM( 2 ) ;214 srcPM[0] = (casa ::Double)(srcProperMotion[0]) ;215 srcPM[1] = (casa ::Double)(srcProperMotion[1]) ;216 setSource( srcname, srctype, fieldname, srcDir, srcPM, (casa ::Double)sysVel ) ;210 Vector<casacore::Double> srcDir( 2 ) ; 211 srcDir[0] = (casacore::Double)(srcDirection[0]) ; 212 srcDir[1] = (casacore::Double)(srcDirection[1]) ; 213 Vector<casacore::Double> srcPM( 2 ) ; 214 srcPM[0] = (casacore::Double)(srcProperMotion[0]) ; 215 srcPM[1] = (casacore::Double)(srcProperMotion[1]) ; 216 setSource( srcname, srctype, fieldname, srcDir, srcPM, (casacore::Double)sysVel ) ; 217 217 218 218 // fill FLAGROW … … 231 231 windspeed, 232 232 windaz ) ; 233 setWeather2( (casa ::Float)temperature,234 (casa ::Float)pressure,235 (casa ::Float)humidity,236 (casa ::Float)windspeed,237 (casa ::Float)windaz ) ;233 setWeather2( (casacore::Float)temperature, 234 (casacore::Float)pressure, 235 (casacore::Float)humidity, 236 (casacore::Float)windspeed, 237 (casacore::Float)windaz ) ; 238 238 //logsink_->postLocally( LogMessage("temperature = "+String::toString(temperature),LogOrigin(className_,funcName,WHERE)) ) ; 239 239 // fill AZIMUTH, ELEVATION, DIRECTION and SCANRATE … … 246 246 el, 247 247 srate ) ; 248 Vector<casa ::Double> scanRate( 2, 0.0 ) ;249 Vector<casa ::Double> direction( 2, 0.0 ) ;248 Vector<casacore::Double> scanRate( 2, 0.0 ) ; 249 Vector<casacore::Double> direction( 2, 0.0 ) ; 250 250 if ( srate.size() > 0 ) { 251 scanRate[0] = (casa ::Double)(srate[0]) ;252 scanRate[1] = (casa ::Double)(srate[1]) ;251 scanRate[0] = (casacore::Double)(srate[0]) ; 252 scanRate[1] = (casacore::Double)(srate[1]) ; 253 253 } 254 254 setScanRate( scanRate ) ; 255 255 if ( dir.size() > 0 ) { 256 direction[0] = (casa ::Double)(dir[0]) ;257 direction[1] = (casa ::Double)(dir[1]) ;256 direction[0] = (casacore::Double)(dir[0]) ; 257 direction[1] = (casacore::Double)(dir[1]) ; 258 258 } 259 259 else { … … 261 261 } 262 262 //logsink_->postLocally( LogMessage("direction = "+String::toString(direction),LogOrigin(className_,funcName,WHERE)) ) ; 263 setDirection( direction, (casa ::Float)az, (casa::Float)el ) ;263 setDirection( direction, (casacore::Float)az, (casacore::Float)el ) ; 264 264 265 265 // REFPIX, REFVAL, INCREMENT … … 270 270 else { 271 271 reader_->getFrequency( refpix, refval, incr, freqref ) ; 272 refval = (double)toLSRK( casa ::Double(refval),272 refval = (double)toLSRK( casacore::Double(refval), 273 273 String(freqref), 274 274 hdr.utc, … … 281 281 282 282 // fill FREQ_ID and add FREQUENCIES row if necessary 283 setFrequency( (casa ::Double)refpix, (casa::Double)refval, (casa::Double)incr ) ;283 setFrequency( (casacore::Double)refpix, (casacore::Double)refval, (casacore::Double)incr ) ; 284 284 285 285 // loop on polarization … … 303 303 // OPACITY 304 304 vector<float> tau = reader_->getOpacity() ; 305 Vector<casa ::Float> opacity = toVector( tau, numPol ) ;305 Vector<casacore::Float> opacity = toVector( tau, numPol ) ; 306 306 307 307 // SPECTRA, FLAGTRA, TSYS, TCAL … … 311 311 vector< vector<float> > tc ; 312 312 reader_->getTcalAndTsys( tc, ts ) ; 313 Matrix<casa ::Float> spectra = toMatrix( sp, numPol, numChan ) ;313 Matrix<casacore::Float> spectra = toMatrix( sp, numPol, numChan ) ; 314 314 //logsink_->postLocally( LogMessage("spectra(0,0) = "+String::toString(spectra(0,0)),LogOrigin(className_,funcName,WHERE)) ) ; 315 315 Vector<uChar> flagtra( numChan, 0 ) ; 316 Matrix<casa ::Float> tsys = toMatrix( ts, numPol, numChan ) ;317 Matrix<casa ::Float> tcal = toMatrix( tc, numPol, numChan ) ;316 Matrix<casacore::Float> tsys = toMatrix( ts, numPol, numChan ) ; 317 Matrix<casacore::Float> tcal = toMatrix( tc, numPol, numChan ) ; 318 318 //logsink_->postLocally( LogMessage("tsys(0,0) = "+String::toString(tsys(0,0)),LogOrigin(className_,funcName,WHERE)) ) ; 319 319 // String caltime = "" ; 320 // if ( anyNE( tcal, (casa ::Float)1.0 ) )320 // if ( anyNE( tcal, (casacore::Float)1.0 ) ) 321 321 // caltime = toTcalTime( mjd ) ; 322 322 String caltime = toTcalTime( mjd ) ; … … 401 401 string ref ; 402 402 reader_->getSourceDirection( sdir, ref ) ; 403 Vector<casa ::Double> sourceDir( sdir ) ;403 Vector<casacore::Double> sourceDir( sdir ) ; 404 404 hdr.reffreq = toLSRK( hdr.reffreq, hdr.freqref, hdr.utc, hdr.antennaposition, sdir, String(ref) ) ; 405 405 hdr.freqref = "LSRK" ; … … 437 437 } 438 438 439 Matrix<casa ::Float> ASDMFiller::toMatrix( float *sp,439 Matrix<casacore::Float> ASDMFiller::toMatrix( float *sp, 440 440 unsigned int npol, 441 441 unsigned int nchan ) 442 442 { 443 Matrix<casa ::Float> mSp( npol, nchan ) ;443 Matrix<casacore::Float> mSp( npol, nchan ) ; 444 444 if ( npol <= 2 ) { 445 445 // 1 or 2 polarization case 446 446 for ( unsigned int ich = 0 ; ich < nchan ; ich++ ) { 447 447 for ( unsigned int ipol = 0 ; ipol < npol ; ipol++ ) { 448 mSp(ipol,ich) = (casa ::Float)(sp[npol*ich+ipol]) ;448 mSp(ipol,ich) = (casacore::Float)(sp[npol*ich+ipol]) ; 449 449 } 450 450 } … … 453 453 // 4 polarization case 454 454 for ( unsigned int ich = 0 ; ich < nchan ; ich++ ) { 455 mSp(0,ich) = (casa ::Float)(sp[4*ich]) ; // Re(XX)456 mSp(1,ich) = (casa ::Float)(sp[4*ich+4]) ; // Re(YY)457 mSp(2,ich) = (casa ::Float)(sp[4*ich+2]) ; // Re(XY)458 mSp(3,ich) = (casa ::Float)(sp[4*ich+3]) ; // Im(XY)455 mSp(0,ich) = (casacore::Float)(sp[4*ich]) ; // Re(XX) 456 mSp(1,ich) = (casacore::Float)(sp[4*ich+4]) ; // Re(YY) 457 mSp(2,ich) = (casacore::Float)(sp[4*ich+2]) ; // Re(XY) 458 mSp(3,ich) = (casacore::Float)(sp[4*ich+3]) ; // Im(XY) 459 459 } 460 460 } … … 462 462 } 463 463 464 Matrix<casa ::Float> ASDMFiller::toMatrix( vector< vector<float> > &tsys,464 Matrix<casacore::Float> ASDMFiller::toMatrix( vector< vector<float> > &tsys, 465 465 unsigned int npol, 466 466 unsigned int nchan ) … … 468 468 unsigned int numRec = tsys.size() ; 469 469 unsigned int numChan = tsys[0].size() ; 470 Matrix<casa ::Float> ret ;470 Matrix<casacore::Float> ret ; 471 471 if ( npol == numRec && nchan == numChan ) { 472 472 ret.resize( npol, nchan ) ; 473 473 for ( unsigned int ip = 0 ; ip < npol ; ip++ ) 474 474 for ( unsigned int ic = 0 ; ic < nchan ; ic++ ) 475 ret( ip, ic ) = (casa ::Float)(tsys[ip][ic]) ;475 ret( ip, ic ) = (casacore::Float)(tsys[ip][ic]) ; 476 476 } 477 477 else if ( npol == numRec && numChan == 1 ) { 478 478 ret.resize( npol, 1 ) ; 479 479 for ( unsigned int ip = 0 ; ip < npol ; ip++ ) 480 ret( ip, 0 ) = (casa ::Float)(tsys[0][0]) ;480 ret( ip, 0 ) = (casacore::Float)(tsys[0][0]) ; 481 481 } 482 482 else if ( numRec == 1 && nchan == numChan ) { … … 484 484 for ( unsigned int ip = 0 ; ip < npol ; ip++ ) 485 485 for ( unsigned int ic = 0 ; ic < nchan ; ic++ ) 486 ret( ip, ic ) = (casa ::Float)(tsys[0][ic]) ;486 ret( ip, ic ) = (casacore::Float)(tsys[0][ic]) ; 487 487 } 488 488 else if ( numRec == 1 && numChan == 1 ) { 489 489 ret.resize( npol, 1 ) ; 490 490 for ( unsigned int ip = 0 ; ip < npol ; ip++ ) 491 ret( ip, 0 ) = (casa ::Float)(tsys[0][0]) ;491 ret( ip, 0 ) = (casacore::Float)(tsys[0][0]) ; 492 492 } 493 493 else if ( numRec == 2 && npol == 4 && numChan == nchan ) { … … 496 496 ret.resize( npol, nchan ) ; 497 497 for ( unsigned int ic = 0 ; ic < nchan ; ic++ ) { 498 casa ::Float tsysxy = (casa::Float)(0.5*(tsys[0][ic]+tsys[1][ic])) ;499 ret( 0, ic ) = (casa ::Float)(tsys[0][ic]) ;500 ret( 1, ic ) = (casa ::Float)(tsys[1][ic]) ;498 casacore::Float tsysxy = (casacore::Float)(0.5*(tsys[0][ic]+tsys[1][ic])) ; 499 ret( 0, ic ) = (casacore::Float)(tsys[0][ic]) ; 500 ret( 1, ic ) = (casacore::Float)(tsys[1][ic]) ; 501 501 ret( 2, ic ) = tsysxy ; 502 502 ret( 3, ic ) = tsysxy ; … … 507 507 // at the moment Tsys[XY] = 0.5*(Tsys[X]+Tsys[Y]) 508 508 ret.resize( npol, 1 ) ; 509 casa ::Float tsysxy = (casa::Float)(0.5*(tsys[0][0]+tsys[1][0])) ;510 ret( 0, 0 ) = (casa ::Float)(tsys[0][0]) ;511 ret( 1, 0 ) = (casa ::Float)(tsys[1][0]) ;509 casacore::Float tsysxy = (casacore::Float)(0.5*(tsys[0][0]+tsys[1][0])) ; 510 ret( 0, 0 ) = (casacore::Float)(tsys[0][0]) ; 511 ret( 1, 0 ) = (casacore::Float)(tsys[1][0]) ; 512 512 ret( 2, 0 ) = tsysxy ; 513 513 ret( 3, 0 ) = tsysxy ; … … 517 517 for ( unsigned int ip = 0 ; ip < npol ; ip++ ) 518 518 for ( unsigned int ic = 0 ; ic < nchan ; ic++ ) 519 ret( ip, ic ) = (casa ::Float)(tsys[0][ic]) ;519 ret( ip, ic ) = (casacore::Float)(tsys[0][ic]) ; 520 520 } 521 521 return ret ; 522 522 } 523 523 524 Vector<casa ::Float> ASDMFiller::toVector( vector<float> &tau,524 Vector<casacore::Float> ASDMFiller::toVector( vector<float> &tau, 525 525 unsigned int npol ) 526 526 { 527 527 String funcName = "toVector" ; 528 528 529 Vector<casa ::Float> ret( npol ) ;529 Vector<casacore::Float> ret( npol ) ; 530 530 //logsink_->postLocally( LogMessage("tau0="+String::toString(tau[0]),LogOrigin(className_,funcName,WHERE)) ) ; 531 531 if ( npol == 4 ) { 532 ret[0] = (casa ::Float)tau[0] ;533 ret[1] = (casa ::Float)tau[1] ;532 ret[0] = (casacore::Float)tau[0] ; 533 ret[1] = (casacore::Float)tau[1] ; 534 534 ret[2] = 0.5 * ( ret[0] + ret[1] ) ; 535 535 ret[3] = ret[2] ; … … 537 537 else if ( npol == tau.size() ) { 538 538 for ( unsigned int ipol = 0 ; ipol < npol ; ipol++ ) 539 ret[ipol] = (casa ::Float)tau[ipol] ;539 ret[ipol] = (casacore::Float)tau[ipol] ; 540 540 } 541 541 else { 542 542 // I don't know how to handle... 543 543 for ( unsigned int ipol = 0 ; ipol < npol ; ipol++ ) 544 ret[ipol] = (casa ::Float)tau[0] ;544 ret[ipol] = (casacore::Float)tau[0] ; 545 545 } 546 546 //logsink_->postLocally( LogMessage("tau="+String::toString(ret),LogOrigin(className_,funcName,WHERE)) ) ; … … 548 548 } 549 549 550 String ASDMFiller::toTcalTime( casa ::Double mjd )550 String ASDMFiller::toTcalTime( casacore::Double mjd ) 551 551 { 552 552 return MVTime( mjd ).string( MVTime::YMD ) ; 553 553 } 554 554 555 void ASDMFiller::toJ2000( Vector<casa ::Double> &dir,555 void ASDMFiller::toJ2000( Vector<casacore::Double> &dir, 556 556 double az, 557 557 double el, 558 casa ::Double mjd,559 Vector<casa ::Double> antpos )558 casacore::Double mjd, 559 Vector<casacore::Double> antpos ) 560 560 { 561 561 String funcName = "toJ2000" ; 562 562 563 Vector<casa ::Double> azel( 2 ) ;563 Vector<casacore::Double> azel( 2 ) ; 564 564 azel[0] = az ; 565 565 azel[1] = el ; … … 580 580 } 581 581 582 Vector<casa ::Double> ASDMFiller::toJ2000( Vector<casa::Double> dir,582 Vector<casacore::Double> ASDMFiller::toJ2000( Vector<casacore::Double> dir, 583 583 String dirref, 584 casa ::Double mjd,585 Vector<casa ::Double> antpos )586 { 587 Vector<casa ::Double> newd( dir ) ;584 casacore::Double mjd, 585 Vector<casacore::Double> antpos ) 586 { 587 Vector<casacore::Double> newd( dir ) ; 588 588 if ( dirref != "J2000" ) { 589 589 MEpoch me( Quantity( mjd, "d" ), MEpoch::UTC ) ; … … 620 620 } 621 621 622 casa ::Double ASDMFiller::toLSRK( casa::Double freq,622 casacore::Double ASDMFiller::toLSRK( casacore::Double freq, 623 623 String freqref, 624 casa ::Double utc,625 Vector<casa ::Double> antpos,626 Vector<casa ::Double> dir,624 casacore::Double utc, 625 Vector<casacore::Double> antpos, 626 Vector<casacore::Double> dir, 627 627 String dirref ) 628 628 { … … 630 630 631 631 //logsink_->postLocally( LogMessage("freqref = "+freqref,LogOrigin(className_,funcName,WHERE)) ) ; 632 casa ::Double newf = freq ;632 casacore::Double newf = freq ; 633 633 if ( freqToLsr_ && freqref != "LSRK" ) { 634 MEpoch me( Quantum<casa ::Double>( utc, Unit("d") ), MEpoch::UTC ) ;635 Vector< Quantum<casa ::Double> > antposQ( 3 ) ;634 MEpoch me( Quantum<casacore::Double>( utc, Unit("d") ), MEpoch::UTC ) ; 635 Vector< Quantum<casacore::Double> > antposQ( 3 ) ; 636 636 for ( int i = 0 ; i < 3 ; i++ ) 637 antposQ[i] = Quantum<casa ::Double>( antpos[i], Unit("m") ) ;637 antposQ[i] = Quantum<casacore::Double>( antpos[i], Unit("m") ) ; 638 638 MPosition mp( antposQ, MPosition::ITRF ) ; 639 639 MDirection::Types dirtype ; … … 641 641 if ( !b ) 642 642 dirtype = MDirection::J2000 ; 643 MDirection md( Quantum<casa ::Double>( dir[0], Unit("rad") ),644 Quantum<casa ::Double>( dir[1], Unit("rad") ),643 MDirection md( Quantum<casacore::Double>( dir[0], Unit("rad") ), 644 Quantum<casacore::Double>( dir[1], Unit("rad") ), 645 645 dirtype ) ; 646 646 MeasFrame mf( me, mp, md ) ; … … 651 651 MFrequency::Convert tolsr( freqtype, 652 652 MFrequency::Ref( MFrequency::LSRK, mf ) ) ; 653 newf = tolsr( Quantum<casa ::Double>( freq, Unit("Hz") ) ).get( "Hz" ).getValue() ;653 newf = tolsr( Quantum<casacore::Double>( freq, Unit("Hz") ) ).get( "Hz" ).getValue() ; 654 654 //logsink_->postLocally( LogMessage("freq = "+String::toString(freq)+", newf = "+String::toString(newf),LogOrigin(className_,funcName,WHERE)) ) ; 655 655 } -
trunk/external-alma/asdm2ASAP/ASDMFiller.h
r2754 r3106 13 13 public: 14 14 // constructor and destructor 15 ASDMFiller( casa ::CountedPtr<asap::Scantable> stable ) ;15 ASDMFiller( casacore::CountedPtr<asap::Scantable> stable ) ; 16 16 ~ASDMFiller() ; 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<ASDMReader> getReader() { return reader_ ; } ;28 casacore::CountedPtr<ASDMReader> 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<ASDMReader> reader_ ;96 casa ::Int antennaId_ ;97 casa ::String antennaName_ ;95 casacore::CountedPtr<ASDMReader> 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_ ;104 casa ::Bool freqToLsr_ ;103 casacore::String className_ ; 104 casacore::Bool freqToLsr_ ; 105 105 106 106 } ; -
trunk/external-alma/asdm2ASAP/ASDMReader.cc
r2755 r3106 57 57 } 58 58 59 bool ASDMReader::open( const string &filename, const casa ::Record &rec )60 { 61 casa ::String funcName = "open" ;59 bool ASDMReader::open( const string &filename, const casacore::Record &rec ) 60 { 61 casacore::String funcName = "open" ; 62 62 63 63 // return value … … 72 72 // parsing ASDM options 73 73 if ( rec.isDefined( "asdm" ) ) { 74 casa ::Record asdmrec = rec.asRecord( "asdm" ) ;74 casacore::Record asdmrec = rec.asRecord( "asdm" ) ; 75 75 76 76 // antenna 77 77 if ( asdmrec.isDefined( "antenna" ) ) { 78 if ( asdmrec.type( asdmrec.fieldNumber( "antenna" ) ) == casa ::TpInt ) {78 if ( asdmrec.type( asdmrec.fieldNumber( "antenna" ) ) == casacore::TpInt ) { 79 79 antennaId_ = asdmrec.asInt( "antenna" ) ; 80 80 } … … 183 183 vector<AntennaRow *> rows = atab.get() ; 184 184 int idx = -1 ; 185 for ( casa ::uInt irow = 0 ; irow < rows.size() ; irow++ ) {186 if ( casa ::String(rows[irow]->getName()) == antennaName_ ) {185 for ( casacore::uInt irow = 0 ; irow < rows.size() ; irow++ ) { 186 if ( casacore::String(rows[irow]->getName()) == antennaName_ ) { 187 187 idx = rows[irow]->getAntennaId().getTagValue() ; 188 188 break ; … … 191 191 if ( idx == -1 ) { 192 192 close() ; 193 throw (casa ::AipsError( antennaName_ + " not found." )) ;193 throw (casacore::AipsError( antennaName_ + " not found." )) ; 194 194 } 195 195 else { … … 204 204 if ( antennaRow == 0 ) { 205 205 close() ; 206 throw (casa ::AipsError( "AntennaId " + casa::String::toString(antennaId_) + " is invalid." ) ) ;206 throw (casacore::AipsError( "AntennaId " + casacore::String::toString(antennaId_) + " is invalid." ) ) ; 207 207 } 208 208 } … … 211 211 // set antenna name 212 212 if ( antennaName_.size() == 0 ) { 213 antennaName_ = casa ::String( antennaRow->getName() ) ;213 antennaName_ = casacore::String( antennaRow->getName() ) ; 214 214 } 215 215 … … 218 218 219 219 // station name 220 stationName_ = casa ::String( stationRow->getName() ) ;220 stationName_ = casacore::String( stationRow->getName() ) ; 221 221 222 222 // antenna position 223 223 antennaPosition_.resize( 3 ) ; 224 224 vector<Length> antpos = stationRow->getPosition() ; 225 for ( casa ::uInt i = 0 ; i < 3 ; i++ )226 antennaPosition_[i] = Quantity( casa ::Double( antpos[i].get() ), Unit( "m" ) ) ;227 mp_ = casa ::MPosition( casa::MVPosition( antennaPosition_ ),228 casa ::MPosition::ITRF ) ;225 for ( casacore::uInt i = 0 ; i < 3 ; i++ ) 226 antennaPosition_[i] = Quantity( casacore::Double( antpos[i].get() ), Unit( "m" ) ) ; 227 mp_ = casacore::MPosition( casacore::MVPosition( antennaPosition_ ), 228 casacore::MPosition::ITRF ) ; 229 229 mf_.set( mp_ ) ; 230 230 … … 233 233 234 234 // get Main rows 235 //mainRow_ = casa ::Vector<MainRow *>(asdm_->getMain().get()) ;235 //mainRow_ = casacore::Vector<MainRow *>(asdm_->getMain().get()) ; 236 236 237 237 // set up IFNO … … 266 266 } 267 267 268 void ASDMReader::fillHeader( casa ::Int &nchan,269 casa ::Int &npol,270 casa ::Int &nif,271 casa ::Int &nbeam,272 casa ::String &observer,273 casa ::String &project,274 casa ::String &obstype,275 casa ::String &antennaname,276 casa ::Vector<casa::Double> &antennaposition,277 casa ::Float &equinox,278 casa ::String &freqref,279 casa ::Double &reffreq,280 casa ::Double &bandwidth,281 casa ::Double &utc,282 casa ::String &fluxunit,283 casa ::String &epoch,284 casa ::String &poltype )285 { 286 casa ::String funcName = "fillHeader" ;268 void ASDMReader::fillHeader( casacore::Int &nchan, 269 casacore::Int &npol, 270 casacore::Int &nif, 271 casacore::Int &nbeam, 272 casacore::String &observer, 273 casacore::String &project, 274 casacore::String &obstype, 275 casacore::String &antennaname, 276 casacore::Vector<casacore::Double> &antennaposition, 277 casacore::Float &equinox, 278 casacore::String &freqref, 279 casacore::Double &reffreq, 280 casacore::Double &bandwidth, 281 casacore::Double &utc, 282 casacore::String &fluxunit, 283 casacore::String &epoch, 284 casacore::String &poltype ) 285 { 286 casacore::String funcName = "fillHeader" ; 287 287 288 288 ExecBlockTable &ebtab = asdm_->getExecBlock() ; 289 289 // at the moment take first row of ExecBlock table 290 290 ExecBlockRow *ebrow = ebtab.get()[0] ; 291 casa ::String telescopeName( ebrow->getTelescopeName() ) ;292 //casa ::String stationName( stationRow_p->getName() ) ;291 casacore::String telescopeName( ebrow->getTelescopeName() ) ; 292 //casacore::String stationName( stationRow_p->getName() ) ; 293 293 294 294 // antennaname … … 299 299 // antennaposition 300 300 antennaposition.resize( 3 ) ; 301 for ( casa ::uInt i = 0 ; i < 3 ; i++ )301 for ( casacore::uInt i = 0 ; i < 3 ; i++ ) 302 302 antennaposition[i] = antennaPosition_[i].getValue( Unit("m") ) ; 303 303 … … 311 311 // utc 312 312 // start time of the project 313 utc = casa ::Double( ebrow->getStartTime().getMJD() ) ;313 utc = casacore::Double( ebrow->getStartTime().getMJD() ) ; 314 314 315 315 … … 330 330 refidx = irow ; 331 331 } 332 nchan = casa ::Int( *max_element( nchans.begin(), nchans.end() ) ) ;332 nchan = casacore::Int( *max_element( nchans.begin(), nchans.end() ) ) ; 333 333 334 334 //logsink_->postLocally( LogMessage("refidx = "+String::toString(refidx),LogOrigin(className_,funcName,WHERE)) ) ; … … 341 341 } 342 342 } 343 bandwidth = casa ::Double( *max_element( bws.begin(), bws.end() ) ) ;343 bandwidth = casacore::Double( *max_element( bws.begin(), bws.end() ) ) ; 344 344 345 345 // reffreq 346 reffreq = casa ::Double( spwrows[refidx]->getRefFreq().get() ) ;346 reffreq = casacore::Double( spwrows[refidx]->getRefFreq().get() ) ; 347 347 348 348 // freqref … … 386 386 387 387 // npol 388 npol = casa ::Int( *max_element( npols.begin(), npols.end() ) ) ;388 npol = casacore::Int( *max_element( npols.begin(), npols.end() ) ) ; 389 389 390 390 // poltype … … 425 425 426 426 // nbeam 427 nbeam = casa ::Int( *max_element( nbeams.begin(), nbeams.end() ) ) ;427 nbeam = casacore::Int( *max_element( nbeams.begin(), nbeams.end() ) ) ; 428 428 429 429 // fluxunit … … 445 445 obstype = "" ; 446 446 for ( unsigned int imode = 0 ; imode < obsmode.size() ; imode++ ) { 447 obstype += casa ::String(obsmode[imode]) ;447 obstype += casacore::String(obsmode[imode]) ; 448 448 if ( imode != obsmode.size()-1 ) 449 449 obstype += "#" ; … … 453 453 void ASDMReader::selectConfigDescription() 454 454 { 455 casa ::String funcName = "selectConfigDescription" ;455 casacore::String funcName = "selectConfigDescription" ; 456 456 457 457 vector<ConfigDescriptionRow *> cdrows = asdm_->getConfigDescription().get() ; … … 466 466 configDescIdList_.resize( cdidTags.size() ) ; 467 467 for ( unsigned int i = 0 ; i < cdidTags.size() ; i++ ) { 468 configDescIdList_[i] = casa ::uInt( cdidTags[i].getTagValue() ) ;468 configDescIdList_[i] = casacore::uInt( cdidTags[i].getTagValue() ) ; 469 469 } 470 470 } … … 476 476 Tag atag( antennaId_, TagType::Antenna ) ; 477 477 for ( unsigned int irow = 0 ; irow < frows.size() ; irow++ ) { 478 casa ::uInt feedId = (casa::uInt)(frows[irow]->getFeedId() ) ;479 if ( casa ::anyEQ( feedIdList_, feedId ) )478 casacore::uInt feedId = (casacore::uInt)(frows[irow]->getFeedId() ) ; 479 if ( casacore::anyEQ( feedIdList_, feedId ) ) 480 480 continue ; 481 481 if ( frows[irow]->getAntennaId() == atag ) { … … 487 487 } 488 488 489 casa ::Vector<casa::uInt> ASDMReader::getFieldIdList()490 { 491 casa ::String funcName = "getFieldIdList" ;489 casacore::Vector<casacore::uInt> ASDMReader::getFieldIdList() 490 { 491 casacore::String funcName = "getFieldIdList" ; 492 492 493 493 vector<FieldRow *> frows = asdm_->getField().get() ; … … 501 501 } 502 502 503 casa ::uInt ASDMReader::getNumMainRow()504 { 505 casa ::uInt nrow = casa::uInt( mainRow_.size() ) ;503 casacore::uInt ASDMReader::getNumMainRow() 504 { 505 casacore::uInt nrow = casacore::uInt( mainRow_.size() ) ; 506 506 507 507 return nrow ; … … 534 534 } 535 535 536 casa ::Bool ASDMReader::setMainRow( casa::uInt irow )537 { 538 casa ::Bool status = true ;536 casacore::Bool ASDMReader::setMainRow( casacore::uInt irow ) 537 { 538 casacore::Bool status = true ; 539 539 row_ = irow ; 540 540 execBlockTag_ = mainRow_[row_]->getExecBlockId() ; … … 544 544 status = false ; 545 545 else { 546 status = (casa ::Bool)(sdmBin_->acceptMainRow( mainRow_[row_] )) ;546 status = (casacore::Bool)(sdmBin_->acceptMainRow( mainRow_[row_] )) ; 547 547 } 548 548 return status ; 549 549 } 550 550 551 casa ::Bool ASDMReader::setMainRow( casa::uInt configDescId, casa::uInt fieldId )551 casacore::Bool ASDMReader::setMainRow( casacore::uInt configDescId, casacore::uInt fieldId ) 552 552 { 553 553 clearMainRow() ; … … 558 558 if (rows == 0) 559 559 return false; 560 mainRow_ = casa ::Vector<MainRow *>( *rows ) ;560 mainRow_ = casacore::Vector<MainRow *>( *rows ) ; 561 561 562 562 return true ; … … 570 570 void ASDMReader::setupIFNO() 571 571 { 572 casa ::String funcName = "setupIFNO" ;572 casacore::String funcName = "setupIFNO" ; 573 573 574 574 vector<SpectralWindowRow *> spwrows = asdm_->getSpectralWindow().get() ; 575 575 unsigned int nrow = spwrows.size() ; 576 576 ifno_.clear() ; 577 casa ::uInt idx = 0 ;578 casa ::uInt wvridx = 0 ;577 casacore::uInt idx = 0 ; 578 casacore::uInt wvridx = 0 ; 579 579 for ( unsigned int irow = 0 ; irow < nrow ; irow++ ) { 580 casa ::uInt index ;580 casacore::uInt index ; 581 581 if ( isWVR( spwrows[irow] ) ) { 582 582 //logsink_->postLocally( LogMessage(spwrows[irow]->getSpectralWindowId().toString()+" is WVR",LogOrigin(className_,funcName,WHERE)) ) ; … … 586 586 index = ++idx ; 587 587 } 588 ifno_.insert( pair<Tag,casa ::uInt>(spwrows[irow]->getSpectralWindowId(),index) ) ;588 ifno_.insert( pair<Tag,casacore::uInt>(spwrows[irow]->getSpectralWindowId(),index) ) ; 589 589 //logsink_->postLocally( LogMessage(spwrows[irow]->getSpectralWindowId().toString()+": IFNO="+String::toString(index),LogOrigin(className_,funcName,WHERE)) ) ; 590 590 } … … 601 601 } 602 602 603 casa ::Bool ASDMReader::setData()604 { 605 casa ::String funcName = "setData" ;603 casacore::Bool ASDMReader::setData() 604 { 605 casacore::String funcName = "setData" ; 606 606 607 607 //logsink_->postLocally( LogMessage("try to retrieve binary data",LogOrigin(className_,funcName,WHERE)) ) ; … … 678 678 } 679 679 680 casa ::uInt ASDMReader::getIFNo( unsigned int idx )680 casacore::uInt ASDMReader::getIFNo( unsigned int idx ) 681 681 { 682 682 prepareData( idx ) ; … … 684 684 } 685 685 686 casa ::uInt ASDMReader::getIFNo()687 { 688 map<Tag,casa ::uInt>::iterator iter = ifno_.find( specWinTag_ ) ;686 casacore::uInt ASDMReader::getIFNo() 687 { 688 map<Tag,casacore::uInt>::iterator iter = ifno_.find( specWinTag_ ) ; 689 689 if ( iter != ifno_.end() ) 690 690 return iter->second ; … … 720 720 string &freqref ) 721 721 { 722 casa ::String funcName = "getFrequency" ;722 casacore::String funcName = "getFrequency" ; 723 723 724 724 int nchan = specWinRow_p->getNumChan() ; … … 737 737 } 738 738 else { 739 throw (casa ::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ;739 throw (casacore::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ; 740 740 } 741 741 } … … 752 752 } 753 753 else { 754 throw (casa ::AipsError( "Either chanWidthArray or chanWidth must exist." )) ;754 throw (casacore::AipsError( "Either chanWidthArray or chanWidth must exist." )) ; 755 755 } 756 756 if ( specWinRow_p->isChanFreqStepExists() ) { … … 764 764 } 765 765 else { 766 throw (casa ::AipsError( "Either chanFreqArray or chanFreqStep must exist." )) ;766 throw (casacore::AipsError( "Either chanFreqArray or chanFreqStep must exist." )) ; 767 767 } 768 768 if ( specWinRow_p->isChanFreqStartExists() ) { … … 773 773 } 774 774 else { 775 throw (casa ::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ;775 throw (casacore::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ; 776 776 } 777 777 } … … 788 788 } 789 789 else { 790 throw (casa ::AipsError( "Either chanWidthArray or chanWidth must exist." )) ;790 throw (casacore::AipsError( "Either chanWidthArray or chanWidth must exist." )) ; 791 791 } 792 792 if ( specWinRow_p->isChanFreqStepExists() ) { … … 800 800 } 801 801 else { 802 throw (casa ::AipsError( "Either chanFreqArray or chanFreqStep must exist." )) ;802 throw (casacore::AipsError( "Either chanFreqArray or chanFreqStep must exist." )) ; 803 803 } 804 804 if ( specWinRow_p->isChanFreqStartExists() ) { … … 810 810 } 811 811 else { 812 throw (casa ::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ;812 throw (casacore::AipsError( "Either chanFreqArray or chanFreqStart must exist." )) ; 813 813 } 814 814 } … … 1264 1264 for ( unsigned int irow = 0 ; irow < nrow ; irow++ ) { 1265 1265 CalAtmosphereRow *atmrow = atmrows[irow] ; 1266 if ( casa ::String(atmrow->getAntennaName()) != antennaName_1266 if ( casacore::String(atmrow->getAntennaName()) != antennaName_ 1267 1267 //|| atmrow->getReceiverBand() != rb 1268 1268 //|| atmrow->getBasebandName() != bbname … … 1310 1310 float &windaz ) 1311 1311 { 1312 casa ::String funcName = "getWeatherInfo" ;1312 casacore::String funcName = "getWeatherInfo" ; 1313 1313 1314 1314 temperature = 0.0 ; … … 1710 1710 1711 1711 vector<double> ASDMReader::toJ2000( vector<double> &dir, 1712 casa ::String &dirref,1712 casacore::String &dirref, 1713 1713 double &mjd ) 1714 1714 { 1715 casa ::String funcName = "toJ2000" ;1715 casacore::String funcName = "toJ2000" ; 1716 1716 1717 1717 vector<double> newd( dir ) ; 1718 1718 if ( dirref != "J2000" ) { 1719 me_ = casa ::MEpoch( casa::Quantity( (casa::Double)mjd, "d" ), casa::MEpoch::UTC ) ;1719 me_ = casacore::MEpoch( casacore::Quantity( (casacore::Double)mjd, "d" ), casacore::MEpoch::UTC ) ; 1720 1720 mf_.set( me_ ) ; 1721 casa ::MDirection::Types dirtype ;1722 casa ::Bool b = casa::MDirection::getType( dirtype, dirref ) ;1721 casacore::MDirection::Types dirtype ; 1722 casacore::Bool b = casacore::MDirection::getType( dirtype, dirref ) ; 1723 1723 if ( b ) { 1724 casa ::Vector<casa::Double> cdir = toj2000_( dir ).getAngle( "rad" ).getValue() ;1724 casacore::Vector<casacore::Double> cdir = toj2000_( dir ).getAngle( "rad" ).getValue() ; 1725 1725 //logsink_->postLocally( LogMessage("cdir = "+String::toString(cdir),LogOrigin(className_,funcName,WHERE)) ) ; 1726 1726 newd[0] = (double)(cdir[0]) ; … … 1738 1738 string ASDMReader::getFrame() 1739 1739 { 1740 casa ::String funcName = "getFrame" ;1740 casacore::String funcName = "getFrame" ; 1741 1741 1742 1742 // default is TOPO … … 1767 1767 int ASDMReader::getNumIFs() 1768 1768 { 1769 casa ::String funcName = "getNumIFs" ;1769 casacore::String funcName = "getNumIFs" ; 1770 1770 1771 1771 int nif = 0 ; -
trunk/external-alma/asdm2ASAP/ASDMReader.h
r2979 r3106 38 38 * @return boolean status (true or false) 39 39 **/ 40 bool open( const std::string &filename, const casa ::Record &rec ) ;40 bool open( const std::string &filename, const casacore::Record &rec ) ; 41 41 42 42 /** … … 53 53 * get antenna id 54 54 **/ 55 casa ::Int getAntennaId() { return antennaId_ ; } ;55 casacore::Int getAntennaId() { return antennaId_ ; } ; 56 56 57 57 /** 58 58 * get antenna name 59 59 **/ 60 casa ::String getAntennaName() { return antennaName_ ; } ;60 casacore::String getAntennaName() { return antennaName_ ; } ; 61 61 62 62 /** … … 81 81 * @param poltype polarization type 82 82 **/ 83 void fillHeader( casa ::Int &nchan,84 casa ::Int &npol,85 casa ::Int &nif,86 casa ::Int &nbeam,87 casa ::String &observer,88 casa ::String &project,89 casa ::String &obstype,90 casa ::String &antennaname,91 casa ::Vector<casa::Double> &antennaposition,92 casa ::Float &equinox,93 casa ::String &freqref,94 casa ::Double &reffreq,95 casa ::Double &bandwidth,96 casa ::Double &utc,97 casa ::String &fluxunit,98 casa ::String &epoch,99 casa ::String &poltype ) ;83 void fillHeader( casacore::Int &nchan, 84 casacore::Int &npol, 85 casacore::Int &nif, 86 casacore::Int &nbeam, 87 casacore::String &observer, 88 casacore::String &project, 89 casacore::String &obstype, 90 casacore::String &antennaname, 91 casacore::Vector<casacore::Double> &antennaposition, 92 casacore::Float &equinox, 93 casacore::String &freqref, 94 casacore::Double &reffreq, 95 casacore::Double &bandwidth, 96 casacore::Double &utc, 97 casacore::String &fluxunit, 98 casacore::String &epoch, 99 casacore::String &poltype ) ; 100 100 101 101 /** … … 107 107 * @return list of valid configDescriptionId 108 108 **/ 109 casa ::Vector<casa::uInt> getConfigDescriptionIdList() { return configDescIdList_ ; } ;109 casacore::Vector<casacore::uInt> getConfigDescriptionIdList() { return configDescIdList_ ; } ; 110 110 111 111 /** 112 112 * get list of fieldId 113 113 * 114 * @return list of fieldId as casa ::uInt115 **/ 116 casa ::Vector<casa::uInt> getFieldIdList() ;114 * @return list of fieldId as casacore::uInt 115 **/ 116 casacore::Vector<casacore::uInt> getFieldIdList() ; 117 117 118 118 /** … … 121 121 * @return number of rows in Main table 122 122 **/ 123 casa ::uInt getNumMainRow() ;123 casacore::uInt getNumMainRow() ; 124 124 125 125 /** … … 135 135 * @param fieldId 136 136 **/ 137 casa ::Bool setMainRow( casa::uInt configDescId, casa::uInt fieldId ) ;137 casacore::Bool setMainRow( casacore::uInt configDescId, casacore::uInt fieldId ) ; 138 138 139 139 /** … … 143 143 * @return boolean indicating the row is valid or not 144 144 **/ 145 casa ::Bool setMainRow( casa::uInt irow ) ;145 casacore::Bool setMainRow( casacore::uInt irow ) ; 146 146 147 147 /** … … 181 181 * @return IF number 182 182 **/ 183 casa ::uInt getIFNo( unsigned int idx ) ;184 casa ::uInt getIFNo() ;183 casacore::uInt getIFNo( unsigned int idx ) ; 184 casacore::uInt getIFNo() ; 185 185 186 186 /** … … 387 387 * @return boolean status 388 388 **/ 389 casa ::Bool setData() ;389 casacore::Bool setData() ; 390 390 391 391 /** … … 408 408 * @param logger (LogSinkInterface) 409 409 **/ 410 void setLogger( casa ::CountedPtr<casa::LogSinkInterface> &logsink ) ;410 void setLogger( casacore::CountedPtr<casacore::LogSinkInterface> &logsink ) ; 411 411 412 412 … … 507 507 **/ 508 508 std::vector<double> toJ2000( std::vector<double> &dir, 509 casa ::String &dirref,509 casacore::String &dirref, 510 510 double &mjd ) ; 511 511 … … 579 579 const sdmbin::VMSData *vmsData_ ; 580 580 581 casa ::Int antennaId_ ; // antenna id582 casa ::String antennaName_ ; // antenna name583 casa ::String stationName_ ; // station name584 casa ::Vector<casa::Quantity> antennaPosition_ ; // antenna position585 casa ::Vector<casa::uInt> configDescIdList_ ; // list of valid configDescriptionId586 casa ::Vector<casa::uInt> feedIdList_ ; // list of valid feedId587 casa ::Vector<casa::uInt> fieldIdList_ ; // list of fieldId588 casa ::Int row_ ; // current row index589 map<asdm::Tag,casa ::uInt> ifno_ ; // list of IFNO for each SpectralWindow rows581 casacore::Int antennaId_ ; // antenna id 582 casacore::String antennaName_ ; // antenna name 583 casacore::String stationName_ ; // station name 584 casacore::Vector<casacore::Quantity> antennaPosition_ ; // antenna position 585 casacore::Vector<casacore::uInt> configDescIdList_ ; // list of valid configDescriptionId 586 casacore::Vector<casacore::uInt> feedIdList_ ; // list of valid feedId 587 casacore::Vector<casacore::uInt> fieldIdList_ ; // list of fieldId 588 casacore::Int row_ ; // current row index 589 map<asdm::Tag,casacore::uInt> ifno_ ; // list of IFNO for each SpectralWindow rows 590 590 unsigned int numData_ ; // number of valid data in vmsData_ where v_antennaId equals antennaId_ 591 591 vector<unsigned int> dataIdList_ ; // list of valid data indexes in vmsData_ … … 597 597 EnumSet<TimeSamplingMod::TimeSampling> timeSampling_ ; // time sampling 598 598 EnumSet<SpectralResolutionTypeMod::SpectralResolutionType> resolutionType_ ; // spectral resolution type 599 casa ::CountedPtr<casa::LogSinkInterface> logsink_ ; // Logger600 casa ::String className_ ;599 casacore::CountedPtr<casacore::LogSinkInterface> logsink_ ; // Logger 600 casacore::String className_ ; 601 601 unsigned int dataIndex_ ; 602 602 603 603 // Tables/Rows for ASDM 604 casa ::Vector<asdm::MainRow *> mainRow_ ; // list of pointers to all Main rows604 casacore::Vector<asdm::MainRow *> mainRow_ ; // list of pointers to all Main rows 605 605 //asdm::AntennaRow *antennaRow_p ; // pointer to target Antenna row 606 606 //asdm::StationRow *stationRow_p ; // pointer to target Station row that target antenna is located … … 617 617 asdm::ArrayTimeInterval timeInterval_ ; 618 618 619 casa ::MDirection::Convert toj2000_ ;620 casa ::MeasFrame mf_ ;621 casa ::MPosition mp_ ;622 casa ::MEpoch me_ ;619 casacore::MDirection::Convert toj2000_ ; 620 casacore::MeasFrame mf_ ; 621 casacore::MPosition mp_ ; 622 casacore::MEpoch me_ ; 623 623 } ; 624 624 #endif // ASAP_ASDM_READER_H
Note:
See TracChangeset
for help on using the changeset viewer.