Ignore:
Timestamp:
02/21/03 19:40:04 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/catalog/Slalib.h

    r1758 r1784  
    1717    virtual ~Slalib();
    1818
     19    static Double_t Dms2Rad(Int_t deg, UInt_t min, Double_t sec)
     20    {
     21        /* pi/(180*3600):  arcseconds to radians */
     22#define DAS2R 4.8481368110953599358991410235794797595635330237270e-6
     23        return DAS2R * (60.0 * (60.0 * (Double_t)deg + (Double_t)min) + sec);
     24    }
     25
     26    static Double_t Hms2Rad(Int_t hor, UInt_t min, Double_t sec)
     27    {
     28        /* pi/(12*3600):  seconds of time to radians */
     29#define DS2R 7.2722052166430399038487115353692196393452995355905e-5
     30        return DS2R * (60.0 * (60.0 * (Double_t)hor + (Double_t)min) + sec);
     31    }
     32
    1933    virtual void SetMjd(double mjd);
    2034
Note: See TracChangeset for help on using the changeset viewer.