Ignore:
Timestamp:
12/29/03 18:19:38 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/MObservatory.cc

    r2578 r2750  
    3030/////////////////////////////////////////////////////////////////////////////
    3131#include "MObservatory.h"
     32
     33#include "MAstro.h"
    3234
    3335#include "MLog.h"
     
    6365        // Values taken from the GPS Receiver (avg 20h)
    6466        // on 26/11/2003 at 17h30 in the counting house
    65         fLatitude  = Dms2Rad( 28, 45, 42.576);
    66         fLongitude = Dms2Rad(-17, 53, 26.460);
     67        fLatitude  = MAstro::Dms2Rad(28, 45, 42.576, '+');
     68        fLongitude = MAstro::Dms2Rad(17, 53, 26.460, '-');
    6769        fHeight    = 2196.5; // m
    6870        fObservatoryName = "Observatorio del Roque de los Muchachos (Magic1)";
     
    7072
    7173    case kWuerzburgCity:
    72         fLatitude  = Dms2Rad(51, 38, 48.0);
    73         fLongitude = Dms2Rad( 9, 56, 36.0);
     74        fLatitude  = MAstro::Dms2Rad(51, 38, 48.0);
     75        fLongitude = MAstro::Dms2Rad( 9, 56, 36.0);
    7476        fHeight    = 300;
    7577        fObservatoryName = "Wuerzburg City";
  • trunk/MagicSoft/Mars/mtemp/MObservatory.h

    r1784 r2750  
    5050    LocationName_t GetObservatoryKey() const { return fObservatoryKey; }
    5151
    52     static Double_t Dms2Rad(Int_t deg, UInt_t min, Double_t sec)
    53     {
    54         /* pi/(180*3600):  arcseconds to radians */
    55 #define DAS2R 4.8481368110953599358991410235794797595635330237270e-6
    56         return DAS2R * (60.0 * (60.0 * (Double_t)deg + (Double_t)min) + sec);
    57     }
    58 
    59     static Double_t Hms2Rad(Int_t hor, UInt_t min, Double_t sec)
    60     {
    61         /* pi/(12*3600):  seconds of time to radians */
    62 #define DS2R 7.2722052166430399038487115353692196393452995355905e-5
    63         return DS2R * (60.0 * (60.0 * (Double_t)hor + (Double_t)min) + sec);
    64     }
    65 
    6652    ClassDef(MObservatory, 0)
    6753
Note: See TracChangeset for help on using the changeset viewer.