Changeset 1275 for trunk/MagicSoft/Cosy/catalog
- Timestamp:
- 04/12/02 16:59:23 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/catalog/SlaStars.cc
r1109 r1275 40 40 slaMappa(2000.0, mjd, fAmprms); 41 41 slaAoppa(mjd, 0, // mjd, UT1-UTC 42 GetElong(), GetPhi(), 148, // g ttingen long, lat, height42 GetElong(), GetPhi(), 148, // göttingen long, lat, height 43 43 0, 0, // polar motion x, y-coordinate (radians) 44 44 273.155, 1013.25, 0.5, // temp, pressure, humidity … … 69 69 70 70 return RaDec(ra, dec); 71 } 72 73 RaDec SlaStars::CalcRaDecFast(const AltAz &altaz) const 74 { 75 // 76 // This function does a coordinate system transformation only. 77 // This is very fast compared to a correct tranformation with all 78 // effects, but much less accurate. 79 // 80 // It transforms Altitude/Azimuth [rad] into 81 // Right Ascension/Declination [rad] 82 // 83 double ha, dec; 84 slaDh2e(altaz.Az(), altaz.Alt(), GetPhi(), &ha, &dec); 85 return RaDec(GetAlpha()-ha, dec); 86 } 87 88 RaDec SlaStars::CalcRaDecFast(const ZdAz &zdaz) const 89 { 90 // 91 // This function does a coordinate system transformation only. 92 // This is very fast compared to a correct tranformation with all 93 // effects, but much less accurate. 94 // 95 // It transforms Zenith Distance/Azimuth [rad] into 96 // Right Ascension/Declination [rad] 97 // 98 return CalcRaDecFast(AltAz(kPiDiv2-zdaz.Zd(), zdaz.Az())); 99 } 100 101 ZdAz SlaStars::CalcZdAzFast(const RaDec &radec) const 102 { 103 // 104 // This function does a coordinate system transformation only. 105 // This is very fast compared to a correct tranformation with all 106 // effects, but much less accurate. 107 // 108 // It transforms Right Ascension/Declination [rad] into 109 // zenith Distance/Azimuth [rad] 110 // 111 AltAz altaz = CalcAltAzFast(radec); 112 return ZdAz(kPiDiv2-altaz.Alt(), altaz.Az()); 113 } 114 115 AltAz SlaStars::CalcAltAzFast(const RaDec &radec) const 116 { 117 // 118 // This function does a coordinate system transformation only. 119 // This is very fast compared to a correct tranformation with all 120 // effects, but much less accurate. 121 // 122 // It transforms Right Ascension/Declination [rad] into 123 // Altitude/Azimuth [rad] 124 // 125 double az, el; 126 slaDe2h(GetAlpha()-radec.Ra(), radec.Dec(), GetPhi(), &az, &el); 127 return AltAz(el, az); 71 128 } 72 129
Note:
See TracChangeset
for help on using the changeset viewer.