Ignore:
Timestamp:
09/08/11 19:35:40 (13 years ago)
Author:
ShinnosukeKawakami
Message:

merged parallel branch to trunk

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src

  • trunk/src/NROFiller.cpp

    r2272 r2289  
    100100  String srcname ;
    101101  String fieldname ;
    102   Array<Float> spectra ;
    103   Array<uChar> flagtra ;
    104   Array<Float> tsys ;
    105   Array<Double> direction ;
     102  Vector<Float> spectra ;
     103  Vector<uChar> flagtra ;
     104  Vector<Float> tsys ;
     105  Vector<Double> direction ;
    106106  Float azimuth ;
    107107  Float elevation ;
    108   Float parangle ;
     108  Float parangle = 0.0 ;
    109109  Float opacity ;
    110110  uInt tcalid ;
     
    117117  Float winddir ;
    118118  Double srcvel ;
    119   Array<Double> propermotion ;
     119  Vector<Double> propermotion( 2, 0.0 ) ;
    120120  Vector<Double> srcdir ;
    121   Array<Double> scanrate ;
     121  Vector<Double> scanrate( 2, 0.0 ) ;
    122122  Int rowCount = 0 ;
    123123
     
    126126  Vector<Float> defaultTcal( 1, 1.0 ) ;
    127127  String tcalTime = MVTime( header.utc ).string( MVTime::YMD ) ;
     128
     129  // TCAL subtable rows
     130  setTcal( tcalTime, defaultTcal ) ;
     131
     132  // FOCUS subtable rows
     133  setFocus( parangle ) ;
     134
    128135  for ( Int irow = 0 ; irow < (Int)nRow ; irow++ ) {
    129136    // check scan intent
     
    195202    setMolecule( restfreq ) ;
    196203
    197     // FOCUS subtable row
    198     setFocus( parangle ) ;
    199 
    200204    // WEATHER subtable row
    201205    float p = 7.5 * temperature / ( 273.3 + temperature ) ;
     
    204208    winddir *= C::degree ; // deg->rad
    205209    humidity /= sh ; // P_H2O->relative humidity
    206     setWeather( temperature, pressure, humidity, windvel, winddir ) ;
    207 
    208     // TCAL subtable row
    209     // use default since NRO input is calibrated data
    210     setTcal( tcalTime, defaultTcal ) ;
    211    
     210    setWeather2( temperature, pressure, humidity, windvel, winddir ) ;
    212211
    213212    // set row attributes
    214213    // SPECTRA, FLAGTRA, and TSYS
    215     Vector<Float> spectrum( spectra );
    216     Vector<uChar> flags( flagtra ) ;
    217     Vector<Float> Tsys( tsys ) ;
    218     setSpectrum( spectrum, flags, Tsys ) ;
     214    setSpectrum( spectra, flagtra, tsys ) ;
    219215
    220216    // SCANNO, CYCLENO, IFNO, POLNO, and BEAMNO
    221     //uInt ifno = table_->frequencies().addEntry( (Double)fqs[0], (Double)fqs[1], (Double)fqs[2] ) ;
    222217    setIndex( scanno, cycleno, ifno, polno, beamno ) ;
    223218
     
    226221
    227222    // DIRECTION
    228     Vector<Double> dir( direction ) ;
    229     setDirection(dir, azimuth, elevation ) ;
     223    setDirection( direction, azimuth, elevation ) ;
    230224
    231225    // TIME and INTERVAL
     
    233227
    234228    // SRCNAME, SRCTYPE, FIELDNAME, SRCDIRECTION, SRCPROPERMOTION, and SRCVELOCITY
    235     Vector<Double> propermot( propermotion ) ;
    236     setSource( srcname, srcType, fieldname, srcdir, propermot, srcvel ) ;
     229    setSource( srcname, srcType, fieldname, srcdir, propermotion, srcvel ) ;
    237230
    238231    // SCANRATE
    239     Vector<Double> srate( scanrate ) ;
    240     setScanRate( srate ) ;
     232    setScanRate( scanrate ) ;
    241233
    242234    // OPACITY
Note: See TracChangeset for help on using the changeset viewer.