9 #define SOURCE_NAME "SOURCE"
11 #define SOURCE_GPS -931158395
40 #define COORDINATES "Geographic"
46 #define DISPLAY_WORLD_MAP
47 #define WORLD_MAP_DIR "$CWB_GWAT/data/"
52 #define SKYMASK_RADIUS 20 // degrees
60 gSystem->Load(
"libMathCore");
77 #ifdef SOURCE_UTC // if SOURCE_UTC is defined then it is used as source gps time
87 cout <<
"-----------------------------------------------------" << endl;
88 cout <<
"Source Coordinates " << endl;
89 cout <<
"-----------------------------------------------------" << endl;
91 cout <<
"Time " << endl;
93 cout <<
"GPS - " << gps << endl;
95 cout <<
"Celestial coordinates " << endl;
97 cout <<
"RA (deg) - " <<
SOURCE_RA << endl;
100 cout <<
"CWB coodinates " << endl;
101 cout <<
"THETA (deg) - " << th << endl;
102 cout <<
"PHI (deg) - " << ph << endl;
103 cout <<
"-----------------------------------------------------" << endl;
109 for (
int l=0;
l<
L;
l++) {
114 double Dot = ov1.Dot(ov2);
115 double dOmega = 180.*TMath::ACos(Dot)/
TMath::Pi();
124 sprintf(oFile,
"CelestialSkyMask_DEC_%3.1f_RA_%3.1f_GPS_N%3.1f_RADIUS_%3.1f",
127 sprintf(oFile,
"CelestialSkyMask_DEC_%3.1f_RA_%3.1f_GPS_%3.1f_RADIUS_%3.1f",
131 oFileName.ReplaceAll(
".",
"d");
132 oFileName=oFileName+
".txt";
133 cout <<
"Save File : " << oFileName.Data() << endl;
135 out.open(oFileName.Data(),
ios::out);
136 if (!out.good()) {cout <<
"Error Opening File : " << oFileName.Data() << endl;
exit(1);}
137 for (
int l=0;
l<
L;
l++) out <<
l <<
" " << gSM->
get(
l) << endl;
145 #ifdef DISPLAY_WORLD_MAP
void CreateCelestialSkyMask()
void set(size_t i, double a)
void DrawMarker(double phi, double theta, int marker, Size_t msize=1, Color_t tcolor=1)
void DrawText(double phi, double theta, TString text, double tsize=0.04, Color_t tcolor=1)
double getTheta(size_t i)
void Draw(int dpaletteId=0, Option_t *option="colfz")
void SetWorldMapPath(TString worldMapPath)
double RA2phi(double ph, double gps)
double phi2RA(double ph, double gps)
void SetTitle(TString title)
void SetWorldMap(bool drawWorldMap=true)
void CwbToGeographic(double ilongitude, double ilatitude, double &olongitude, double &olatitude)
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
double get(size_t i)
param: sky index
void SetOptions(TString projection="hammer", TString coordinate="Geographic", double resolution=1, bool goff=false)