Blame view

config/old_config/config_unit_simulunit1.xml 15.3 KB
53dce684   Alain Klotz   Configuration fil...
1
<?xml version = '1.0' encoding = 'UTF-8'?>
b604fd0a   Etienne Pallier   1 unique requirem...
2

53dce684   Alain Klotz   Configuration fil...
3
4
<!--
=============================================================================
b604fd0a   Etienne Pallier   1 unique requirem...
5
6
This File describes all the parameters that characterize a unit.
=============================================================================
53dce684   Alain Klotz   Configuration fil...
7
8
9
One parameter <param></param> is defined using the following attributes:
section, key, value, type, unit, access, comment, label, reference, timestamp 

aa8e5884   Alain Klotz   Grosse améliorati...
10
* Mandatory
53dce684   Alain Klotz   Configuration fil...
11
12
section : Category of the keyword
key : Key of the keyword
514b20f7   Alain Klotz   Correction bug da...
13
value : Useful value of the keyword (=default value when defining a HTML form)
aa8e5884   Alain Klotz   Grosse améliorati...
14
15

* Optional
53dce684   Alain Klotz   Configuration fil...
16
17
18
19
type : Python type to interpret the value
unit : Physical value to allow conversions
access : 0brwrwrw (rw for PI-Mount, rw for Maintenance, rw for Astronomers)
comment : Comment to be added as a popup in the web page
514b20f7   Alain Klotz   Correction bug da...
20
label : Text to describe the value
53dce684   Alain Klotz   Configuration fil...
21
22
reference : Refere to the source of the value
timestamp : Date when the value has been last updated
514b20f7   Alain Klotz   Correction bug da...
23
24
25
26
27
28
29
default_value : Default value (useful for web forms)

* Optional to describe a HTML form <form>
label : HTML Text to describe the value in a web page (for forms)
element : HTML form element tag (input, select, etc.)
element_attribute : HTML form element attributes
options : HTML tag <option> contents in case of HTML element <select>
53dce684   Alain Klotz   Configuration fil...
30
31
32
33
34
35

=============================================================================
-->

<unit alias="SimulUnit1">

aa8e5884   Alain Klotz   Grosse améliorati...
36
37
38
39
  <!-- Some informations about this configuration -->
  <date_creation>2018-04-13 00:38:14</date_creation>
  <date_last_modification>2019-02-18 16:38:00</date_last_modification>
  <author_last_modification>Alain Klotz</author_last_modification>
06d938bf   Alain Klotz   Amélioration de l...
40
  <param section="unit" key="description" value="Unit of simulation No 1"/>
aa8e5884   Alain Klotz   Grosse améliorati...
41
42
43
44
45

  <!-- Select the unit as one mount and one or more channels -->
  <param section="assembly" key="alias" value="PyROSDatabase" comment="database"/>
  <param section="assembly" key="alias" value="VirtualMount" comment="mount"/>
  <param section="assembly" key="alias" value="VirtualCamera1" comment="channel"/>
53dce684   Alain Klotz   Configuration fil...
46
  
aa8e5884   Alain Klotz   Grosse améliorati...
47
48
  <!-- A database definition -->
  <database alias="PyROSDatabase">
06d938bf   Alain Klotz   Amélioration de l...
49
    <param section="database" key="description" value="PyROS database"/>
aa8e5884   Alain Klotz   Grosse améliorati...
50
51
52
53
54
55
56
57
58
59
60
    <!-- Select the type of database (DBMS) -->
    <param section="management" key="system" value="MySQL"/>
    <!-- Access autorizations -->
    <param section="access" key="host" value="127.0.0.1"/>
    <param section="access" key="port" value="3306"/>
    <param section="access" key="user" value="pyros"/>
    <param section="access" key="pswd" value="6cacc99693b5bca5a2b9e37dbba529116d" type="str" unit="crypted1"/>
    <!-- Database characteristics -->
    <param section="database" key="name" value="pyros"/>
  </database>

53dce684   Alain Klotz   Configuration fil...
61
  <!-- A mount definition -->
