-
Notifications
You must be signed in to change notification settings - Fork 1
/
grafrap.cl
executable file
·65 lines (48 loc) · 1.18 KB
/
grafrap.cl
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
60
61
62
63
64
65
#
# Ver. Set06
#
procedure grafrap(starin,aperturein,n,version1,rootin)
int starin=1 {prompt="Star number to analyze"}
int aperturein=8 {prompt="Aperture to analyze"}
int n = 8 {min=4,max=16,prompt="Number of waveplate positions in each group"}
string version1=".1" {prompt="Version of the fits/dat files"}
string version2=".1" {prompt="Version of the input mag files"}
string rootin ="w" {prompt="Root for polrap filenames"}
struct *flist1
struct *flist2
struct line1
begin
string nps,sufix,lista,lixo
string imagem1,root
int i
int starini, apertureini, ni
starini = starin
apertureini = aperturein
ni = n
root = rootin
lista = mktemp("lista")
if (ni <= 9) {
nps = "0"//ni
} else {
nps = ""//ni
}
if (version2!=".1")
sufix = version1//version2
else
sufix = version1
files(root//nps//"*"//sufix//".log",>lista)
flist1 = lista
i = 0
while (fscan(flist1,imagem1) != EOF) {
i += 1
print ("# Ploting from WP #"//i//" to WP # "//(i+ni-1))
graf(filein=imagem1,starin=starini,aperturein=apertureini,postype-,meta-)
print ("Hit enter for next .log file")
lixo = scan(lixo)
}
del (files=lista,go_ahead=yes, verify=no, >& "dev$null")
#$
flist1=""
flist2=""
line1=""
end