Changeset 2289 for trunk/src/NROFiller.cpp
- Timestamp:
- 09/08/11 19:35:40 (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src
- Property svn:mergeinfo changed
/branches/parallel/src (added) merged: 2205,2240,2247,2262-2263,2267,2274,2281-2285,2287-2288
- Property svn:mergeinfo changed
-
trunk/src/NROFiller.cpp
r2272 r2289 100 100 String srcname ; 101 101 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 ; 106 106 Float azimuth ; 107 107 Float elevation ; 108 Float parangle ;108 Float parangle = 0.0 ; 109 109 Float opacity ; 110 110 uInt tcalid ; … … 117 117 Float winddir ; 118 118 Double srcvel ; 119 Array<Double> propermotion;119 Vector<Double> propermotion( 2, 0.0 ) ; 120 120 Vector<Double> srcdir ; 121 Array<Double> scanrate;121 Vector<Double> scanrate( 2, 0.0 ) ; 122 122 Int rowCount = 0 ; 123 123 … … 126 126 Vector<Float> defaultTcal( 1, 1.0 ) ; 127 127 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 128 135 for ( Int irow = 0 ; irow < (Int)nRow ; irow++ ) { 129 136 // check scan intent … … 195 202 setMolecule( restfreq ) ; 196 203 197 // FOCUS subtable row198 setFocus( parangle ) ;199 200 204 // WEATHER subtable row 201 205 float p = 7.5 * temperature / ( 273.3 + temperature ) ; … … 204 208 winddir *= C::degree ; // deg->rad 205 209 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 ) ; 212 211 213 212 // set row attributes 214 213 // 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 ) ; 219 215 220 216 // SCANNO, CYCLENO, IFNO, POLNO, and BEAMNO 221 //uInt ifno = table_->frequencies().addEntry( (Double)fqs[0], (Double)fqs[1], (Double)fqs[2] ) ;222 217 setIndex( scanno, cycleno, ifno, polno, beamno ) ; 223 218 … … 226 221 227 222 // DIRECTION 228 Vector<Double> dir( direction ) ; 229 setDirection(dir, azimuth, elevation ) ; 223 setDirection( direction, azimuth, elevation ) ; 230 224 231 225 // TIME and INTERVAL … … 233 227 234 228 // 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 ) ; 237 230 238 231 // SCANRATE 239 Vector<Double> srate( scanrate ) ; 240 setScanRate( srate ) ; 232 setScanRate( scanrate ) ; 241 233 242 234 // OPACITY
Note: See TracChangeset
for help on using the changeset viewer.