b604fd0a   Etienne Pallier   1 unique requirem...
62
  <mount alias="VirtualMount">
aa8e5884   Alain Klotz   Grosse améliorati...
63
    <!-- General description -->
06d938bf   Alain Klotz   Amélioration de l...
64
    <param section="mount" key="description" value="Losmandy"/>
aa8e5884   Alain Klotz   Grosse améliorati...
65
66
    <param section="mount" key="home" value="IRAP" type="str" unit="" comment="Institut de Recherche en Astrophysique et Planetologie"/>
    <param section="mount" key="iau_num" value="n.d" type="str" unit="" comment="Not defined"/>
53dce684   Alain Klotz   Configuration fil...
67
68
69
70
    <!-- Set period parameters -->
    <param section="period" key="periods" value="(1, 2018, 9, 1, 2019, 3, 1), (2, 2019, 3, 1, 2019, 9, 1)" type="int" unit=""/>
    <param section="period" key="sun_elev_night" value="-10" type="float" unit="deg"/>
    <param section="partner" key="partners" value="(1, 'PAA', 45, 'Partner_A'), (1, 'PAB', 22, 'Partner_B'), (1, 'PAC', 33, 'Partner_C')" type="int" unit=""/>
aa8e5884   Alain Klotz   Grosse améliorati...
71
72
    <!-- Set device controller agent -->
    <param section="MountPointing" key="agent" value="TelescopeSimulator" comment="Value must be the alias of the controller agent"/>
53dce684   Alain Klotz   Configuration fil...
73
    <!-- Set mount paramters for simulations and scheduler -->
aa8e5884   Alain Klotz   Grosse améliorati...
74
75
76
77
78
79
80
81
    <param section="MountPointing" key="home" value="GPS 1.477083 E 43.81667 150" type="str" unit=""/>
    <param section="MountPointing" key="axe_type" value="hadec" type="str" unit=""/>
    <param section="MountPointing" key="ha_liminf" value="-90" type="float" unit="Angle"/>
    <param section="MountPointing" key="ha_limsup" value="90" type="float" unit="Angle"/>
    <param section="MountPointing" key="dec_liminf" value="-30" type="float" unit="Angle"/>
    <param section="MountPointing" key="dec_limsup" value="89.7" type="float" unit="Angle"/>
    <param section="MountPointing" key="ha_vel_profile" value="scurve" type="str" unit=""/>
    <param section="MountPointing" key="dec_vel_profile" value="scurve" type="str" unit=""/>
53dce684   Alain Klotz   Configuration fil...
82
83
84
  </mount>
  
  <!-- A channel definition -->
aa8e5884   Alain Klotz   Grosse améliorati...
85
86
  <channel alias="VirtualCamera1">
    <!-- General description -->
06d938bf   Alain Klotz   Amélioration de l...
87
    <param section="channel" key="description" value="Takahshi + Atik"/>
aa8e5884   Alain Klotz   Grosse améliorati...
88
89
90
91
92
93
94
    <!-- Set device controller agent -->
    <param section="DetectorSensor"  key="agent" value="CameraSimulator" comment="Value must be the alias of the controller agent"/>
    <param section="DetectorShutter" key="agent" value="CameraSimulator" comment="Value must be the alias of the controller agent"/>
    <param section="DetectorTimer"   key="agent" value="CameraSimulator" comment="Value must be the alias of the controller agent"/>
    <param section="FilterSelector"  key="agent" value="CameraSimulator" comment="Value must be the alias of the controller agent"/>
    <param section="DetectorFocus"   key="agent" value="TelescopeSimulator" comment="Value must be the alias of the controller agent"/>
    <!-- Camera properties for plans and for simulations -->
06d938bf   Alain Klotz   Amélioration de l...
95
    <param section="DetectorSensor" key="description" value="Atik 460" type="str" unit=""/>
