Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.apo.nmsu.edu/Telescopes/TCC/html/inst_8h_source.html
Дата изменения: Tue Sep 15 02:25:37 2015
Дата индексирования: Sat Apr 9 23:58:31 2016
Кодировка:
lsst.tcc: include/tcc/inst.h Source File
lsst.tcc  1.2.2-3-g89ecb63
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
inst.h
Go to the documentation of this file.
1 #pragma once
2 
5 #include <boost/tr1/array.hpp> // so array works with old and new compilers
6 #include <vector>
7 #include "tcc/instPos.h"
8 
9 namespace tcc {
10 
14  class GuideProbe {
15  public:
16  bool exists;
21  double rot_gim_ang;
22  };
23 
41  class Inst {
42  public:
43 
44  /*
45  Data encoded in the NAME of the instrument data files
46  (values specified in the contents of such files will be ignored)
47  */
49  std::string instName;
50  std::string gcViewName;
51 
52  /*
53  Instrument-Independent Preferences
54  These values are held fixed or reset during an instrument change;
55  if you specify them in instrument data files they will be ignored.
56  */
57  double secUserFocus;
58  double gcUserFocus;
59  double scaleFac;
60 
62  /*
63  Mirror collimation coefficients
64  value = coeff[0] + coeff[1] sin(alt) + coeff[2] cos(alt)
65  */
81 
83 
87  double maxScaleFac;
88  double primPistScaleCoef;
91 
92  /*
93  Instrument
94  */
100 
101  double inst_foc;
103  double rot_inst_ang;
104 
106  /*
109  Instrument rotator
110  */
111  int rotID;
112  double rot_fixed_phys;
113 
116  double rot_offset;
117  double rot_scale;
118 
120 
123  int gcamID;
129 
130  std::vector<GuideProbe> gProbe;
131 
133 
135  int gmechID;
136  double gcNomFocus;
137 
138  explicit Inst()
139  :
140  instPos(),
141  instName("?"),
142  gcViewName(),
143  secUserFocus(0),
144  gcUserFocus(0),
145  scaleFac(1.0),
146 
147  primPistCoef(),
148  primXTiltCoef(),
149  primYTiltCoef(),
150  primXTransCoef(),
151  primYTransCoef(),
152  secPistCoef(),
153  secXTiltCoef(),
154  secYTiltCoef(),
155  secXTransCoef(),
156  secYTransCoef(),
157  tertPistCoef(),
158  tertXTiltCoef(),
159  tertYTiltCoef(),
160  tertXTransCoef(),
161  tertYTransCoef(),
162 
163  secPistTempCoef(),
164  maxScaleFac(1.0),
166  secPistScaleCoef(0),
167 
168  iim_ctr(),
169  iim_scale(),
170  iim_minXY(),
171  iim_maxXY(),
172  inst_foc(0),
173  rot_inst_xy(),
174  rot_inst_ang(0),
175  instPosLim(),
176 
177  rotID(0),
178  rot_fixed_phys(0),
179  rot_offset(0),
180  rot_scale(0),
181  rotLim(),
182 
183  gcamID(0),
184  gim_ctr(),
185  gim_scale(),
186  gim_minXY(),
187  gim_maxXY(),
188 
189  gProbe(),
190  ptErrProbe(0),
191 
192  gmechID(0),
193  gcNomFocus(0)
194  {}
195 
196  bool hasRotator() const { return rotID != 0; }
197  };
198 }
bool hasRotator() const
Definition: inst.h:196
std::tr1::array< double, 3 > secYTransCoef
Definition: inst.h:75
double gcUserFocus
user-set secondary mirror focus offset (um)
Definition: inst.h:58
std::tr1::array< double, 2 > maxXY
minimum x,y of probe on CCD (unbinned pixels)
Definition: inst.h:19
std::tr1::array< double, 3 > primYTransCoef
primary mirror x translation coefficients (um)
Definition: inst.h:70
double scaleFac
user-set guide camera focus offset (um)
Definition: inst.h:59
int ptErrProbe
guide probe data
Definition: inst.h:132
std::tr1::array< double, 3 > secXTransCoef
Definition: inst.h:74
std::tr1::array< double, 3 > tertYTiltCoef
Definition: inst.h:78
std::tr1::array< double, 3 > primYTiltCoef
primary mirror x tilt coefficients (arcsec)
Definition: inst.h:68
std::tr1::array< double, 3 > primXTiltCoef
primary mirror piston coefficients (um)
Definition: inst.h:67
std::tr1::array< double, 2 > rot_gp_xy
maximum x,y of probe on CCD (unbinned pixels)
Definition: inst.h:20
std::tr1::array< double, 2 > iim_maxXY
minimum position on instrument image (unbinned pixels)
Definition: inst.h:99
double rot_fixed_phys
rotator ID, or 0 if no rotator
Definition: inst.h:112
std::tr1::array< double, 2 > gim_ctr
guide camera ID
Definition: inst.h:124
std::tr1::array< double, 2 > gim_scale
location of zero boresight; need not be geometric center
Definition: inst.h:126
std::tr1::array< double, 2 > minXY
position of center of guide probe on CCD (unbinned pixels)
Definition: inst.h:18
double rot_scale
rotator mount offset (mount units)
Definition: inst.h:117
Definition: inst.h:41
double gcNomFocus
guider mechanical controller ID
Definition: inst.h:136
std::tr1::array< double, 3 > primXTransCoef
primary mirror y tilt coefficients (arcsec)
Definition: inst.h:69
std::string gcViewName
instrument name
Definition: inst.h:50
double rot_gim_ang
position of rotator w.r.g. center of guide probe (x,y deg)
Definition: inst.h:21
std::tr1::array< double, 2 > instPosLim
angle from the instrument x axis to the rotator x axis (deg)
Definition: inst.h:105
double secPistScaleCoef
primary scale coefficient (um): delta piston = coeff * (scaleFac - 1)
Definition: inst.h:90
std::tr1::array< double, 3 > secYTiltCoef
Definition: inst.h:73
std::tr1::array< double, 2 > rot_inst_xy
focus (secondary piston) offset due to instrument (um)
Definition: inst.h:102
std::tr1::array< double, 3 > secPistCoef
primary mirror y translation coefficients (um)
Definition: inst.h:71
std::tr1::array< double, 2 > iim_ctr
secondary scale coefficient (um): delta piston = coeff * (scaleFac - 1)
Definition: inst.h:95
int gmechID
Definition: inst.h:135
InstPosition instPos
Definition: inst.h:48
double maxScaleFac
Definition: inst.h:87
std::tr1::array< double, 3 > tertPistCoef
Definition: inst.h:76
bool exists
Definition: inst.h:16
std::tr1::array< double, 3 > primPistCoef
Definition: inst.h:66
std::vector< GuideProbe > gProbe
maximum position on guide image (unbinned pixels)
Definition: inst.h:130
double rot_inst_ang
position of the center of the rotator in instrument frame (x,y deg)
Definition: inst.h:103
double secUserFocus
name of current guide camera view
Definition: inst.h:57
double inst_foc
maximum position on instrument image (unbinned pixels)
Definition: inst.h:101
double rot_offset
mount pos = offet + (scale * physical pos)
Definition: inst.h:116
std::tr1::array< double, 5 > secPistTempCoef
Definition: inst.h:82
double primPistScaleCoef
Definition: inst.h:89
Inst()
nominal focus for guide camera
Definition: inst.h:138
int gcamID
Definition: inst.h:123
std::tr1::array< double, 5 > rotLim
rotator mount scale (mount units/degree)
Definition: inst.h:119
std::tr1::array< double, 2 > iim_scale
location of zero boresight; need not be geometric center
Definition: inst.h:97
std::tr1::array< double, 2 > gim_minXY
guide image scale (unbinned pixels/deg on the sky)
Definition: inst.h:127
int rotID
Definition: inst.h:111
std::tr1::array< double, 2 > gim_maxXY
minimum position on guide image (unbinned pixels)
Definition: inst.h:128
std::tr1::array< double, 3 > secXTiltCoef
secondary mirror...
Definition: inst.h:72
std::tr1::array< double, 3 > tertYTransCoef
Definition: inst.h:80
std::string instName
instrument position
Definition: inst.h:49
std::tr1::array< double, 2 > ctr
does this probe exist? This allows disabling an existing probe.
Definition: inst.h:17
std::tr1::array< double, 3 > tertXTransCoef
Definition: inst.h:79
std::tr1::array< double, 3 > tertXTiltCoef
tertiary mirror...
Definition: inst.h:77
std::tr1::array< double, 2 > iim_minXY
instrument image scale (unbinned pixels/deg on the sky)
Definition: inst.h:98