Luiza  v03-01
SatelliteSearching.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef SatelliteSearching_h
4 #define SatelliteSearching_h
5 
6 #include "luiza/Processor.h"
7 #include <sstream>
8 #include "luiza/VerbosityLevels.h"
9 #include "luiza/LuizaExceptions.h"
10 #include "streamlog/streamlog.h"
11 
12 
14 //#include "gloria/GloriaFitsImage.h"
15 //#include "gloria/GloriaAstrometry.h"
16 #include <list>
17 #include <set>
18 #include <iostream>
19 #include <fstream>
20 #include <algorithm>
21 #include <cmath>
22 #include <string>
24 
25 using namespace gloria;
26 using namespace std;
27 class satellite;
28 
29 const float sigmaTrigger = 3;
30 const long minLength = 10;
31 
32 extern double median,trigger;
33 extern long *pixel, X, Y;
34 extern vector< satellite > satellites;
35 extern set<long> checked;
36 extern satellite s;
37 extern double p[16];
38 /*
39  p[0] = path length;
40  p[1] = X1;
41  p[2] = Y1;
42  p[3] = X2;
43  p[4] = Y2;
44  p[5] = a;
45  p[6] = b;
46  p[7] = fitting arguments;
47  p[8] = angle;
48  p[9] = sigma;
49  p[10] = A;
50  p[11] = C;
51  p[12] = x;
52  p[13] = y;
53  p[14] = dx;
54  p[15] = dy;
55 */
56 
57 namespace luiza
58 {
60 
84  {
85  public:
86  virtual Processor* newProcessor() { return new SatelliteSearching ; }
87 
89 
91 
93  virtual void init() ;
94 
96 
98  virtual void startAnalysis( GloriaDataContainer* ) ;
99 
101  virtual void processData( GloriaDataContainer* data ) ;
102 
103 
104  virtual void check( GloriaDataContainer* data ) ;
105 
107  virtual void concludeAnalysis( GloriaDataContainer* ) ;
108 
110  virtual void end() ;
111 
112  protected:
114  void printEndMessage() const ;
115 
116  string _imageCollectionName;
117  string _outputTextFile;
118 
119  //int _Xmin,_Xmax,_Ymin,_Ymax;
120  int _nLoops ;
121  int _nImgCollections ;
122  int _nImages ;
123  GloriaFitsTable *_imgTable;
124 
125  void MedianValue();
126  void EraseSatellite();
127  void WriteResults();
128  double quantity;
129  };
130 
131 } // end namespace luiza
132 #endif
133 
134 
135 class satellite
136 {
137 public:
138  long start;
139  long end;
140  long length;
141  list<long> path;
142 };
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
Base class for Luiza processors.
Definition: Processor.h:55
Example processor for users.
Definition: SatelliteSearching.h:83
virtual Processor * newProcessor()
Return a new instance of the processor.
Definition: SatelliteSearching.h:86
Class for reading and processing fits tables in Luiza.
Definition: GloriaFitsTable.h:109
Namespace for Luiza framework.
Definition: CCCollection.h:6