- Timestamp:
- 12/14/10 19:31:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r1907 r1967 4279 4279 } 4280 4280 else { 4281 double t0 = getMJD( s->getTime( idx[0] ) ) ; 4282 double t1 = getMJD( s->getTime( idx[1] ) ) ; 4281 //double t0 = getMJD( s->getTime( idx[0] ) ) ; 4282 //double t1 = getMJD( s->getTime( idx[1] ) ) ; 4283 double t0 = s->getEpoch( idx[0] ).get( Unit( "d" ) ).getValue() ; 4284 double t1 = s->getEpoch( idx[1] ).get( Unit( "d" ) ).getValue() ; 4283 4285 double tref = getMJD( reftime ) ; 4284 4286 if ( abs( t0 - tref ) > abs( t1 - tref ) ) { … … 4317 4319 // do interpolation 4318 4320 //os << "interpolate between " << idx[0] << " and " << idx[1] << " (scanno: " << s->getScan( idx[0] ) << ", " << s->getScan( idx[1] ) << ")" << LogIO::POST ; 4319 double t0 = getMJD( s->getTime( idx[0] ) ) ; 4320 double t1 = getMJD( s->getTime( idx[1] ) ) ; 4321 //double t0 = getMJD( s->getTime( idx[0] ) ) ; 4322 //double t1 = getMJD( s->getTime( idx[1] ) ) ; 4323 double t0 = s->getEpoch( idx[0] ).get( Unit( "d" ) ).getValue() ; 4324 double t1 = s->getEpoch( idx[1] ).get( Unit( "d" ) ).getValue() ; 4321 4325 double tref = getMJD( reftime ) ; 4322 4326 vector<float> sp0 = s->getSpectrum( idx[0] ) ; … … 4459 4463 } 4460 4464 else { 4461 double t0 = getMJD( s->getTime( idx[0] ) ) ; 4462 double t1 = getMJD( s->getTime( idx[1] ) ) ; 4465 //double t0 = getMJD( s->getTime( idx[0] ) ) ; 4466 //double t1 = getMJD( s->getTime( idx[1] ) ) ; 4467 double t0 = s->getEpoch( idx[0] ).get( Unit( "d" ) ).getValue() ; 4468 double t1 = s->getEpoch( idx[1] ).get( Unit( "d" ) ).getValue() ; 4463 4469 double tref = getMJD( reftime ) ; 4464 4470 if ( abs( t0 - tref ) > abs( t1 - tref ) ) { … … 4505 4511 // do interpolation 4506 4512 //os << "interpolate between " << idx[0] << " and " << idx[1] << " (scanno: " << s->getScan( idx[0] ) << ", " << s->getScan( idx[1] ) << ")" << LogIO::POST ; 4507 double t0 = getMJD( s->getTime( idx[0] ) ) ; 4508 double t1 = getMJD( s->getTime( idx[1] ) ) ; 4513 //double t0 = getMJD( s->getTime( idx[0] ) ) ; 4514 //double t1 = getMJD( s->getTime( idx[1] ) ) ; 4515 double t0 = s->getEpoch( idx[0] ).get( Unit( "d" ) ).getValue() ; 4516 double t1 = s->getEpoch( idx[1] ).get( Unit( "d" ) ).getValue() ; 4509 4517 double tref = getMJD( reftime ) ; 4510 4518 vector<float> tcal0 ; … … 4589 4597 } 4590 4598 else { 4591 double t0 = getMJD( s->getTime( idx[0] ) ) ; 4592 double t1 = getMJD( s->getTime( idx[1] ) ) ; 4599 //double t0 = getMJD( s->getTime( idx[0] ) ) ; 4600 //double t1 = getMJD( s->getTime( idx[1] ) ) ; 4601 double t0 = s->getEpoch( idx[0] ).get( Unit( "d" ) ).getValue() ; 4602 double t1 = s->getEpoch( idx[1] ).get( Unit( "d" ) ).getValue() ; 4593 4603 double tref = getMJD( reftime ) ; 4594 4604 if ( abs( t0 - tref ) > abs( t1 - tref ) ) { … … 4631 4641 // do interpolation 4632 4642 //os << "interpolate between " << idx[0] << " and " << idx[1] << " (scanno: " << s->getScan( idx[0] ) << ", " << s->getScan( idx[1] ) << ")" << LogIO::POST ; 4633 double t0 = getMJD( s->getTime( idx[0] ) ) ; 4634 double t1 = getMJD( s->getTime( idx[1] ) ) ; 4643 //double t0 = getMJD( s->getTime( idx[0] ) ) ; 4644 //double t1 = getMJD( s->getTime( idx[1] ) ) ; 4645 double t0 = s->getEpoch( idx[0] ).get( Unit( "d" ) ).getValue() ; 4646 double t1 = s->getEpoch( idx[1] ).get( Unit( "d" ) ).getValue() ; 4635 4647 double tref = getMJD( reftime ) ; 4636 4648 vector<float> tsys0 ;
Note:
See TracChangeset
for help on using the changeset viewer.