3 void time_series(
int win_x,
int win_y,
unsigned int win_button)
6 extern struct ts ts[20];
31 double testdist,maxdist;
33 Dimension width,height;
34 signed long XSIZE,YSIZE;
56 XtSetArg(args[0],XtNwidth,&width);
57 XtSetArg(args[1],XtNheight,&height);
60 XSIZE=(long)width*10L;
61 YSIZE=(long)height*10L;
63 xrat=(float)XSIZE/(
float)12800;
64 yrat=(float)YSIZE/(
float)9600;
83 lint1=(long)
npoint[0]*(
long)MY;
84 lint2=(long)
npoint[1]*(
long)MY;
99 win_x=((x*MY-xcen)/
zoom + lint1)/mult;
100 win_y=((y*MY-ycen)/
zoom + lint2)/mult;
114 x=(((win_x*mult)-lint1)*
zoom+xcen)/MY;
115 y=(((win_y*mult)-lint2)*
zoom+ycen)/MY;
133 for(m=0;m<
tsmax;m++) {
135 if(strncmp(&
station[i].parm[3],
ts[m].abr,2)==0 &&
dflag[m+1] == 1)
153 r=
dval.
a * cos(lat*conv)/(1+sin(lat*conv))
156 s=
dval.
a * cos(lat*conv)/(1+sin(lat*conv))
159 testdist= pow((
double)(win_x-r),2) + pow((
double)(win_y-
s),2);
160 testdist= pow(testdist,.5);
162 if(testdist < maxdist) {
void time_series(int win_x, int win_y, unsigned int win_button)