25 |
|
long dstart; /* data start offset in file */ |
26 |
|
} PGINPUT; |
27 |
|
|
28 |
+ |
const double ANGLE_EPS = 180./2./GRIDRES; |
29 |
+ |
|
30 |
|
PGINPUT *inpfile; /* input files sorted by incidence */ |
31 |
|
int ninpfiles; /* number of input files */ |
32 |
|
|
37 |
|
const PGINPUT *inp1 = (const PGINPUT *)p1; |
38 |
|
const PGINPUT *inp2 = (const PGINPUT *)p2; |
39 |
|
|
40 |
< |
if (inp1->theta > inp2->theta+FTINY) |
40 |
> |
if (inp1->theta > inp2->theta+ANGLE_EPS) |
41 |
|
return(1); |
42 |
< |
if (inp1->theta < inp2->theta-FTINY) |
42 |
> |
if (inp1->theta < inp2->theta-ANGLE_EPS) |
43 |
|
return(-1); |
44 |
< |
if (inp1->phi > inp2->phi+FTINY) |
44 |
> |
if (inp1->phi > inp2->phi+ANGLE_EPS) |
45 |
|
return(1); |
46 |
< |
if (inp1->phi < inp2->phi-FTINY) |
46 |
> |
if (inp1->phi < inp2->phi-ANGLE_EPS) |
47 |
|
return(-1); |
48 |
|
return(0); |
49 |
|
} |