Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/atnf/PKSIO/ASTEFXDataset.cc

    r2436 r1868  
    529529    c18[16] = '\0' ;
    530530    RX[i] = string( c18 ) ;
    531   }
    532   // DEBUG
    533 //   nro_debug_output( "RX", ASTE_ARYMAX_FX, RX ) ;
    534   //
     531    // DEBUG
     532//     if ( i == 0 ) {
     533//       cout << "RX      " ;
     534//     }
     535//     else if ( ( i % 5 ) == 0 ) {
     536//       cout << endl << "        " ;
     537//     }
     538//     cout << RX[i] << " " ;
     539    //
     540  }
     541  //cout << endl ;
    535542  for ( int i = 0 ; i < ASTE_ARYMAX_FX ; i++ ) {
    536543    if ( readHeader( HPBW[i], sameEndian ) == -1 ) {
     
    538545      return -1 ;
    539546    }
    540   }
    541   // DEBUG
    542 //   nro_debug_output( "HPBW", ASTE_ARYMAX_FX, HPBW ) ;
    543   //
     547//     // DEBUG
     548//     if ( i == 0 ) {
     549//       cout << "HPBW    " ;
     550//     }
     551//     else if ( ( i % 5 ) == 0 ) {
     552//       cout << endl <    //cerr << "Error opening file " << filename_ << "." << endl ;< "        " ;
     553//     }
     554//     cout << HPBW[i] << " " ;
     555    //
     556  }
     557  //cout << endl ;
    544558  for ( int i = 0 ; i < ASTE_ARYMAX_FX ; i++ ) {
    545559    if ( readHeader( EFFA[i], sameEndian ) == -1 ) {
     
    547561      return -1 ;
    548562    }
    549   }
    550   // DEBUG
    551 //   nro_debug_output( "EFFA", ASTE_ARYMAX_FX, EFFA ) ;
    552   //
     563    // DEBUG
     564//     if ( i == 0 ) {
     565//       cout << "EFFA    " ;
     566//     }
     567//     else if ( ( i % 5 ) == 0 ) {
     568//       cout << endl << "        " ;
     569//     }
     570//     cout << EFFA[i] << " " ;
     571    //
     572  }
     573  //cout << endl ;
    553574  for ( int i = 0 ; i < ASTE_ARYMAX_FX ; i++ ) {
    554575    if ( readHeader( EFFB[i], sameEndian ) == -1 ) {
     
    556577      return -1 ;
    557578    }
    558   }
    559   // DEBUG
    560 //   nro_debug_output( "EFFB", ASTE_ARYMAX_FX, EFFB ) ;
    561   //
     579    // DEBUG
     580//     if ( i == 0 ) {
     581//       cout << "EFFB    " ;
     582//     }
     583//     else if ( ( i % 5 ) == 0 ) {
     584//       cout << endl << "        " ;
     585//     }
     586//     cout << EFFB[i] << " " ;
     587    //
     588  }
     589  //cout << endl ;
    562590  for ( int i = 0 ; i < ASTE_ARYMAX_FX ; i++ ) {
    563591    if ( readHeader( EFFL[i], sameEndian ) == -1 ) {
     
    565593      return -1 ;
    566594    }
    567   }
    568   // DEBUG
    569 //   nro_debug_output( "EFFL", ASTE_ARYMAX_FX, EFFL ) ;
    570   //
     595    // DEBUG
     596//     if ( i == 0 ) {
     597//       cout << "EFFL    " ;
     598//     }
     599//     else if ( ( i % 5 ) == 0 ) {
     600//       cout << endl << "        " ;
     601//     }
     602//     cout << EFFL[i] << " " ;
     603    //
     604  }
     605  //cout << endl ;
    571606  for ( int i = 0 ; i < ASTE_ARYMAX_FX ; i++ ) {
    572607    if ( readHeader( EFSS[i], sameEndian ) == -1 ) {
     
    574609      return -1 ;
    575610    }
    576   }
    577   // DEBUG
    578 //   nro_debug_output( "EFSS", ASTE_ARYMAX_FX, EFSS ) ;
    579   //
     611    // DEBUG
     612//     if ( i == 0 ) {
     613//       cout << "EFSS    " ;
     614//     }
     615//     else if ( ( i % 5 ) == 0 ) {
     616//       cout << endl << "        " ;
     617//     }
     618//     cout << EFSS[i] << " " ;
     619    //
     620  }
     621  //cout << endl ;
    580622  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    581623    if ( readHeader( GAIN[i], sameEndian ) == -1 ) {
     
    583625      return -1 ;
    584626    }
    585   }
    586   // DEBUG
    587 //   nro_debug_output( "GAIN", ASTE_ARYMAX_FX, GAIN ) ;
    588   //
     627    // DEBUG
     628//     if ( i == 0 ) {
     629//       cout << "GAIN    " ;
     630//     }
     631//     else if ( ( i % 5 ) == 0 ) {
     632//       cout << endl << "        " ;
     633//     }
     634//     cout << GAIN[i] << " " ;
     635    //
     636  }
     637  //cout << endl ;
    589638  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    590639    strcpy( c4, str4.c_str() ) ;
     
    594643    }
    595644    HORN[i] = string( c4 ) ;
    596   }
    597   // DEBUG
    598 //   nro_debug_output( "HORN", ASTE_ARYMAX_FX, HORN ) ;
    599   //
     645    // DEBUG
     646//     if ( i == 0 ) {
     647//       cout << "HORN    " ;
     648//     }
     649//     else if ( ( i % 5 ) == 0 ) {
     650//       cout << endl << "        " ;
     651//     }
     652//     cout << HORN[i] << " " ;
     653    //
     654  }
     655  //cout << endl ;
    600656  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    601657    strcpy( c4, str4.c_str() ) ;
     
    605661    }
    606662    POLTP[i] = string( c4 ) ;
    607   }
    608   // DEBUG
    609 //   nro_debug_output( "POLTP", ASTE_ARYMAX_FX, POLTP ) ;
    610   //
     663    // DEBUG
     664//     if ( i == 0 ) {
     665//       cout << "POLTP   " ;
     666//     }
     667//     else if ( ( i % 5 ) == 0 ) {
     668//       cout << endl << "        " ;
     669//     }
     670//     cout << POLTP[i] << " " ;
     671    //
     672  }
     673  //cout << endl ;
    611674  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    612675    if ( readHeader( POLDR[i], sameEndian ) == -1 ) {
     
    614677      return -1 ;
    615678    }
    616   }
    617   // DEBUG
    618 //   nro_debug_output( "POLDR", ASTE_ARYMAX_FX, POLDR ) ;
    619   //
     679     // DEBUG
     680//     if ( i == 0 ) {
     681//       cout << "POLDR   " ;
     682//     }
     683//     else if ( ( i % 5 ) == 0 ) {
     684//       cout << endl << "        " ;
     685//     }
     686//     cout << POLDR[i] << " " ;
     687    //
     688  }
     689  //cout << endl ;
    620690  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    621691    if ( readHeader( POLAN[i], sameEndian ) == -1 ) {
     
    623693      return -1 ;
    624694    }
    625   }
    626   // DEBUG
    627 //   nro_debug_output( "POLAN", ASTE_ARYMAX_FX, POLAN ) ;
    628   //
     695    // DEBUG
     696//     if ( i == 0 ) {
     697//       cout << "POLAN   " ;
     698//     }
     699//     else if ( ( i % 5 ) == 0 ) {
     700//       cout << endl << "        " ;
     701//     }
     702//     cout << POLAN[i] << " " ;
     703    //
     704  }
     705  //cout << endl ;
    629706  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    630707    if ( readHeader( DFRQ[i], sameEndian ) == -1 ) {
     
    632709      return -1 ;
    633710    }
    634   }
    635   // DEBUG
    636 //   nro_debug_output( "DFRQ", ASTE_ARYMAX_FX, DFRQ ) ;
    637   //
     711    // DEBUG
     712//     if ( i == 0 ) {
     713//       cout << "DFRQ    " ;
     714//     }
     715//     else if ( ( i % 5 ) == 0 ) {
     716//       cout << endl << "        " ;
     717//     }
     718//     cout << DFRQ[i] << " " ;
     719    //
     720  }
     721  //cout << endl ;
    638722  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    639723    strcpy( c4, str4.c_str() ) ;
     
    643727    }
    644728    SIDBD[i] = string( c4 ) ;
    645   }
    646   // DEBUG
    647 //   nro_debug_output( "SIDBD", ASTE_ARYMAX_FX, SIDBD ) ;
    648   //
     729    // DEBUG
     730//     if ( i == 0 ) {
     731//       cout << "SIDBD   " ;
     732//     }
     733//     else if ( ( i % 5 ) == 0 ) {
     734//       cout << endl << "        " ;
     735//     }
     736//     cout << SIDBD[i] << " " ;
     737    //
     738  }
     739  //cout << endl ;
    649740  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    650741    if ( readHeader( REFN[i], sameEndian ) == -1 ) {
     
    652743      return -1 ;
    653744    }
    654   }
    655   // DEBUG
    656 //   nro_debug_output( "REFN", ASTE_ARYMAX_FX, REFN ) ;
    657   //
     745    // DEBUG
     746//     if ( i == 0 ) {
     747//       cout << "REFN    " ;
     748//     }
     749//     else if ( ( i % 5 ) == 0 ) {
     750//       cout << endl << "        " ;
     751//     }
     752//     cout << REFN[i] << " " ;
     753    //
     754  }
     755  //cout << endl ;
    658756  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    659757    if ( readHeader( IPINT[i], sameEndian ) == -1 ) {
     
    661759      return -1 ;
    662760    }
    663   }
    664   // DEBUG
    665 //   nro_debug_output( "IPINT", ASTE_ARYMAX_FX, IPINT ) ;
    666   //
     761    // DEBUG
     762//     if ( i == 0 ) {
     763//       cout << "IPINT   " ;
     764//     }
     765//     else if ( ( i % 5 ) == 0 ) {
     766//       cout << endl << "        " ;
     767//     }
     768//     cout << IPINT[i] << " " ;
     769    //
     770  }
     771  //cout << endl ;
    667772  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    668773    if ( readHeader( MULTN[i], sameEndian ) == -1 ) {
     
    670775      return -1 ;
    671776    }
    672   }
    673   // DEBUG
    674 //   nro_debug_output( "MULTN", ASTE_ARYMAX_FX, MULTN ) ;
    675   //
     777    // DEBUG
     778//     if ( i == 0 ) {
     779//       cout << "MULTN   " ;
     780//     }
     781//     else if ( ( i % 5 ) == 0 ) {
     782//       cout << endl << "        " ;
     783//     }
     784//     cout << MULTN[i] << " " ;
     785    //
     786  }
     787  //cout << endl ;
    676788  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    677789    if ( readHeader( MLTSCF[i], sameEndian ) == -1 ) {
     
    679791      return -1 ;
    680792    }
    681   }
    682   // DEBUG
    683 //   nro_debug_output( "MLTSCF", ASTE_ARYMAX_FX, MLTSCF ) ;
    684   //
     793    // DEBUG
     794//     if ( i == 0 ) {
     795//       cout << "MLTSCF  " ;
     796//     }
     797//     else if ( ( i % 5 ) == 0 ) {
     798//       cout << endl << "        " ;
     799//     }
     800//     cout << MLTSCF[i] << " " ;
     801    //
     802  }
     803  //cout << endl ;
    685804  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    686805    strcpy( c8, str8.c_str() ) ;
     
    690809    }
    691810    LAGWIND[i] = string( c8 ) ;
    692   }
    693   // DEBUG
    694 //   nro_debug_output( "LAGWIND", ASTE_ARYMAX_FX, LAGWIND ) ;
    695   //
     811    // DEBUG
     812//     if ( i == 0 ) {
     813//       cout << "LAGWIND " ;
     814//     }
     815//     else if ( ( i % 5 ) == 0 ) {
     816//       cout << endl << "        " ;
     817//     }
     818//     cout << LAGWIND[i] << " " ;
     819    //
     820  }
     821  //cout << endl ;
    696822  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    697823    if ( readHeader( BEBW[i], sameEndian ) == -1 ) {
     
    699825      return -1 ;
    700826    }
    701   }
    702   // DEBUG
    703 //   nro_debug_output( "BEBW", ASTE_ARYMAX_FX, BEBW ) ;
    704   //
     827    // DEBUG
     828//     if ( i == 0 ) {
     829//       cout << "BEBW    " ;
     830//     }
     831//     else if ( ( i % 5 ) == 0 ) {
     832//       cout << endl << "        " ;
     833//     }
     834//     cout << BEBW[i] << " " ;
     835    //
     836  }
     837  //cout << endl ;
    705838  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    706839    if ( readHeader( BERES[i], sameEndian ) == -1 ) {
     
    708841      return -1 ;
    709842    }
    710   }
    711   // DEBUG
    712 //   nro_debug_output( "BERES", ASTE_ARYMAX_FX, BERES ) ;
    713   //
     843    // DEBUG
     844//     if ( i == 0 ) {
     845//       cout << "BERES   " ;
     846//     }
     847//     else if ( ( i % 5 ) == 0 ) {
     848//       cout << endl << "        " ;
     849//     }
     850//     cout << BERES[i] << " " ;
     851    //
     852  }
     853  //cout << endl ;
    714854  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    715855    if ( readHeader( CHWID[i], sameEndian ) == -1 ) {
     
    717857      return -1 ;
    718858    }
    719   }
    720   // DEBUG
    721 //   nro_debug_output( "CHWID", ASTE_ARYMAX_FX, CHWID ) ;
    722   //
     859    // DEBUG
     860//     if ( i == 0 ) {
     861//       cout << "CHWID   " ;
     862//     }
     863//     else if ( ( i % 5 ) == 0 ) {
     864//       cout << endl << "        " ;
     865//     }
     866//     cout << CHWID[i] << " " ;
     867    //
     868  }
     869  //cout << endl ;
    723870  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    724871    if ( readHeader( ARRY[i], sameEndian ) == -1 ) {
     
    726873      return -1 ;
    727874    }
    728   }
    729   // DEBUG
    730 //   nro_debug_output( "ARRY", ASTE_ARYMAX_FX, ARRY ) ;
    731   //
     875    // DEBUG
     876//     if ( i == 0 ) {
     877//       cout << "ARRY    " ;
     878//     }
     879//     else if ( ( i % 5 ) == 0 ) {
     880//       cout << endl << "        " ;
     881//     }
     882//     cout << ARRY[i] << " " ;
     883    //
     884  }
     885  //cout << endl ;
    732886  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    733887    if ( readHeader( NFCAL[i], sameEndian ) == -1 ) {
     
    735889      return -1 ;
    736890    }
    737   }
    738   // DEBUG
    739 //   nro_debug_output( "NFCAL", ASTE_ARYMAX_FX, NFCAL ) ;
    740   //
     891    // DEBUG
     892//     if ( i == 0 ) {
     893//       cout << "NFCAL   " ;
     894//     }
     895//     else if ( ( i % 5 ) == 0 ) {
     896//       cout << endl << "        " ;
     897//     }
     898//     cout << NFCAL[i] << " " ;
     899    //
     900  }
     901  //cout << endl ;
    741902  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    742903    if ( readHeader( F0CAL[i], sameEndian ) == -1 ) {
     
    744905      return -1 ;
    745906    }
    746   }
    747   // DEBUG
    748 //   nro_debug_output( "F0CAL", ASTE_ARYMAX_FX, F0CAL ) ;
    749   //
     907    // DEBUG
     908//     if ( i == 0 ) {
     909//       cout << "F0CAL   " ;
     910//     }
     911//     else if ( ( i % 5 ) == 0 ) {
     912//       cout << endl << "        " ;
     913//     }
     914//     cout << F0CAL[i] << " " ;
     915    //
     916  }
     917  //cout << endl ;
    750918  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    751919    for ( int j = 0 ; j < 10 ; j++ ) {
     
    754922        return -1 ;
    755923      }
    756     }
    757   }
    758   // DEBUG
    759 //   nro_debug_output( "FQCAL", ASTE_ARYMAX_FX, 10, FQCAL ) ;
    760   //
     924      // DEBUG
     925//       if ( j == 0 ) {
     926//         if ( i < 10 )
     927//           cout << "FQCAL0" << i << " " ;
     928//         else
     929//           cout << "FQCAL" << i << " " ;
     930//       }
     931//       else if ( ( j % 5 ) == 0 ) {
     932//         cout << endl << "        " ;
     933//       }
     934//       cout << FQCAL[i][j] << " " ;
     935      //
     936    }
     937    //cout << endl ;
     938  }
    761939  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    762940    for ( int j = 0 ; j < 10 ; j++ ) {
     
    765943        return -1 ;
    766944      }
    767     }
    768   }
    769   // DEBUG
    770 //   nro_debug_output( "CHCAL", ASTE_ARYMAX_FX, 10, CHCAL ) ;
    771   //
     945     // DEBUG
     946//       if ( j == 0 ) {
     947//         if ( i < 10 )
     948//           cout << "CHCAL0" << i << " " ;
     949//         else
     950//           cout << "CHCAL" << i << " " ;
     951//       }
     952//       else if ( ( j % 5 ) == 0 ) {
     953//         cout << endl << "        " ;
     954//       }
     955//      cout << CHCAL[i][j] << " " ;
     956     //
     957    }
     958    //cout << endl ;
     959  }
    772960  for ( int i= 0 ; i < ASTE_ARYMAX_FX ; i++) {
    773961    for ( int j = 0 ; j < 10 ; j++ ) {
     
    776964        return -1 ;
    777965      }
    778     }
    779   }
    780   // DEBUG
    781 //   nro_debug_output( "CWCAL", ASTE_ARYMAX_FX, 10, CWCAL ) ;
    782   //
     966      // DEBUG
     967//       if ( j == 0 ) {
     968//         if ( i < 10 )
     969//           cout << "CWCAL0" << i << " " ;
     970//         else
     971//           cout << "CWCAL" << i << " " ;
     972//       }
     973//       else if ( ( j % 5 ) == 0 ) {
     974//         cout << endl << "        " ;
     975//       }
     976//       cout << CWCAL[i][j] << " " ;
     977      //
     978    }
     979    //cout << endl ;
     980  }
    783981  if ( readHeader( SCNLEN, sameEndian ) == -1 ) {
    784982    os << LogIO::WARN << "Error while reading data SCNLEN." << endl ;
     
    8261024      return -1 ;
    8271025    }
    828   }
    829   // DEBUG
    830 //   nro_debug_output( "DSBFC", ASTE_ARYMAX_FX, DSBFC ) ;
    831   //
     1026     // DEBUG
     1027//     if ( i == 0 ) {
     1028//       cout << "DSBFC   " ;
     1029//     }
     1030//     else if ( ( i % 5 ) == 0 ) {
     1031//       cout << endl << "        " ;
     1032//     }
     1033//     cout << DSBFC[i] << " " ;
     1034    //
     1035  }
     1036  //cout << endl ;
    8321037
    8331038  scanNum_ = NSCAN + 1 ; // includes ZERO scan
Note: See TracChangeset for help on using the changeset viewer.