Changeset 1654
- Timestamp:
- 10/28/09 18:42:21 (16 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  branches/alma/src/STFiller.cpp (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      branches/alma/src/STFiller.cppr1616 r1654 312 312 PKSrecord pksrec; 313 313 int n = 0; 314 bool isGBTFITS = false ; 315 if ((header_->antennaname.find( "GBT" ) != String::npos) && File(filename_).isRegular()) { 316 FILE *fp = fopen( filename_.c_str(), "r" ) ; 317 fseek( fp, 640, SEEK_SET ) ; 318 char buf[81] ; 319 fread( buf, 80, 1, fp ) ; 320 buf[80] = '\0' ; 321 if ( strstr( buf, "NRAO_GBT" ) != NULL ) { 322 isGBTFITS = true ; 323 } 324 fclose( fp ) ; 325 } 314 326 while ( status == 0 ) { 315 327 status = reader_->read(pksrec); … … 418 430 tsysvec = pksrec.tsys(i); 419 431 *tsysCol = tsysvec; 420 *polnoCol = i; 432 if (isGBTFITS) 433 *polnoCol = pksrec.polNo ; 434 else 435 *polnoCol = i; 421 436 422 437 *specCol = pksrec.spectra.column(i); 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