aa8e5884   Alain Klotz   Grosse améliorati...
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
    <param section="DetectorSensor" key="serial_number" value="S/N67Y" type="str" unit=""/>
    <param section="DetectorSensor" key="sensor_type" value="CCD" type="str" unit=""/>
    <param section="DetectorSensor" key="efficiency" value="0.9" type="float" unit=""/>
    <param section="DetectorSensor" key="binnings" value="(1, 1), (2, 2), (3, 3), (4,4)" type="list" unit=""/>
    <param section="DetectorSensor" key="exptime_mini" value="0.1" type="float" unit="sec"/>
    <param section="DetectorSensor" key="exptime_maxi" value="1000" type="float" unit="sec"/>
    <param section="DetectorSensor" key="readouttime" value="10" type="float" unit="sec"/>
    <param section="DetectorSensor" key="nbcells1" value="4096" type="int" unit=""/>
    <param section="DetectorSensor" key="cellsize1" value="15" type="float" unit="mu"/>
    <param section="DetectorSensor" key="nbcells2" value="4096" type="int" unit=""/>
    <param section="DetectorSensor" key="cellsize2" value="15" type="float" unit="mu"/>
    <param section="DetectorSensor" key="readoutnoise" value="7.5" type="float" unit="electrons"/>
    <param section="DetectorSensor" key="gain" value="2.5" type="float" unit="electrons/adu"/>
    <param section="DetectorSensor" key="temperature" value="-50" type="float" unit="degC"/>
    <param section="DetectorSensor" key="thermic_signal" value="0.05" type="float" unit="electrons/s"/>
    <!-- Shutter properties for plans and for simulations -->
    <param section="DetectorShutter" key="mode" value="synchro, openned, closed" type="str" unit=""/>
    <param section="DetectorShutter" key="delayopening" value="60" type="int" unit="us"/>
    <param section="DetectorShutter" key="delayclosing" value="30" type="int" unit="us"/>
    <!-- Filter properties for plans and for simulations -->
    <param section="FilterSelector" key="symbols" value="B g r i gri" type="str" unit=""/>
    <param section="FilterSelector" key="efficiencies" value="0.75 0.85 0.85 0.85 0.85 0.85" type="float" unit=""/>
    <param section="FilterSelector" key="lambda_mins" value="0.37 0.40 0.55 0.70 0.40" type="float" unit="mu"/>
    <param section="FilterSelector" key="lambda_maxs" value="0.50 0.55  0.70 0.80 0.80" type="float" unit="mu"/>
    <param section="FilterSelector" key="positions" value="0 60 120 180 240" type="float" unit="deg"/>
53dce684   Alain Klotz   Configuration fil...
121
    <!-- Optical design of the channel for simulations -->
06d938bf   Alain Klotz   Amélioration de l...
122
    <param section="optic" key="description" value="Takahashi epsilon" type="str" unit=""/>
aa8e5884   Alain Klotz   Grosse améliorati...
123
    <param section="optic" key="serial_number" value="875432" type="str" unit=""/>
53dce684   Alain Klotz   Configuration fil...
124
125
126
    <param section="optic" key="aperdiam" value="0.16" type="float" unit="m"/>
    <param section="optic" key="focleneq" value="0.53" type="float" unit="m"/>
    <param section="optic" key="efficiency" value="0.68" type="float" unit=""/>
53dce684   Alain Klotz   Configuration fil...
127
128
129
130
131
132
133
134
    <!-- Atmospheric conditions for simulations -->
    <param section="atmosphere" key="temperature" value="300" type="float" unit="Kelvin"/>
    <param section="atmosphere" key="pressure" value="101325" type="float" unit="Pascal"/>
    <param section="atmosphere" key="humidity" value="50" type="float" unit="percent"/>
    <param section="atmosphere" key="seeing" value="1" type="float" unit="arcsec"/>
    <param section="atmosphere" key="transparency" value="0.8" type="float" unit="0b110101"/>
    <!-- Define the horizon line for scheduler -->
    <param section="horizon" key="amer_list" value="(0, 10), (50, 15), (60,10)" type="tuple" unit="Angle"/>
