1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
include "sensfunc.h"
# SF_DATA -- Compute the X and Y values for the particular graph.
procedure sf_data (stds, nstds, graph)
pointer stds[nstds] # Standard star structures
int nstds # Number of standard stars
char graph # Graph type
real a
int i, n
pointer wp, sp, fp, xp, yp
begin
switch (graph) {
case 's': # Sensitivity vs. Wavelength
do i = 1, nstds {
if (STD_FLAG(stds[i]) != SF_INCLUDE)
next
n = STD_NWAVES(stds[i])
a = STD_AIRMASS(stds[i])
wp = STD_WAVES(stds[i])
sp = STD_SENS(stds[i])
xp = STD_X(stds[i])
yp = STD_Y(stds[i])
call amovr (Memr[wp], Memr[xp], n)
call amovr (Memr[sp], Memr[yp], n)
}
case 'a': # Residuals vs. Airmass
do i = 1, nstds {
if (STD_FLAG(stds[i]) != SF_INCLUDE)
next
n = STD_NWAVES(stds[i])
a = STD_AIRMASS(stds[i])
wp = STD_WAVES(stds[i])
sp = STD_SENS(stds[i])
fp = STD_FIT(stds[i])
xp = STD_X(stds[i])
yp = STD_Y(stds[i])
call amovkr (a, Memr[xp], n)
call asubr (Memr[sp], Memr[fp], Memr[yp], n)
}
case 'r': # Residuals vs. Wavelength
do i = 1, nstds {
if (STD_FLAG(stds[i]) != SF_INCLUDE)
next
n = STD_NWAVES(stds[i])
a = STD_AIRMASS(stds[i])
wp = STD_WAVES(stds[i])
sp = STD_SENS(stds[i])
fp = STD_FIT(stds[i])
xp = STD_X(stds[i])
yp = STD_Y(stds[i])
call amovr (Memr[wp], Memr[xp], n)
call asubr (Memr[sp], Memr[fp], Memr[yp], n)
}
}
end
|