Changeset 475 for trunk/src/SDAttr.cc
- Timestamp:
- 02/18/05 11:53:17 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDAttr.cc
r467 r475 165 165 facs = interp (freqs/1.0e9f, TidEtaApX_, TidEtaApY_); 166 166 } 167 break; 167 168 default: 168 169 { … … 185 186 Vector<Float> facs(freqs.nelements(),1.0); 186 187 for (uInt i=0; i<freqs.nelements(); i++) { 187 facs(i) = SDAttr::findJyPerK Fac(etaAp(i), D);188 facs(i) = SDAttr::findJyPerK (etaAp(i), D); 188 189 } 189 190 // … … 192 193 193 194 194 Float SDAttr::findJyPerK Fac(Float etaAp, Float D)195 Float SDAttr::findJyPerK (Float etaAp, Float D) 195 196 // 196 197 // Converts K -> Jy … … 293 294 TidGainElPoly_(2) = -3.219093e-4; 294 295 } 296 297 298 Instrument SDAttr::convertInstrument(const String& instrument, 299 Bool throwIt) 300 { 301 String t(instrument); 302 t.upcase(); 303 304 // The strings are what SDReader returns, after cunning interrogation 305 // of station names... :-( 306 Instrument inst = asap::UNKNOWN; 307 if (t==String("DSS-43")) { 308 inst = TIDBINBILLA; 309 } else if (t==String("ATPKSMB")) { 310 inst = ATPKSMB; 311 } else if (t==String("ATPKSHOH")) { 312 inst = ATPKSHOH; 313 } else if (t==String("ATMOPRA")) { 314 inst = ATMOPRA; 315 } else if (t==String("CEDUNA")) { 316 inst = CEDUNA; 317 } else if (t==String("HOBART")) { 318 inst = HOBART; 319 } else { 320 if (throwIt) { 321 throw AipsError("Unrecognized instrument - use function scan.set_instrument to set"); 322 } 323 } 324 return inst; 325 } 326 327
Note: See TracChangeset
for help on using the changeset viewer.