14 extern unsigned long qmap[16];
24 int i,xc,yc,text_width,length,m;
26 float xrat,yrat,mult,dmult,cmult;
27 long xmin,xmax,ymin,ymax;
28 signed long xcen,ycen,lint1,lint2;
29 Dimension width,height;
31 signed long XSIZE,YSIZE;
36 char tbuf[100],mbuf[100];
54 XtSetArg(args[0],XtNwidth,&width);
55 XtSetArg(args[1],XtNheight,&height);
58 XSIZE=(long)width*10L;
59 YSIZE=(long)height*10L;
61 xrat=(float)XSIZE/(
float)12800;
62 yrat=(float)YSIZE/(
float)9600;
78 lint1=(long)
npoint[0]*(
long)MY;
79 lint2=(long)
npoint[1]*(
long)MY;
88 r=
dval.
a * cos(lat*conv)/(1+sin(lat*conv))
91 s=
dval.
a * cos(lat*conv)/(1+sin(lat*conv))
96 x1=(
xmin+(float)r * cmult)/MY;
97 y1=(
ymin+(float)
s * cmult)/MY;
114 XDrawLine(
display,pix,
gc,x1+1,y1+1,x1+1,y1-1);
115 XDrawLine(
display,pix,
gc,x1+1,y1-1,x1-1,y1-1);
116 XDrawLine(
display,pix,
gc,x1-1,y1-1,x1-1,y1+1);
117 XDrawLine(
display,pix,
gc,x1-1,y1+1,x1+1,y1-1);
143 strcpy(tbuf,&mbuf[1]);
152 text_width=XTextWidth(
info_font[4],tbuf,length);
169 XDrawString(
display,pix,
gc,xc,yc,tbuf,length);
173 find_zstation_flag=-1;
175 XDrawLine(
display,pix,
gc,xc,yc,xc+text_width,yc);
struct station zstation[500]
XFontStruct * info_font[10]
void plot_zstations(Drawable pix, int type, int h, int display_flag)