-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgzip.cl
executable file
·72 lines (54 loc) · 1.12 KB
/
gzip.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
66
67
68
69
70
71
#
# Ver. Jul06
#
procedure gzip
int nwav = 8 {prompt="Number of waveplate positions"}
bool contiguous = yes {prompt="Positions of wave-plate are contiguous?"}
bool zip=yes {prompt="Yes: zips files; No: unzips files"}
#string imgref = "" {prompt="Input reference image"}
#string images = "" {prompt="Input images to align"}
#string shifts = "shifts" {prompt="shifts file"}
struct *flist1
struct *flist2
begin
string temp1, temp2, temp3, temp4, temp5, aa, linedata
struct line1, line2
real xref, yref, xcomp, ycomp, deltax, deltay
bool bb=no
int n=0
int nlin
bool ver, ver1
int i,j, nw
string diret,raiz
string lixo1
string zeroi,flati
string arq,arqim
for (i = 1; i <= nwav; i += 1) {
nw = i
if (contiguous == no) {
if (i >= 5 && i <=8) {
nw = nw+4
}
}
if (nw <= 9) {
raiz = "0"//nw
} else {
raiz = ""//nw
}
diret = "p"//raiz//"0"
print ""
print ""
print "# Processing images for waveplate position # "//nw
chdir (diret)
if (zip) {
!gzip *
} else {
!gunzip *.gz
}
chdir ("..")
}
beep
flist1=""
flist2=""
datapars.datamin=INDEF
end