Changeset 14722
- Timestamp:
- 12/04/12 10:10:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/makeplots.cc
r14716 r14722 89 89 "the plots will refer to the night 1974-09-09/1974-09-10.\n" 90 90 "The advantage is that specification of the date as in\n" 91 "1974-09-09 is enough.\n" 91 "1974-09-09 is enough. Time axis starts and ends at nautical\n" 92 "twilight which is 12deg below horizon.\n" 92 93 "\n" 93 94 "Usage: makeplots sql-datetime [--ra={ra} --dec={dec}]\n"; … … 129 130 const double no_limits = conf.Get<bool>("no-limits"); 130 131 131 // -12: astronomical twilight132 // -12: nautical 132 133 ln_rst_time sun_set; // Sun set with the same date than th provided date 133 134 ln_rst_time sun_rise; // Sun rise on the following day … … 138 139 const double mjd = floor(time.Mjd())+49718+0.5; 139 140 140 cout << "Time: " << time << endl; 141 cout << "Time: " << time << endl; 142 cout << "Base: " << Time(jd-0.5) << endl; 141 143 cout << "Set: " << Time(sun_set.set) << endl; 142 144 cout << "Rise: " << Time(sun_rise.rise) << endl; … … 170 172 TH1S hframe("", "", 1, (mjd+jd0)*24*3600, (mjd+jd1)*24*3600); 171 173 hframe.SetStats(kFALSE); 172 hframe.GetXaxis()->SetTimeFormat("%Hh%M '");173 hframe.GetXaxis()->SetTitle( "Time [UTC]");174 hframe.GetXaxis()->SetTimeFormat("%Hh%M%F1995-01-01 00:00:00 GMT"); 175 hframe.GetXaxis()->SetTitle((Time(jd).GetAsStr("%d/%m/%Y")+" - "+Time(jd+1).GetAsStr("%d/%m/%Y")+" [UTC]").c_str()); 174 176 hframe.GetXaxis()->CenterTitle(); 175 177 hframe.GetYaxis()->CenterTitle(); … … 240 242 241 243 // Create graphs 242 TGraph g1, g2, g3, g4, g m;244 TGraph g1, g2, g3, g4, gr, gm; 243 245 g1.SetName(name.data()); 244 246 g2.SetName(name.data());
Note:
See TracChangeset
for help on using the changeset viewer.