Changeset 4888 for trunk/MagicSoft/Cosy/main
- Timestamp:
- 09/08/04 18:01:21 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MStarguider.cc
r4865 r4888 658 658 return kTRUE; 659 659 660 661 660 case IDM_kStargHistograms: 662 661 Toggle(fDisplay, IDM_kStargHistograms); … … 942 941 TH2F h("Hist", "dX/dY", 49, -768/2-8, 768/2+8, 37, -576/2-8, 576/2+8); // 3 943 942 944 TH1F hmag("HistMag", "Mag", 19, 0, 100);945 for (int i=0; i<mag.GetSize(); i++)946 hmag.Fill(mag[i]);943 // TH1F hmag("HistMag", "Mag", 19, 0, 100); 944 // for (int i=0; i<mag.GetSize(); i++) 945 // hmag.Fill(mag[i]); 947 946 948 947 // … … 1040 1039 stars.Sort(); // Sort by magnitude 1041 1040 1041 #ifdef EXPERT 1042 1042 TString str = "data/tracking_"; 1043 1043 str += fSao->GetMjd(); … … 1045 1045 1046 1046 ofstream fout(str); 1047 #endif 1047 1048 1048 1049 TArrayF x, y, mag; … … 1071 1072 y.AddAt(dpos.Y(), idx); 1072 1073 mag.AddAt(spot->GetMag()/star->GetMag(), idx); 1073 1074 #ifdef EXPERT 1074 1075 if (fout) { 1075 1076 fout << spot->GetX() << " " … … 1081 1082 fout << x[idx] << " " << y[idx] << " " << mag[idx] << endl; 1082 1083 } 1084 #endif 1083 1085 } 1084 1086 } … … 1292 1294 if (!fWritePictures->IsEntryEnabled(IDM_kStart) && 1293 1295 (!(n%fWrtRate) || fWriteType->IsEntryChecked(IDM_kOnce))) 1294 { 1296 { 1297 1295 1298 if (fFileType->IsEntryChecked(IDM_kPNG)) 1296 Writer::Png("pix/file", img, tm );1299 Writer::Png("pix/file", img, tm, fCRaDec->GetCoordinates()); 1297 1300 1298 1301 if (fFileType->IsEntryChecked(IDM_kPPM)) 1299 Writer::Ppm("pix/file", img, tm );1302 Writer::Ppm("pix/file", img, tm, fCRaDec->GetCoordinates()); 1300 1303 1301 1304 if (fWriteType->IsEntryChecked(IDM_kOnce))
Note:
See TracChangeset
for help on using the changeset viewer.