aa8e5884   Alain Klotz   Grosse améliorati...
135
136
    <!-- Plan description of this channel for the web form and observations -->
    <plan>
06d938bf   Alain Klotz   Amélioration de l...
137
138
139
      <param section="form" key="shutter"   label="Shutter mode"      value="1" element_tag="select" element_attributes='required' options="param DetectorShutter mode"/>
      <param section="form" key="filter"    label="Filter"            value=""  element_tag="select" element_attributes='required' options="param FilterSelector symbols"/>
      <param section="form" key="binning"   label="Binning"           value=""  element_tag="select" element_attributes='required' options="param DetectorSensor binnings"/>
514b20f7   Alain Klotz   Correction bug da...
140
      <param section="form" key="exptime"   label="Exposure time (s)" value="1" element_tag="input"  element_attributes='type="number" step="any" min="0.1" max="100"'/>
06d938bf   Alain Klotz   Amélioration de l...
141
142
      <param section="form" key="nb_images" label="Number images"     value="1" element_tag="input"  element_attributes='type="number" step="1" min="1" max="10000"'/>
      <param section="form" key="delay"     label="Delay start (s)"   value="0" element_tag="input"  element_attributes='type="number" step="any" min="0" max="100"'/>
aa8e5884   Alain Klotz   Grosse améliorati...
143
    </plan>
53dce684   Alain Klotz   Configuration fil...
144
145
146
147
  </channel>
  
  <!-- A computer definition -->
  <computer alias="Computer1">
06d938bf   Alain Klotz   Amélioration de l...
148
    <param section="computer" key="description" value="PC titanium Alain"/>
51e20465   Alain Klotz   Ajout du repertoi...
149
150
    <!-- Paths -->
    <param section="path" key="data" value="c:/srv/work/pyros"/>
aa8e5884   Alain Klotz   Grosse améliorati...
151
152
153
154
155
156
157
158
159
160
161
162
163
164
    <!-- Access -->
    <param section="local" key="hostname" value="titanium" comment="returned by import socket;print(socket.gethostname())"/>
    <param section="local" key="ip" value="192.168.0.1"/>
    <param section="global" key="hostname" value="titanium.irap.omp.eu"/>
    <param section="global" key="www_port" value="80"/>
    <!-- Agents to launch on this computer -->
    <param section="agent_to_launch" key="alias" value="AgentX"/>
    <param section="agent_to_launch" key="alias" value="Monitoring"/>
    <param section="agent_to_launch" key="alias" value="TelescopeSimulator"/>
    <param section="agent_to_launch" key="alias" value="CameraSimulator"/>
  </computer>
  
  <!-- A computer definition -->
  <computer alias="Computer2">
06d938bf   Alain Klotz   Amélioration de l...
165
    <param section="computer" key="description" value="Mac Etienne"/>
51e20465   Alain Klotz   Ajout du repertoi...
166
167
    <!-- Paths -->
    <param section="path" key="data" value="/PROJECTS/GFT/SOFT/PYROS_SOFT/DATA"/>
53dce684   Alain Klotz   Configuration fil...
168
    <!-- Access autorizations -->
51e20465   Alain Klotz   Ajout du repertoi...
169
    <param section="local" key="hostname" value="macp1219.local" comment="returned by import socket;print(socket.gethostname())"/>
aa8e5884   Alain Klotz   Grosse améliorati...
170
171
172
173
174
175
176
177
    <param section="local" key="ip" value="192.168.0.1"/>
    <param section="global" key="hostname" value="etienne.irap.omp.eu"/>
    <param section="global" key="www_port" value="80"/>
    <!-- Agents to launch on this computer -->
    <param section="agent_to_launch" key="alias" value="AgentX"/>
    <param section="agent_to_launch" key="alias" value="Monitoring"/>
    <param section="agent_to_launch" key="alias" value="TelescopeSimulator"/>
    <param section="agent_to_launch" key="alias" value="CameraSimulator"/>
53dce684   Alain Klotz   Configuration fil...
178
179
  </computer>
  
