Changeset 475
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 -
trunk/src/SDAttr.h
r467 r475 74 74 const casa::Vector<casa::Float>& freqs) const; 75 75 76 // Factor to convert K -> Jy. Provide aperture efficiency and dish geometric diameter (m)77 static casa::Float findJyPerKFac (casa::Float etaAp, casa::Float D);78 79 76 // Gain Elevation polynomial correction coefficients (elevation in degrees) 80 77 // Returns length 0 if not known. 81 78 casa::Vector<casa::Float> gainElevationPoly (Instrument instr) const; 79 80 81 // Helper function to check instrument (antenna) name and give enum 82 static Instrument convertInstrument(const casa::String& instrument, 83 casa::Bool throwIt); 84 85 // Helper function. Finds factor to convert K -> Jy. Provide aperture efficiency and dish geometric diameter (m) 86 static casa::Float findJyPerK (casa::Float etaAp, casa::Float D); 82 87 83 88 private:
Note:
See TracChangeset
for help on using the changeset viewer.