21 X=-2.161414928e6; Y=-3.834695183e6; Z=4.600350224e6;
47 double latitude,longitude,elevation;
53 cout << latitude*rad2grad <<
" " << longitude*rad2grad <<
" " << elevation << endl;
61 cout <<
"uN : " << uN[0] <<
" " << uN[1] <<
" " << uN[2] << endl;
62 cout << uN[0]*uN[0]+uN[1]*uN[1]+uN[2]*uN[2] << endl;
64 cout << X <<
" " << Y <<
" " << Z << endl;
66 cout << X <<
" " << Y <<
" " << Z << endl;
74 if(lt_t>0) LAT=
'N';
else {LAT=
'S';lt_t=-lt_t;}
76 int lt_m =
int((lt_t-lt_d)*60);
77 float lt_s = (lt_t-lt_d-lt_m/60.)*3600.;
83 int lg_m =
int((lg_t-lg_d)*60);
84 float lg_s = (lg_t-lg_d-lg_m/60.)*3600.;
86 cout <<
"LAT: " << LAT <<
" " << lt_d <<
", " << lt_m <<
", " << lt_s <<
" LONG: " << LON <<
" " << lg_d <<
", " << lg_m <<
", " << lg_s << endl;
double GetSite(TString ifo, TString type="")
void TestGeodeticGeocentric()
void GeocentricToGeodetic(double X, double Y, double Z, double &latitude, double &longitude, double &elevation)
void GeodeticToGeocentric(double latitude, double longitude, double elevation, double &X, double &Y, double &Z)
void printangles(double lt, double lg)
void GetCartesianComponents(double u[3], double Alt, double Az, double Lat, double Lon)