aa8e5884   Alain Klotz   Grosse améliorati...
180
181
  <!-- A computer definition -->
  <computer alias="Computer3">
06d938bf   Alain Klotz   Amélioration de l...
182
    <param section="computer" key="description" value="PC Patrick"/>
aa8e5884   Alain Klotz   Grosse améliorati...
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
    <!-- Access autorizations -->
    <param section="local" key="hostname" value="patrick" comment="returned by import socket;print(socket.gethostname())"/>
    <param section="local" key="ip" value="192.168.0.1"/>
    <param section="global" key="hostname" value="etienne.irap.omp.eu"/>
    <param section="global" key="www_port" value="80"/>
    <!-- Agents to launch on this computer -->
    <param section="agent_to_launch" key="alias" value="AgentX"/>
    <param section="agent_to_launch" key="alias" value="Monitoring"/>
    <param section="agent_to_launch" key="alias" value="TelescopeSimulator"/>
    <param section="agent_to_launch" key="alias" value="CameraSimulator"/>
  </computer>
  
  <!-- An agent definition -->
  <agent alias="Superagent1">
    <!--  -->
    <param section="general" key="startmode" value="RUN"/>
    <!-- Where is the code to launch ? Concatenation of path0_filename + path1_filename + tail_filename -->
    <param section="code" key="path0_filename" value="$PYROS"/>
    <param section="code" key="path1_filename" value="../pyros_simulunit1/src/superagent1"/>
    <param section="code" key="tail_filename" value="SuperAgent1.py"/>
  </agent>
  
  <!-- An agent definition -->
  <agent alias="AgentX">
    <!--  -->
05775461   Alain Klotz   Lecture du fichie...
208
    <param section="general" key="startmode" value="RUN"/>
aa8e5884   Alain Klotz   Grosse améliorati...
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
    <!-- Where is the code to launch ? Concatenation of path0_filename + path1_filename + tail_filename -->
    <param section="code" key="path0_filename" value="$PYROS"/>
    <param section="code" key="path1_filename" value="src/agentx"/>
    <param section="code" key="tail_filename" value="AgentX.py"/>
  </agent>

  <!-- An agent definition -->
  <agent alias="AgentY">
    <!--  -->
    <param section="general" key="startmode" value="RUN"/>
    <!-- Where is the code to launch ? Concatenation of path0_filename + path1_filename + tail_filename -->
    <param section="code" key="path0_filename" value="$PYROS"/>
    <param section="code" key="path1_filename" value="../pyros_simulunit1/src/agenty"/>
    <param section="code" key="tail_filename" value="AgentY.py"/>
  </agent>
  
  <!-- An agent definition -->
  <agent alias="TelescopeSimulator">
    <!--  -->
    <param section="general" key="startmode" value="RUN"/>
    <!-- Where is the code to launch ? Concatenation of path0_filename + path1_filename + tail_filename -->
    <param section="code" key="path0_filename" value="$PYROS"/>
    <param section="code" key="path1_filename" value="src/telescopesimulator"/>
    <param section="code" key="tail_filename" value="TelescopeSimulator.py"/>
  </agent>

  <!-- An agent definition -->
  <agent alias="CameraSimulator">
    <!--  -->
    <param section="general" key="startmode" value="RUN"/>
    <!-- Where is the code to launch ? Concatenation of path0_filename + path1_filename + tail_filename -->
    <param section="code" key="path0_filename" value="$PYROS"/>
    <param section="code" key="path1_filename" value="src/camerasimulator"/>
    <param section="code" key="tail_filename" value="CameraSimulator.py"/>
  </agent>
  
  <!-- An agent definition -->
  <agent alias="Monitoring">
    <!--  -->
    <param section="general" key="startmode" value="RUN"/>
    <!-- Where is the code to launch ? Concatenation of path0_filename + path1_filename + tail_filename -->
    <param section="code" key="path0_filename" value="$PYROS"/>
    <param section="code" key="path1_filename" value="src/monitoring"/>
    <param section="code" key="tail_filename" value="start_agent_monitoring.py"/>
  </agent>
  
</unit>