hcam-widgets 2.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hcam_widgets/__init__.py +11 -0
- hcam_widgets/astro.py +377 -0
- hcam_widgets/data/compo_lens_offset.csv +92 -0
- hcam_widgets/data/ultracam_templates/appl10_frameover_mindead_app.xml +81 -0
- hcam_widgets/data/ultracam_templates/appl3_fullframe_app.xml +82 -0
- hcam_widgets/data/ultracam_templates/appl4_frameover_app.xml +81 -0
- hcam_widgets/data/ultracam_templates/appl5_window1pair_app.xml +90 -0
- hcam_widgets/data/ultracam_templates/appl5b_window1pair_app.xml +88 -0
- hcam_widgets/data/ultracam_templates/appl6_window2pair_app.xml +94 -0
- hcam_widgets/data/ultracam_templates/appl7_window3pair_app.xml +100 -0
- hcam_widgets/data/ultracam_templates/appl8_driftscan_app.xml +96 -0
- hcam_widgets/data/ultracam_templates/appl9_fullframe_mindead_app.xml +84 -0
- hcam_widgets/data/ultracam_templates/eso3.6.xml +24 -0
- hcam_widgets/data/ultracam_templates/ntt.xml +24 -0
- hcam_widgets/data/ultracam_templates/vlt.xml +24 -0
- hcam_widgets/data/ultracam_templates/wht.xml +26 -0
- hcam_widgets/globals.py +176 -0
- hcam_widgets/hipercam/__init__.py +0 -0
- hcam_widgets/hipercam/compo/__init__.py +0 -0
- hcam_widgets/hipercam/compo/utils.py +464 -0
- hcam_widgets/hipercam/compo/widgets.py +738 -0
- hcam_widgets/hipercam/hardware/__init__.py +456 -0
- hcam_widgets/hipercam/hardware/alarms.py +211 -0
- hcam_widgets/hipercam/hardware/ccds.py +134 -0
- hcam_widgets/hipercam/hardware/slide.py +302 -0
- hcam_widgets/hipercam/params.py +22 -0
- hcam_widgets/hipercam/tools.py +572 -0
- hcam_widgets/hipercam/widgets.py +3261 -0
- hcam_widgets/logs.py +137 -0
- hcam_widgets/mimic.py +13 -0
- hcam_widgets/misc.py +82 -0
- hcam_widgets/tcs.py +67 -0
- hcam_widgets/tkutils.py +107 -0
- hcam_widgets/ultracam/__init__.py +0 -0
- hcam_widgets/ultracam/params.py +76 -0
- hcam_widgets/ultracam/tools.py +789 -0
- hcam_widgets/ultracam/widgets.py +2582 -0
- hcam_widgets/ultraspec/__init__.py +0 -0
- hcam_widgets/ultraspec/params.py +39 -0
- hcam_widgets/ultraspec/tools.py +1 -0
- hcam_widgets/ultraspec/widgets.py +983 -0
- hcam_widgets/widgets.py +3458 -0
- hcam_widgets-2.0.1.dist-info/METADATA +92 -0
- hcam_widgets-2.0.1.dist-info/RECORD +48 -0
- hcam_widgets-2.0.1.dist-info/WHEEL +5 -0
- hcam_widgets-2.0.1.dist-info/licenses/AUTHORS.rst +13 -0
- hcam_widgets-2.0.1.dist-info/licenses/LICENSE +11 -0
- hcam_widgets-2.0.1.dist-info/top_level.txt +1 -0
hcam_widgets/__init__.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
from __future__ import print_function, unicode_literals, absolute_import, division
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
__author__ = """Stuart Littlefair"""
|
|
6
|
+
__email__ = 's.littlefair@shef.ac.uk'
|
|
7
|
+
__version__ = '2.0.1'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class DriverError(Exception):
|
|
11
|
+
pass
|
hcam_widgets/astro.py
ADDED
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
# Some utility tools to handle rising and setting etc.
|
|
2
|
+
from __future__ import print_function, unicode_literals, absolute_import, division
|
|
3
|
+
import warnings
|
|
4
|
+
import numpy as np
|
|
5
|
+
from numpy.polynomial.polynomial import polyval
|
|
6
|
+
|
|
7
|
+
# astropy
|
|
8
|
+
from astropy import coordinates as coord
|
|
9
|
+
from astropy.time import Time
|
|
10
|
+
from astropy import units as u
|
|
11
|
+
|
|
12
|
+
MAGIC_TIME = Time(-999, format="jd")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@u.quantity_input(pa=u.deg)
|
|
16
|
+
@u.quantity_input(mechanical_angle=u.deg)
|
|
17
|
+
@u.quantity_input(hour_angle=u.hourangle)
|
|
18
|
+
@u.quantity_input(latitude=u.deg)
|
|
19
|
+
@u.quantity_input(declination=u.deg)
|
|
20
|
+
@u.quantity_input(rotator_limit=u.deg)
|
|
21
|
+
def calc_time_to_rotator_limit(
|
|
22
|
+
hour_angle,
|
|
23
|
+
latitude,
|
|
24
|
+
declination,
|
|
25
|
+
pa,
|
|
26
|
+
mechanical_angle,
|
|
27
|
+
rotator_limits,
|
|
28
|
+
):
|
|
29
|
+
"""
|
|
30
|
+
Calculate the time to rotator limit.
|
|
31
|
+
|
|
32
|
+
The parallactic angle is calculated using the formula:
|
|
33
|
+
|
|
34
|
+
:math:`\tan q = \frac{\sin h}{\cos \delta \tan \phi - \sin \delta \cos h`
|
|
35
|
+
|
|
36
|
+
where a star has hour angle :math:`h`, declination :math:`\delta`
|
|
37
|
+
and the observatory is at latitude :math:`\phi`.
|
|
38
|
+
|
|
39
|
+
For GTC we get two angles from the rotator, the mechanical angle ROTATOR
|
|
40
|
+
and the instrument position angle INSTRPA, which satisfies:
|
|
41
|
+
|
|
42
|
+
:math:`q + {\rm ROTATOR} - {\rm INSTRPA} = -180`.
|
|
43
|
+
|
|
44
|
+
From these equations, we find the time until the rotator hits the angles
|
|
45
|
+
set in `rotator_limits`.
|
|
46
|
+
|
|
47
|
+
Parameters
|
|
48
|
+
----------
|
|
49
|
+
hour_angle : `~astropy.units.Quantity`
|
|
50
|
+
Hour angle of target
|
|
51
|
+
latitude : `~astropy.units.Quantity`
|
|
52
|
+
Latitude of observatory
|
|
53
|
+
declination : `~astropy.units.Quantity`
|
|
54
|
+
Declination of target
|
|
55
|
+
altitude : `~astropy.units.Quantity`
|
|
56
|
+
Altitude of target
|
|
57
|
+
azimuth : `~astropy.units.Quantity`
|
|
58
|
+
Azimuth of target
|
|
59
|
+
pa: `~astropy.units.Quantity`
|
|
60
|
+
Instrument position angle
|
|
61
|
+
mechanical_angle : `~astropy.units.Quantity`
|
|
62
|
+
Mechanical angle of rotator
|
|
63
|
+
rotator_limits : `~astropy.units.Quantity`
|
|
64
|
+
Limits on rotator angle, we assume two limits, one in each direction
|
|
65
|
+
|
|
66
|
+
Returns
|
|
67
|
+
-------
|
|
68
|
+
time_to_limit : `~astropy.units.Quantity`
|
|
69
|
+
Time until rotator hits appropriate limit
|
|
70
|
+
"""
|
|
71
|
+
# first, we find the parallactic angles over the next 12 hours
|
|
72
|
+
dh = np.linspace(0, 12, 100) * u.hourangle
|
|
73
|
+
h = hour_angle + dh
|
|
74
|
+
q = (
|
|
75
|
+
np.arctan2(
|
|
76
|
+
np.sin(h),
|
|
77
|
+
np.cos(declination) * np.tan(latitude) - np.sin(declination) * np.cos(h),
|
|
78
|
+
)
|
|
79
|
+
).to(u.deg)
|
|
80
|
+
|
|
81
|
+
# ensure parallactic angle is in the range -180 to 180 degrees without discontinuities
|
|
82
|
+
if declination > latitude:
|
|
83
|
+
q += 360 * u.deg
|
|
84
|
+
q %= 360 * u.deg
|
|
85
|
+
q -= 180 * u.deg
|
|
86
|
+
|
|
87
|
+
# find the corresponding rotator mechanical angles
|
|
88
|
+
rotator_values = -180 * u.deg + pa - q
|
|
89
|
+
|
|
90
|
+
# because of angle wrapping, the rotator values may not be in the
|
|
91
|
+
# same range as the rotator limits. We will fix this by forcing the
|
|
92
|
+
# first rotator_value to match the current rotator mechanical angle
|
|
93
|
+
# and using numpy's unwrap function to enforce a continuous change in
|
|
94
|
+
# angle without discontinuities.
|
|
95
|
+
delta = rotator_values[0] - mechanical_angle
|
|
96
|
+
rotator_values -= delta
|
|
97
|
+
|
|
98
|
+
# where are we outside limits?
|
|
99
|
+
bad_elements = np.where(
|
|
100
|
+
(rotator_values < rotator_limits[0]) | (rotator_values > rotator_limits[1])
|
|
101
|
+
)[0]
|
|
102
|
+
|
|
103
|
+
# we never exceed the limits
|
|
104
|
+
if len(bad_elements) == 0:
|
|
105
|
+
return None
|
|
106
|
+
|
|
107
|
+
# find first element where we exceed the limit
|
|
108
|
+
return dh[np.min(bad_elements)].to(u.hourangle)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
def _equation_of_time(t):
|
|
112
|
+
"""
|
|
113
|
+
Find the difference between apparent and mean solar time
|
|
114
|
+
|
|
115
|
+
Parameters
|
|
116
|
+
----------
|
|
117
|
+
t : `~astropy.time.Time`
|
|
118
|
+
times (array)
|
|
119
|
+
|
|
120
|
+
Returns
|
|
121
|
+
----------
|
|
122
|
+
ret1 : `~astropy.units.Quantity`
|
|
123
|
+
the equation of time
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
# Julian centuries since J2000.0
|
|
127
|
+
T = (t - Time("J2000")).to(u.year).value / 100
|
|
128
|
+
|
|
129
|
+
# obliquity of ecliptic (Meeus 1998, eq 22.2)
|
|
130
|
+
poly_pars = (84381.448, 46.8150, 0.00059, 0.001813)
|
|
131
|
+
eps = u.Quantity(polyval(T, poly_pars), u.arcsec)
|
|
132
|
+
y = np.tan(eps / 2) ** 2
|
|
133
|
+
|
|
134
|
+
# Sun's mean longitude (Meeus 1998, eq 25.2)
|
|
135
|
+
poly_pars = (280.46646, 36000.76983, 0.0003032)
|
|
136
|
+
L0 = u.Quantity(polyval(T, poly_pars), u.deg)
|
|
137
|
+
|
|
138
|
+
# Sun's mean anomaly (Meeus 1998, eq 25.3)
|
|
139
|
+
poly_pars = (357.52911, 35999.05029, 0.0001537)
|
|
140
|
+
M = u.Quantity(polyval(T, poly_pars), u.deg)
|
|
141
|
+
|
|
142
|
+
# eccentricity of Earth's orbit (Meeus 1998, eq 25.4)
|
|
143
|
+
poly_pars = (0.016708634, -0.000042037, -0.0000001267)
|
|
144
|
+
e = polyval(T, poly_pars)
|
|
145
|
+
|
|
146
|
+
# equation of time, radians (Meeus 1998, eq 28.3)
|
|
147
|
+
eot = (
|
|
148
|
+
y * np.sin(2 * L0)
|
|
149
|
+
- 2 * e * np.sin(M)
|
|
150
|
+
+ 4 * e * y * np.sin(M) * np.cos(2 * L0)
|
|
151
|
+
- 0.5 * y**2 * np.sin(4 * L0)
|
|
152
|
+
- 5 * e**2 * np.sin(2 * M) / 4
|
|
153
|
+
) * u.rad
|
|
154
|
+
return eot.to(u.hourangle)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def _astropy_time_from_LST(t, LST, location, prev_next):
|
|
158
|
+
"""
|
|
159
|
+
Convert a Local Sidereal Time to an astropy Time object.
|
|
160
|
+
|
|
161
|
+
The local time is related to the LST through the RA of the Sun.
|
|
162
|
+
This routine uses this relationship to convert a LST to an astropy
|
|
163
|
+
time object.
|
|
164
|
+
|
|
165
|
+
Returns
|
|
166
|
+
-------
|
|
167
|
+
ret1 : `~astropy.time.Time`
|
|
168
|
+
time corresponding to LST
|
|
169
|
+
"""
|
|
170
|
+
# now we need to figure out time to return from LST
|
|
171
|
+
raSun = coord.get_sun(t).ra
|
|
172
|
+
|
|
173
|
+
# calculate Greenwich Apparent Solar Time, which we will use as ~UTC for now
|
|
174
|
+
lon = location.lon
|
|
175
|
+
solarTime = LST - raSun + 12 * u.hourangle - lon
|
|
176
|
+
|
|
177
|
+
# assume this is on the same day as supplied time, and fix later
|
|
178
|
+
first_guess = Time(
|
|
179
|
+
u.d * int(t.mjd) + u.hour * solarTime.wrap_at("360d").hour, format="mjd"
|
|
180
|
+
)
|
|
181
|
+
|
|
182
|
+
# Equation of time is difference between GAST and UTC
|
|
183
|
+
eot = _equation_of_time(first_guess)
|
|
184
|
+
first_guess = first_guess - u.hour * eot.value
|
|
185
|
+
|
|
186
|
+
if prev_next == "next":
|
|
187
|
+
# if 'next', we want time to be greater than given time
|
|
188
|
+
mask = first_guess < t
|
|
189
|
+
rise_set_time = first_guess + mask * u.sday
|
|
190
|
+
else:
|
|
191
|
+
# if 'previous', we want time to be less than given time
|
|
192
|
+
mask = first_guess > t
|
|
193
|
+
rise_set_time = first_guess - mask * u.sday
|
|
194
|
+
return rise_set_time
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
def _rise_set_trig(t, target, location, prev_next, rise_set):
|
|
198
|
+
"""
|
|
199
|
+
Crude time at next rise/set of ``target`` using spherical trig.
|
|
200
|
+
|
|
201
|
+
This method is ~15 times faster than `_calcriseset`,
|
|
202
|
+
and inherently does *not* take the atmosphere into account.
|
|
203
|
+
|
|
204
|
+
The time returned should not be used in calculations; the purpose
|
|
205
|
+
of this routine is to supply a guess to `_calcriseset`.
|
|
206
|
+
|
|
207
|
+
Parameters
|
|
208
|
+
----------
|
|
209
|
+
t : `~astropy.time.Time` or other (see below)
|
|
210
|
+
Time of observation. This will be passed in as the first argument to
|
|
211
|
+
the `~astropy.time.Time` initializer, so it can be anything that
|
|
212
|
+
`~astropy.time.Time` will accept (including a `~astropy.time.Time`
|
|
213
|
+
object)
|
|
214
|
+
|
|
215
|
+
target : `~astropy.coordinates.SkyCoord`
|
|
216
|
+
Position of target or multiple positions of that target
|
|
217
|
+
at multiple times (if target moves, like the Sun)
|
|
218
|
+
|
|
219
|
+
location : `~astropy.coordinates.EarthLocation`
|
|
220
|
+
Observatory location
|
|
221
|
+
|
|
222
|
+
prev_next : str - either 'previous' or 'next'
|
|
223
|
+
Test next rise/set or previous rise/set
|
|
224
|
+
|
|
225
|
+
rise_set : str - either 'rising' or 'setting'
|
|
226
|
+
Compute prev/next rise or prev/next set
|
|
227
|
+
|
|
228
|
+
Returns
|
|
229
|
+
-------
|
|
230
|
+
ret1 : `~astropy.time.Time`
|
|
231
|
+
Time of rise/set
|
|
232
|
+
"""
|
|
233
|
+
dec = target.transform_to(coord.ICRS).dec
|
|
234
|
+
lat = location.lat
|
|
235
|
+
cosHA = -np.tan(dec) * np.tan(lat.radian)
|
|
236
|
+
# find the absolute value of the hour Angle
|
|
237
|
+
HA = coord.Longitude(np.fabs(np.arccos(cosHA)))
|
|
238
|
+
# if rise, HA is -ve and vice versa
|
|
239
|
+
if rise_set == "rising":
|
|
240
|
+
HA = -HA
|
|
241
|
+
# LST = HA + RA
|
|
242
|
+
LST = HA + target.ra
|
|
243
|
+
|
|
244
|
+
return _astropy_time_from_LST(t, LST, location, prev_next)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
def calc_riseset(t, target_name, location, prev_next, rise_set, horizon):
|
|
248
|
+
"""
|
|
249
|
+
Time at next rise/set of ``target``.
|
|
250
|
+
|
|
251
|
+
Parameters
|
|
252
|
+
----------
|
|
253
|
+
t : `~astropy.time.Time` or other (see below)
|
|
254
|
+
Time of observation. This will be passed in as the first argument to
|
|
255
|
+
the `~astropy.time.Time` initializer, so it can be anything that
|
|
256
|
+
`~astropy.time.Time` will accept (including a `~astropy.time.Time`
|
|
257
|
+
object)
|
|
258
|
+
|
|
259
|
+
target_name : str
|
|
260
|
+
'moon' or 'sun'
|
|
261
|
+
|
|
262
|
+
location : `~astropy.coordinates.EarthLocation`
|
|
263
|
+
Observatory location
|
|
264
|
+
|
|
265
|
+
prev_next : str - either 'previous' or 'next'
|
|
266
|
+
Test next rise/set or previous rise/set
|
|
267
|
+
|
|
268
|
+
rise_set : str - either 'rising' or 'setting'
|
|
269
|
+
Compute prev/next rise or prev/next set
|
|
270
|
+
|
|
271
|
+
location : `~astropy.coordinates.EarthLocation`
|
|
272
|
+
Location of observer
|
|
273
|
+
|
|
274
|
+
horizon : `~astropy.units.Quantity`
|
|
275
|
+
Degrees above/below actual horizon to use
|
|
276
|
+
for calculating rise/set times (i.e.,
|
|
277
|
+
-6 deg horizon = civil twilight, etc.)
|
|
278
|
+
|
|
279
|
+
Returns
|
|
280
|
+
-------
|
|
281
|
+
ret1 : `~astropy.time.Time`
|
|
282
|
+
Time of rise/set
|
|
283
|
+
"""
|
|
284
|
+
target = coord.get_body(target_name, t)
|
|
285
|
+
t0 = _rise_set_trig(t, target, location, prev_next, rise_set)
|
|
286
|
+
grid = t0 + np.linspace(-4 * u.hour, 4 * u.hour, 10)
|
|
287
|
+
altaz_frame = coord.AltAz(obstime=grid, location=location)
|
|
288
|
+
target = coord.get_body(target_name, grid)
|
|
289
|
+
altaz = target.transform_to(altaz_frame)
|
|
290
|
+
time_limits, altitude_limits = _horiz_cross(
|
|
291
|
+
altaz.obstime, altaz.alt, rise_set, horizon
|
|
292
|
+
)
|
|
293
|
+
return _two_point_interp(time_limits, altitude_limits, horizon)
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
@u.quantity_input(horizon=u.deg)
|
|
297
|
+
def _horiz_cross(t, alt, rise_set, horizon=0 * u.degree):
|
|
298
|
+
"""
|
|
299
|
+
Find time ``t`` when values in array ``a`` go from
|
|
300
|
+
negative to positive or positive to negative (exclude endpoints)
|
|
301
|
+
|
|
302
|
+
``return_limits`` will return nearest times to zero-crossing.
|
|
303
|
+
|
|
304
|
+
Parameters
|
|
305
|
+
----------
|
|
306
|
+
t : `~astropy.time.Time`
|
|
307
|
+
Grid of times
|
|
308
|
+
alt : `~astropy.units.Quantity`
|
|
309
|
+
Grid of altitudes
|
|
310
|
+
rise_set : {"rising", "setting"}
|
|
311
|
+
Calculate either rising or setting across the horizon
|
|
312
|
+
horizon : float
|
|
313
|
+
Number of degrees above/below actual horizon to use
|
|
314
|
+
for calculating rise/set times (i.e.,
|
|
315
|
+
-6 deg horizon = civil twilight, etc.)
|
|
316
|
+
|
|
317
|
+
Returns
|
|
318
|
+
-------
|
|
319
|
+
Returns the lower and upper limits on the time and altitudes
|
|
320
|
+
of the horizon crossing.
|
|
321
|
+
"""
|
|
322
|
+
if rise_set == "rising":
|
|
323
|
+
# Find index where altitude goes from below to above horizon
|
|
324
|
+
condition = (alt[:-1] < horizon) * (alt[1:] > horizon)
|
|
325
|
+
elif rise_set == "setting":
|
|
326
|
+
# Find index where altitude goes from above to below horizon
|
|
327
|
+
condition = (alt[:-1] > horizon) * (alt[1:] < horizon)
|
|
328
|
+
|
|
329
|
+
if np.count_nonzero(condition) == 0:
|
|
330
|
+
warnmsg = (
|
|
331
|
+
"Target does not cross horizon={} within "
|
|
332
|
+
"8 hours of trigonometric estimate".format(horizon)
|
|
333
|
+
)
|
|
334
|
+
warnings.warn(warnmsg)
|
|
335
|
+
|
|
336
|
+
# Fill in missing time with MAGIC_TIME
|
|
337
|
+
time_inds = np.nan
|
|
338
|
+
times = [np.nan, np.nan]
|
|
339
|
+
altitudes = [np.nan, np.nan]
|
|
340
|
+
else:
|
|
341
|
+
time_inds = np.nonzero(condition)[0][0]
|
|
342
|
+
times = t[time_inds : time_inds + 2]
|
|
343
|
+
altitudes = alt[time_inds : time_inds + 2]
|
|
344
|
+
|
|
345
|
+
return times, altitudes
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
@u.quantity_input(horizon=u.deg)
|
|
349
|
+
def _two_point_interp(times, altitudes, horizon=0 * u.deg):
|
|
350
|
+
"""
|
|
351
|
+
Do linear interpolation between two ``altitudes`` at
|
|
352
|
+
two ``times`` to determine the time where the altitude
|
|
353
|
+
goes through zero.
|
|
354
|
+
|
|
355
|
+
Parameters
|
|
356
|
+
----------
|
|
357
|
+
times : `~astropy.time.Time`
|
|
358
|
+
Two times for linear interpolation between
|
|
359
|
+
|
|
360
|
+
altitudes : array of `~astropy.units.Quantity`
|
|
361
|
+
Two altitudes for linear interpolation between
|
|
362
|
+
|
|
363
|
+
horizon : `~astropy.units.Quantity`
|
|
364
|
+
Solve for the time when the altitude is equal to
|
|
365
|
+
reference_alt.
|
|
366
|
+
|
|
367
|
+
Returns
|
|
368
|
+
-------
|
|
369
|
+
t : `~astropy.time.Time`
|
|
370
|
+
Time when target crosses the horizon
|
|
371
|
+
|
|
372
|
+
"""
|
|
373
|
+
if not isinstance(times, Time):
|
|
374
|
+
return MAGIC_TIME
|
|
375
|
+
else:
|
|
376
|
+
slope = (altitudes[1] - altitudes[0]) / (times[1].jd - times[0].jd)
|
|
377
|
+
return Time(times[1].jd - ((altitudes[1] - horizon) / slope).value, format="jd")
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
,x,lens_pos
|
|
2
|
+
0,0.0,0.0
|
|
3
|
+
1,1.7844,0.1529
|
|
4
|
+
2,2.6365,0.2293
|
|
5
|
+
3,3.4886,0.2866
|
|
6
|
+
4,4.3762,0.363
|
|
7
|
+
5,5.2283,0.4394
|
|
8
|
+
6,6.0804,0.5158
|
|
9
|
+
7,6.9325,0.5922
|
|
10
|
+
8,7.7846,0.6495
|
|
11
|
+
9,8.6367,0.7259
|
|
12
|
+
10,9.5243,0.8023
|
|
13
|
+
11,10.3409,0.8787
|
|
14
|
+
12,11.1931,0.9933
|
|
15
|
+
13,12.0098,1.1269
|
|
16
|
+
14,12.862,1.2414
|
|
17
|
+
15,13.7142,1.3559999999999999
|
|
18
|
+
16,14.5308,1.4514
|
|
19
|
+
17,15.383,1.6041
|
|
20
|
+
18,16.1643,1.7568
|
|
21
|
+
19,16.980999999999998,1.9095
|
|
22
|
+
20,17.7977,2.0621
|
|
23
|
+
21,18.6145,2.2148
|
|
24
|
+
22,19.4312,2.3675
|
|
25
|
+
23,20.2125,2.5393
|
|
26
|
+
24,21.0293,2.7301
|
|
27
|
+
25,21.8106,2.9209
|
|
28
|
+
26,22.6274,3.1308
|
|
29
|
+
27,23.3732,3.3026
|
|
30
|
+
28,24.119,3.4934
|
|
31
|
+
29,24.9003,3.6842
|
|
32
|
+
30,25.6106,3.8941
|
|
33
|
+
31,26.3565,4.104
|
|
34
|
+
32,27.1023,4.3139
|
|
35
|
+
33,27.8127,4.5428
|
|
36
|
+
34,28.5585,4.7527
|
|
37
|
+
35,29.1623,4.9435
|
|
38
|
+
36,29.9082,5.1534
|
|
39
|
+
37,30.6541,5.4014
|
|
40
|
+
38,31.4355,5.6495
|
|
41
|
+
39,32.1104,5.8975
|
|
42
|
+
40,32.8563,6.1646
|
|
43
|
+
41,33.5667,6.3936
|
|
44
|
+
42,34.3126,6.6416
|
|
45
|
+
43,35.023,6.9087
|
|
46
|
+
44,35.7334,7.1758
|
|
47
|
+
45,36.4084,7.4429
|
|
48
|
+
46,37.1188,7.71
|
|
49
|
+
47,37.7937,7.9771
|
|
50
|
+
48,38.5042,8.2442
|
|
51
|
+
49,39.2146,8.5113
|
|
52
|
+
50,39.8895,8.7784
|
|
53
|
+
51,40.5645,9.0646
|
|
54
|
+
52,41.2039,9.3317
|
|
55
|
+
53,41.8434,9.6178
|
|
56
|
+
54,42.5184,9.904
|
|
57
|
+
55,43.1933,10.1711
|
|
58
|
+
56,43.8328,10.4573
|
|
59
|
+
57,44.4722,10.7434
|
|
60
|
+
58,45.1117,11.0296
|
|
61
|
+
59,45.7512,11.3158
|
|
62
|
+
60,46.3907,11.620999999999999
|
|
63
|
+
61,47.0301,11.9072
|
|
64
|
+
62,47.6697,12.2315
|
|
65
|
+
63,48.3091,12.5177
|
|
66
|
+
64,48.9486,12.8229
|
|
67
|
+
65,49.5526,13.1091
|
|
68
|
+
66,50.2276,13.4334
|
|
69
|
+
67,50.8671,13.7386
|
|
70
|
+
68,51.4711,14.0629
|
|
71
|
+
69,52.0396,14.3491
|
|
72
|
+
70,52.6436,14.6543
|
|
73
|
+
71,53.2831,14.9786
|
|
74
|
+
72,53.8871,15.2839
|
|
75
|
+
73,54.5266,15.5891
|
|
76
|
+
74,55.1307,15.9134
|
|
77
|
+
75,55.7347,16.2377
|
|
78
|
+
76,56.3387,16.5429
|
|
79
|
+
77,56.9072,16.8672
|
|
80
|
+
78,57.4757,17.1725
|
|
81
|
+
79,58.0798,17.4968
|
|
82
|
+
80,58.6838,17.802
|
|
83
|
+
81,59.2878,18.1454
|
|
84
|
+
82,59.8563,18.4506
|
|
85
|
+
83,60.4604,18.7749
|
|
86
|
+
84,61.0644,19.1183
|
|
87
|
+
85,61.633,19.4426
|
|
88
|
+
86,62.236999999999995,19.7669
|
|
89
|
+
87,62.8411,20.1103
|
|
90
|
+
88,63.4451,20.4537
|
|
91
|
+
89,64.0137,20.778000000000002
|
|
92
|
+
90,64.5822,21.1213
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
|
|
3
|
+
<!-- Application file for appl10 - full frame readout + overscan, no clear
|
|
4
|
+
|
|
5
|
+
Authors: David Atkinson
|
|
6
|
+
-->
|
|
7
|
+
|
|
8
|
+
<configure id="appl10_frameover_mindead_app" user="Vik Dhillon" datetime="02-Mar-2010" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9
|
+
|
|
10
|
+
<description>Set up parameters for appl10 frameover mindead application.</description>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<!-- No configure_telescope element -->
|
|
14
|
+
|
|
15
|
+
<!-- No configure_temperature element -->
|
|
16
|
+
|
|
17
|
+
<!-- The configure_camera element configures the camera control software.
|
|
18
|
+
If the execute_application attribute is set the application is executed once
|
|
19
|
+
it has been downloaded and the parameters set.
|
|
20
|
+
-->
|
|
21
|
+
|
|
22
|
+
<configure_camera>
|
|
23
|
+
|
|
24
|
+
<!-- A URI pointing to the XML document (based on the executable_application.xml template)
|
|
25
|
+
containing the executable DSP code required by this reconfiguration.
|
|
26
|
+
|
|
27
|
+
The force_download attribute is "yes" if the source is to be downloaded every time,
|
|
28
|
+
otherwise the source is not downloaded if this application is already found to be
|
|
29
|
+
loaded.
|
|
30
|
+
-->
|
|
31
|
+
|
|
32
|
+
<executablecode force_download="no" xlink:href="appl10_frameover_mindead_cfg.xml"/>
|
|
33
|
+
|
|
34
|
+
<!-- There can now be zero or more set_parameter elements which define parameter values to
|
|
35
|
+
be set once the application has been downloaded.
|
|
36
|
+
|
|
37
|
+
The parameter names must match those which are declared in the "executable_application.xml"
|
|
38
|
+
document.
|
|
39
|
+
|
|
40
|
+
Note that the application XML document described in the code_location element above
|
|
41
|
+
contains a series of condition checks that will be made before and after the application
|
|
42
|
+
is executed.
|
|
43
|
+
-->
|
|
44
|
+
|
|
45
|
+
<!-- One exposure -->
|
|
46
|
+
<set_parameter ref="NO_EXPOSURES" value="10"/>
|
|
47
|
+
|
|
48
|
+
<!-- Fast readout -->
|
|
49
|
+
<set_parameter ref="GAIN_SPEED" value="0xcdd"/>
|
|
50
|
+
|
|
51
|
+
<!-- 1000 milliseconds = 1 second exposure time -->
|
|
52
|
+
<set_parameter ref="EXPOSE_TIME" value="1000"/>
|
|
53
|
+
|
|
54
|
+
<!-- Binning factors set to 1 (no binning) -->
|
|
55
|
+
<set_parameter ref="X_BIN_FAC" value="1"/>
|
|
56
|
+
<set_parameter ref="Y_BIN_FAC" value="1"/>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
<!-- NBLUE on-chip co-adds -->
|
|
60
|
+
<set_parameter ref="NBLUE" value="0x1"/>
|
|
61
|
+
|
|
62
|
+
<!-- V clock frame transfer speed -->
|
|
63
|
+
<set_parameter ref="V_FT_CLK" value="0x8C0000"/>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
<!-- The name of the command to be executed or a URI pointing to the XML document
|
|
67
|
+
(based on the command.xml template) containing the command to be executed for
|
|
68
|
+
this reconfiguration.
|
|
69
|
+
|
|
70
|
+
Both of these attributes are optional. If omitted the application will be started
|
|
71
|
+
with the "GO" command.
|
|
72
|
+
|
|
73
|
+
DO NOT EXECUTE THE APPLICATION AUTOMATICALLY.
|
|
74
|
+
-->
|
|
75
|
+
|
|
76
|
+
</configure_camera>
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<!-- No configure_datahandler element -->
|
|
80
|
+
|
|
81
|
+
</configure>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
|
|
3
|
+
<!-- Application file for appl3
|
|
4
|
+
|
|
5
|
+
Authors: David Atkinson
|
|
6
|
+
-->
|
|
7
|
+
|
|
8
|
+
<configure id="appl3_fullframe_app" user="Vik Dhillon" datetime="02-Mar-2010" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9
|
+
|
|
10
|
+
<description>Set up parameters for appl3 fullframe application.</description>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<!-- No configure_telescope element -->
|
|
14
|
+
|
|
15
|
+
<!-- No configure_temperature element -->
|
|
16
|
+
|
|
17
|
+
<!-- The configure_camera element configures the camera control software.
|
|
18
|
+
If the execute_application attribute is set the application is executed once
|
|
19
|
+
it has been downloaded and the parameters set.
|
|
20
|
+
-->
|
|
21
|
+
|
|
22
|
+
<configure_camera>
|
|
23
|
+
|
|
24
|
+
<!-- A URI pointing to the XML document (based on the executable_application.xml template)
|
|
25
|
+
containing the executable DSP code required by this reconfiguration.
|
|
26
|
+
|
|
27
|
+
The force_download attribute is "yes" if the source is to be downloaded every time,
|
|
28
|
+
otherwise the source is not downloaded if this application is already found to be
|
|
29
|
+
loaded.
|
|
30
|
+
-->
|
|
31
|
+
|
|
32
|
+
<executablecode force_download="no" xlink:href="appl3_fullframe_cfg.xml"/>
|
|
33
|
+
|
|
34
|
+
<!-- There can now be zero or more set_parameter elements which define parameter values to
|
|
35
|
+
be set once the application has been downloaded.
|
|
36
|
+
|
|
37
|
+
The parameter names must match those which are declared in the "executable_application.xml"
|
|
38
|
+
document.
|
|
39
|
+
|
|
40
|
+
Note that the application XML document described in the code_location element above
|
|
41
|
+
contains a series of condition checks that will be made before and after the application
|
|
42
|
+
is executed.
|
|
43
|
+
-->
|
|
44
|
+
|
|
45
|
+
<!-- One exposure -->
|
|
46
|
+
<set_parameter ref="NO_EXPOSURES" value="-1"/>
|
|
47
|
+
|
|
48
|
+
<!-- Fast readout -->
|
|
49
|
+
<set_parameter ref="GAIN_SPEED" value="0xcdd"/>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
<!-- 1000 milliseconds = 1 second exposure time -->
|
|
53
|
+
<set_parameter ref="EXPOSE_TIME" value="1000"/>
|
|
54
|
+
|
|
55
|
+
<!-- Binning factors set to 1 (no binning) -->
|
|
56
|
+
<set_parameter ref="X_BIN_FAC" value="1"/>
|
|
57
|
+
<set_parameter ref="Y_BIN_FAC" value="1"/>
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
<!-- NBLUE on-chip co-adds -->
|
|
61
|
+
<set_parameter ref="NBLUE" value="0x1"/>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<!-- V clock frame transfer speed -->
|
|
65
|
+
<set_parameter ref="V_FT_CLK" value="0x8C0000"/>
|
|
66
|
+
|
|
67
|
+
<!-- The name of the command to be executed or a URI pointing to the XML document
|
|
68
|
+
(based on the command.xml template) containing the command to be executed for
|
|
69
|
+
this reconfiguration.
|
|
70
|
+
|
|
71
|
+
Both of these attributes are optional. If omitted the application will be started
|
|
72
|
+
with the "GO" command.
|
|
73
|
+
|
|
74
|
+
DO NOT EXECUTE THE APPLICATION AUTOMATICALLY.
|
|
75
|
+
-->
|
|
76
|
+
|
|
77
|
+
</configure_camera>
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
<!-- No configure_datahandler element -->
|
|
81
|
+
|
|
82
|
+
</configure>
|