Changeset 4888 for trunk/MagicSoft
- Timestamp:
- 09/08/04 18:01:21 (20 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r4867 r4888 20 20 - Acquisition of sky brightness (average CCD pixel content in Starfield) 21 21 and comparison to last sky brightness 22 - MStarguider::TrackingError(): Modified histogram binning to enhance excess 22 - MStarguider::TrackingError(): Modified histogram binning to enhance 23 excess 23 24 - MStarguider::FindStar(): Now returns position of found star as ZdAz 24 - MStarguider::FindStar(): Cut and ROI box can now handed over as parameters 25 - MStarguider::FindStar(): Cut and ROI box can now handed over as i 26 parameters 25 27 - MStarguider::FindStar(): Scale factor to compensate for different FOV 26 28 (TPoint camera vs. Starfield camera) 27 29 - MStarguider::ProcessFrame(): Modified structure to accomodate Starguider 28 algorithm and tools: 1) Find Center of PMT camera, find Star (if activated) 30 algorithm and tools: 1) Find Center of PMT camera, find Star (if 31 activated) 29 32 to obtain misspointing found from PMT camera. 30 33 - Set ROI for starfield in space not occupied by the PMT camera in the 31 34 starfield camera FOV 32 35 - Calculate star positions and draw stars only in that ROI 33 - fStatus variable contains status of starguider (Error, Monitoring, Standby) 36 - fStatus variable contains status of starguider (Error, Monitoring, 37 Standby) 34 38 - Draw representation of MAGIC's FOV on starfield 35 39 - Send STARG-REPORTS unconditionally by using MDriveCom::SendStargReport 36 37 38 Finalized 39 details of all changes follow after some additional testing 40 on 2004/09/06 (this evening). 40 - Add Ra/Dec in filename when writing pictures 41 - Introduced #define EXPERT to allow for debug output 42 - tracking_*.txt is only produced in case of EXPERT mode 41 43 42 44 * tcpip/MTcpIpIO.[h,cc], tcpip/MCeCoCom.[h,cc] … … 95 97 chosen FOV 96 98 99 * videodev/Writer.[cc,h] 100 - Ra/Dec in filename when writing pictures 97 101 102 98 103 99 104 2004/08/23 - Thomas Bretz -
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)) -
trunk/MagicSoft/Cosy/videodev/Writer.cc
r2615 r4888 6 6 #include <stdio.h> // FILE 7 7 #include <png.h> 8 #include <coord.h> 8 9 9 10 #include "MTime.h" … … 12 13 13 14 void Writer::Png(const char *fname, const byte *buf, 14 struct timeval *date )15 struct timeval *date, const XY xy) 15 16 { 16 17 MTime t(*date); … … 21 22 mjd.Append('0', 10-mjd.Length()); 22 23 24 TString pos; 25 pos += xy.X(); 26 pos = pos.Strip(TString::kBoth); 27 pos +="_"; 28 TString posy; 29 posy += xy.Y(); 30 posy = posy.Strip(TString::kBoth); 31 pos +=posy; 32 23 33 TString name = fname; 24 34 name += "_"; 25 35 name += mjd; 36 name += "_"; 37 name += pos; 26 38 name += ".png"; 27 39 … … 125 137 } 126 138 127 void Writer::Ppm(const char *fname, const byte *img, struct timeval *date )139 void Writer::Ppm(const char *fname, const byte *img, struct timeval *date, const XY xy) 128 140 { 129 141 TString name = fname; … … 131 143 MTime t(*date); 132 144 145 TString pos; 146 pos += xy.X(); 147 pos = pos.Strip(TString::kBoth); 148 pos +="_"; 149 TString posy; 150 posy += xy.Y(); 151 posy = posy.Strip(TString::kBoth); 152 pos +=posy; 153 133 154 name += "_"; 134 155 name += t.GetMjd()-52000; 156 name += "_"; 157 name += pos; 135 158 name += ".ppm"; 136 159 -
trunk/MagicSoft/Cosy/videodev/Writer.h
r1816 r4888 9 9 #endif 10 10 11 #ifndef COORD_H 12 #include <coord.h> 13 #endif 14 11 15 typedef unsigned char byte; 12 16 … … 17 21 public: 18 22 19 static void Ppm(const char *fname, const byte *img, struct timeval *date );20 static void Png(const char *fname, const byte *buf, struct timeval *date );23 static void Ppm(const char *fname, const byte *img, struct timeval *date, const XY xy); 24 static void Png(const char *fname, const byte *buf, struct timeval *date, const XY xy); 21 25 22 26 ClassDef(Writer, 0)
Note:
See TracChangeset
for help on using the changeset viewer.