Ignore:
File:
1 edited

Legend:

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

    r2436 r1868  
    535535    c18[16] = '\0' ;
    536536    RX[i] = string( c18 ) ;
    537   }
    538   // DEBUG
    539 //   nro_debug_output( "RX", NRO_ARYMAX, RX ) ;
    540   //
     537    // DEBUG
     538//     if ( i == 0 ) {
     539//       cout << "RX      " ;
     540//     }
     541//     else if ( ( i % 5 ) == 0 ) {
     542//       cout << endl << "        " ;
     543//     }
     544//     cout << RX[i] << " " ;
     545    //
     546  }
     547  //cout << endl ;
    541548  for ( int i = 0 ; i < NRO_ARYMAX ; i++ ) {
    542549    if ( readHeader( HPBW[i], sameEndian ) == -1 ) {
     
    544551      return -1 ;
    545552    }
    546   }
    547   // DEBUG
    548 //   nro_debug_output( "HPBW", NRO_ARYMAX, HPBW ) ;
    549   //
     553    // DEBUG
     554//     if ( i == 0 ) {
     555//       cout << "HPBW    " ;
     556//     }
     557//     else if ( ( i % 5 ) == 0 ) {
     558//       cout << endl << "        " ;
     559//     }
     560//     cout << HPBW[i] << " " ;
     561    //
     562  }
     563  //cout << endl ;
    550564  for ( int i = 0 ; i < NRO_ARYMAX ; i++ ) {
    551565    if ( readHeader( EFFA[i], sameEndian ) == -1 ) {
     
    553567      return -1 ;
    554568    }
    555   }
    556   // DEBUG
    557 //   nro_debug_output( "EFFA", NRO_ARYMAX, EFFA ) ;
    558   //
     569    // DEBUG
     570//     if ( i == 0 ) {
     571//       cout << "EFFA    " ;
     572//     }
     573//     else if ( ( i % 5 ) == 0 ) {
     574//       cout << endl << "        " ;
     575//     }
     576//     cout << EFFA[i] << " " ;
     577    //
     578  }
     579  //cout << endl ;
    559580  for ( int i = 0 ; i < NRO_ARYMAX ; i++ ) {
    560581    if ( readHeader( EFFB[i], sameEndian ) == -1 ) {
     
    562583      return -1 ;
    563584    }
    564   }
    565   // DEBUG
    566 //   nro_debug_output( "EFFB", NRO_ARYMAX, EFFB ) ;
    567   //
     585    // DEBUG
     586//     if ( i == 0 ) {
     587//       cout << "EFFB    " ;
     588//     }
     589//     else if ( ( i % 5 ) == 0 ) {
     590//       cout << endl << "        " ;
     591//     }
     592//     cout << EFFB[i] << " " ;
     593    //
     594  }
     595  //cout << endl ;
    568596  for ( int i = 0 ; i < NRO_ARYMAX ; i++ ) {
    569597    if ( readHeader( EFFL[i], sameEndian ) == -1 ) {
     
    571599      return -1 ;
    572600    }
    573   }
    574   // DEBUG
    575 //   nro_debug_output( "EFFL", NRO_ARYMAX, EFFL ) ;
    576   //
     601    // DEBUG
     602//     if ( i == 0 ) {
     603//       cout << "EFFL    " ;
     604//     }
     605//     else if ( ( i % 5 ) == 0 ) {
     606//       cout << endl << "        " ;
     607//     }
     608//     cout << EFFL[i] << " " ;
     609    //
     610  }
     611  //cout << endl ;
    577612  for ( int i = 0 ; i < NRO_ARYMAX ; i++ ) {
    578613    if ( readHeader( EFSS[i], sameEndian ) == -1 ) {
     
    580615      return -1 ;
    581616    }
    582   }
    583   // DEBUG
    584 //   nro_debug_output( "EFSS", NRO_ARYMAX, EFSS ) ;
    585   //
     617    // DEBUG
     618//     if ( i == 0 ) {
     619//       cout << "EFSS    " ;
     620//     }
     621//     else if ( ( i % 5 ) == 0 ) {
     622//       cout << endl << "        " ;
     623//     }
     624//     cout << EFSS[i] << " " ;
     625    //
     626  }
     627  //cout << endl ;
    586628  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    587629    if ( readHeader( GAIN[i], sameEndian ) == -1 ) {
     
    589631      return -1 ;
    590632    }
    591   }
    592   // DEBUG
    593 //   nro_debug_output( "GAIN", NRO_ARYMAX, GAIN ) ;
    594   //
     633    // DEBUG
     634//     if ( i == 0 ) {
     635//       cout << "GAIN    " ;
     636//     }
     637//     else if ( ( i % 5 ) == 0 ) {
     638//       cout << endl << "        " ;
     639//     }
     640//     cout << GAIN[i] << " " ;
     641    //
     642  }
     643  //cout << endl ;
    595644  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    596645    strcpy( c4, str4.c_str() ) ;
     
    600649    }
    601650    HORN[i] = string( c4 ) ;
    602   }
    603   // DEBUG
    604 //   nro_debug_output( "HORN", NRO_ARYMAX, HORN ) ;
    605   //
     651    // DEBUG
     652//     if ( i == 0 ) {
     653//       cout << "HORN    " ;
     654//     }
     655//     else if ( ( i % 5 ) == 0 ) {
     656//       cout << endl << "        " ;
     657//     }
     658//     cout << HORN[i] << " " ;
     659    //
     660  }
     661  //cout << endl ;
    606662  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    607663    strcpy( c4, str4.c_str() ) ;
     
    611667    }
    612668    POLTP[i] = string( c4 ) ;
    613   }
    614   // DEBUG
    615 //   nro_debug_output( "POLTP", NRO_ARYMAX, POLTP ) ;
    616   //
     669    // DEBUG
     670//     if ( i == 0 ) {
     671//       cout << "POLTP   " ;
     672//     }
     673//     else if ( ( i % 5 ) == 0 ) {
     674//       cout << endl << "        " ;
     675//     }
     676//     cout << POLTP[i] << " " ;
     677    //
     678  }
     679  //cout << endl ;
    617680  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    618681    if ( readHeader( POLDR[i], sameEndian ) == -1 ) {
     
    620683      return -1 ;
    621684    }
    622   }
    623   // DEBUG
    624 //   nro_debug_output( "POLDR", NRO_ARYMAX, POLDR ) ;
    625   //
     685    // DEBUG
     686//     if ( i == 0 ) {
     687//       cout << "POLDR   " ;
     688//     }
     689//     else if ( ( i % 5 ) == 0 ) {
     690//       cout << endl << "        " ;
     691//     }
     692//     cout << POLDR[i] << " " ;
     693    //
     694  }
     695  //cout << endl ;
    626696  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    627697    if ( readHeader( POLAN[i], sameEndian ) == -1 ) {
     
    629699      return -1 ;
    630700    }
    631   }
    632   // DEBUG
    633 //   nro_debug_output( "POLAN", NRO_ARYMAX, POLAN ) ;
    634   //
     701    // DEBUG
     702//     if ( i == 0 ) {
     703//       cout << "POLAN   " ;
     704//     }
     705//     else if ( ( i % 5 ) == 0 ) {
     706//       cout << endl << "        " ;
     707//     }
     708//     cout << POLAN[i] << " " ;
     709    //
     710  }
     711  //cout << endl ;
    635712  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    636713    if ( readHeader( DFRQ[i], sameEndian ) == -1 ) {
     
    638715      return -1 ;
    639716    }
    640   }
    641   // DEBUG
    642 //   nro_debug_output( "DFRQ", NRO_ARYMAX, DFRQ ) ;
    643   //
     717    // DEBUG
     718//     if ( i == 0 ) {
     719//       cout << "DFRQ    " ;
     720//     }
     721//     else if ( ( i % 5 ) == 0 ) {
     722//       cout << endl << "        " ;
     723//     }
     724//     cout << DFRQ[i] << " " ;
     725    //
     726  }
     727  //cout << endl ;
    644728  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    645729    strcpy( c4, str4.c_str() ) ;
     
    649733    }
    650734    SIDBD[i] = string( c4 ) ;
    651   }
    652   // DEBUG
    653 //   nro_debug_output( "SIDBD", NRO_ARYMAX, SIDBD ) ;
    654   //
     735    // DEBUG
     736//     if ( i == 0 ) {
     737//       cout << "SIDBD   " ;
     738//     }
     739//     else if ( ( i % 5 ) == 0 ) {
     740//       cout << endl << "        " ;
     741//     }
     742//     cout << SIDBD[i] << " " ;
     743    //
     744  }
     745  //cout << endl ;
    655746  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    656747    if ( readHeader( REFN[i], sameEndian ) == -1 ) {
     
    658749      return -1 ;
    659750    }
    660   }
    661   // DEBUG
    662 //   nro_debug_output( "REFN", NRO_ARYMAX, REFN ) ;
    663   //
     751    // DEBUG
     752//     if ( i == 0 ) {
     753//       cout << "REFN    " ;
     754//     }
     755//     else if ( ( i % 5 ) == 0 ) {
     756//       cout << endl << "        " ;
     757//     }
     758//     cout << REFN[i] << " " ;
     759    //
     760  }
     761  //cout << endl ;
    664762  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    665763    if ( readHeader( IPINT[i], sameEndian ) == -1 ) {
     
    667765      return -1 ;
    668766    }
    669   }
    670   // DEBUG
    671 //   nro_debug_output( "IPINT", NRO_ARYMAX, IPINT ) ;
    672   //
     767    // DEBUG
     768//     if ( i == 0 ) {
     769//       cout << "IPINT   " ;
     770//     }
     771//     else if ( ( i % 5 ) == 0 ) {
     772//       cout << endl << "        " ;
     773//     }
     774//     cout << IPINT[i] << " " ;
     775    //
     776  }
     777  //cout << endl ;
    673778  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    674779    if ( readHeader( MULTN[i], sameEndian ) == -1 ) {
     
    676781      return -1 ;
    677782    }
    678   }
    679   // DEBUG
    680 //   nro_debug_output( "MULTN", NRO_ARYMAX, MULTN ) ;
    681   //
     783    // DEBUG
     784//     if ( i == 0 ) {
     785//       cout << "MULTN   " ;
     786//     }
     787//     else if ( ( i % 5 ) == 0 ) {
     788//       cout << endl << "        " ;
     789//     }
     790//     cout << MULTN[i] << " " ;
     791    //
     792  }
     793  //cout << endl ;
    682794  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    683795    if ( readHeader( MLTSCF[i], sameEndian ) == -1 ) {
     
    685797      return -1 ;
    686798    }
    687   }
    688   // DEBUG
    689 //   nro_debug_output( "MLTSCF", NRO_ARYMAX, MLTSCF ) ;
    690   //
     799    // DEBUG
     800//     if ( i == 0 ) {
     801//       cout << "MLTSCF  " ;
     802//     }
     803//     else if ( ( i % 5 ) == 0 ) {
     804//       cout << endl << "        " ;
     805//     }
     806//     cout << MLTSCF[i] << " " ;
     807    //
     808  }
     809  //cout << endl ;
    691810  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    692811    strcpy( c8, str8.c_str() ) ;
     
    696815    }
    697816    LAGWIND[i] = string( c8 ) ;
    698   }
    699   // DEBUG
    700 //   nro_debug_output( "LAGWIND", NRO_ARYMAX, LAGWIND ) ;
    701   //
     817    // DEBUG
     818//     if ( i == 0 ) {
     819//       cout << "LAGWIND " ;
     820//     }
     821//     else if ( ( i % 5 ) == 0 ) {
     822//       cout << endl << "        " ;
     823//     }
     824//     cout << LAGWIND[i] << " " ;
     825    //
     826  }
     827  //cout << endl ;
    702828  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    703829    if ( readHeader( BEBW[i], sameEndian ) == -1 ) {
     
    705831      return -1 ;
    706832    }
    707   }
    708   // DEBUG
    709 //   nro_debug_output( "BEBW", NRO_ARYMAX, BEBW ) ;
    710   //
     833    // DEBUG
     834//     if ( i == 0 ) {
     835//       cout << "BEBW    " ;
     836//     }
     837//     else if ( ( i % 5 ) == 0 ) {
     838//       cout << endl << "        " ;
     839//     }
     840//     cout << BEBW[i] << " " ;
     841    //
     842  }
     843  //cout << endl ;
    711844  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    712845    if ( readHeader( BERES[i], sameEndian ) == -1 ) {
     
    714847      return -1 ;
    715848    }
    716   }
    717   // DEBUG
    718 //   nro_debug_output( "BERES", NRO_ARYMAX, BERES ) ;
    719   //
     849    // DEBUG
     850//     if ( i == 0 ) {
     851//       cout << "BERES   " ;
     852//     }
     853//     else if ( ( i % 5 ) == 0 ) {
     854//       cout << endl << "        " ;
     855//     }
     856//     cout << BERES[i] << " " ;
     857    //
     858  }
     859  //cout << endl ;
    720860  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    721861    if ( readHeader( CHWID[i], sameEndian ) == -1 ) {
     
    723863      return -1 ;
    724864    }
    725   }
    726   // DEBUG
    727 //   nro_debug_output( "CHWID", NRO_ARYMAX, CHWID ) ;
    728   //
     865    // DEBUG
     866//     if ( i == 0 ) {
     867//       cout << "CHWID   " ;
     868//     }
     869//     else if ( ( i % 5 ) == 0 ) {
     870//       cout << endl << "        " ;
     871//     }
     872//     cout << CHWID[i] << " " ;
     873    //
     874  }
     875  //cout << endl ;
    729876  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    730877    if ( readHeader( ARRY[i], sameEndian ) == -1 ) {
     
    732879      return -1 ;
    733880    }
    734   }
    735   // DEBUG
    736 //   nro_debug_output( "ARRY", NRO_ARYMAX, ARRY ) ;
    737   //
     881    // DEBUG
     882//     if ( i == 0 ) {
     883//       cout << "ARRY    " ;
     884//     }
     885//     else if ( ( i % 5 ) == 0 ) {
     886//       cout << endl << "        " ;
     887//     }
     888//     cout << ARRY[i] << " " ;
     889    //
     890  }
     891  //cout << endl ;
    738892  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    739893    if ( readHeader( NFCAL[i], sameEndian ) == -1 ) {
     
    741895      return -1 ;
    742896    }
    743   }
    744   // DEBUG
    745 //   nro_debug_output( "NFCAL", NRO_ARYMAX, NFCAL ) ;
    746   //
     897    // DEBUG
     898//     if ( i == 0 ) {
     899//       cout << "NFCAL   " ;
     900//     }
     901//     else if ( ( i % 5 ) == 0 ) {
     902//       cout << endl << "        " ;
     903//     }
     904//     cout << NFCAL[i] << " " ;
     905    //
     906  }
     907  //cout << endl ;
    747908  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    748909    if ( readHeader( F0CAL[i], sameEndian ) == -1 ) {
     
    750911      return -1 ;
    751912    }
    752   }
    753   // DEBUG
    754 //   nro_debug_output( "F0CAL", NRO_ARYMAX, F0CAL ) ;
    755   //
     913    // DEBUG
     914//     if ( i == 0 ) {
     915//       cout << "F0CAL   " ;
     916//     }
     917//     else if ( ( i % 5 ) == 0 ) {
     918//       cout << endl << "        " ;
     919//     }
     920//     cout << F0CAL[i] << " " ;
     921    //
     922  }
     923  //cout << endl ;
    756924  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    757925    for ( int j = 0 ; j < 10 ; j++ ) {
     
    760928        return -1 ;
    761929      }
    762     }
    763   }
    764   // DEBUG
    765 //   nro_debug_output( "FQCAL", NRO_ARYMAX, 10, FQCAL ) ;
    766   // 
     930      // DEBUG
     931//       if ( j == 0 ) {
     932//         if ( i < 10 )
     933//           cout << "FQCAL0" << i << " " ;
     934//         else
     935//           cout << "FQCAL" << i << " " ;
     936//       }
     937//       else if ( ( j % 5 ) == 0 ) {
     938//         cout << endl << "        " ;
     939//       }
     940//       cout << FQCAL[i][j] << " " ;
     941      //
     942    }
     943    //cout << endl ;
     944  }
    767945  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    768946    for ( int j = 0 ; j < 10 ; j++ ) {
     
    771949        return -1 ;
    772950      }
    773     }
    774   }
    775   // DEBUG
    776 //   nro_debug_output( "CHCAL", NRO_ARYMAX, 10, CHCAL ) ;
    777   // 
     951     // DEBUG
     952//       if ( j == 0 ) {
     953//         if ( i < 10 )
     954//           cout << "CHCAL0" << i << " " ;
     955//         else
     956//           cout << "CHCAL" << i << " " ;
     957//       }
     958//       else if ( ( j % 5 ) == 0 ) {
     959//         cout << endl << "        " ;
     960//       }
     961//       cout << CHCAL[i][j] << " " ;
     962     //
     963    }
     964    //cout << endl ;
     965  }
    778966  for ( int i = 0 ; i < NRO_ARYMAX ; i++) {
    779967    for ( int j = 0 ; j < 10 ; j++ ) {
     
    782970        return -1 ;
    783971      }
    784     }
    785   }
    786   // DEBUG
    787 //   nro_debug_output( "CWCAL", NRO_ARYMAX, 10, CWCAL ) ;
    788   // 
     972      // DEBUG
     973//       if ( j == 0 ) {
     974//         if ( i < 10 )
     975//           cout << "CWCAL0" << i << " " ;
     976//         else
     977//           cout << "CWCAL" << i << " " ;
     978//       }
     979//       else if ( ( j % 5 ) == 0 ) {
     980//         cout << endl << "        " ;
     981//       }
     982//       cout << CWCAL[i][j] << " " ;
     983      //
     984    }
     985    //cout << endl ;
     986  }
    789987  if ( readHeader( SCNLEN, sameEndian ) == -1 ) {
    790988    os << LogIO::WARN << "Error while reading data SCNLEN." << LogIO::POST ;
Note: See TracChangeset for help on using the changeset viewer.