Changeset 363


Ignore:
Timestamp:
02/03/05 16:45:28 (20 years ago)
Author:
kil064
Message:

gain elevation poly moved to SDAttr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMath.cc

    r354 r363  
    11601160  ROScalarColumn<Float> elev(tab, "ELEVATION");
    11611161  Vector<Float> x = elev.getColumn();
    1162   x *= Float(180 / C::pi);
     1162  x *= Float(180 / C::pi);                        // Degrees
    11631163//
    11641164  const uInt nC = coeffs.nelements();
     
    11861186        msg = String("user");
    11871187     } else {
    1188         if (inst==ATPKSMB) {
    1189         } else if (inst==ATPKSHOH) {
    1190         } else if (inst==TIDBINBILLA) {
    1191            pPoly = new Polynomial<Float>(3);
    1192            coeff.resize(3);
    1193            coeff(0) = 3.58788e-1;
    1194            coeff(1) = 2.87243e-2;
    1195            coeff(2) = -3.219093e-4;
    1196         } else if (inst==ATMOPRA) {
    1197         } else {
    1198         }
     1188        SDAttr sdAttr;
     1189        coeff = sdAttr.gainElevationPoly(inst);
     1190        pPoly = new Polynomial<Float>(3);
    11991191        msg = String("built in");
    12001192     }
     
    12031195        pPoly->setCoefficients(coeff);
    12041196     } else {
    1205         throw(AipsError("There is no known gain-el polynomial known for this instrument"));
     1197        throw(AipsError("There is no known gain-elevation polynomial known for this instrument"));
    12061198     }
    12071199//
     
    13031295//
    13041296   Vector<Float> JyPerK = sdAtt.JyPerK(inst, dateObs, freqs);
     1297   cerr << "Jy/K = " << JyPerK << endl;
    13051298   Vector<Float> factors = cFac * JyPerK;
    13061299   if (toKelvin) factors = Float(1.0) / factors;
Note: See TracChangeset for help on using the changeset viewer.