13 extern int fstation_focus;
16 extern int wfo_in_use[20];
19 extern int max_fstations;
24 extern unsigned long qmap[16];
30 extern struct station zstation[750];
31 extern struct station tstation[1000];
36 int i,xc,yc,text_width,length,m;
48 char tbuf[100],mbuf[100],tbuf2[100];
89 for(ii=0;ii<max_fstations;ii++) {
95 if(wfo_in_use[h] == -1)
98 if(
fstation[ii].owner==wfo_in_use[h])
103 if(wfo_in_use[h]==-1)
108 if(qpf_on==1 &&
fstation[ii].qpf==-1)
112 if(flf_on==1 &&
fstation[ii].frz==-1)
115 if(maxmin_on==1 &&
fstation[ii].txn==-1)
136 else if(maxmin_on==1) {
166 XDrawLine(
display,pix,
gc,x1+1,y1+1,x1+1,y1-1);
167 XDrawLine(
display,pix,
gc,x1+1,y1-1,x1-1,y1-1);
168 XDrawLine(
display,pix,
gc,x1-1,y1-1,x1-1,y1+1);
169 XDrawLine(
display,pix,
gc,x1-1,y1+1,x1+1,y1+1);
175 XDrawLine(
display,pix,
gc,x1+5,y1+5,x1+5,y1-5);
176 XDrawLine(
display,pix,
gc,x1+5,y1-5,x1-5,y1-5);
177 XDrawLine(
display,pix,
gc,x1-5,y1-5,x1-5,y1+5);
178 XDrawLine(
display,pix,
gc,x1-5,y1+5,x1+5,y1+5);
191 strcpy(tbuf,zstation[
i].hb5);
193 else if(maxmin_on==1)
194 strcpy(tbuf,tstation[
i].hb5);
206 else if(maxmin_on==1)
207 strcpy(tbuf,&tstation[
i].parm[3]);
221 else if(maxmin_on==1)
222 strcpy(tbuf,tstation[
i].
name);
226 else if(type>=4 && qpf_on==1) {
235 strcpy(tbuf,&mbuf[1]);
242 else if(type>=4 && flf_on==1) {
251 strcpy(tbuf,&mbuf[1]);
258 else if(type>=4 && maxmin_on==1) {
280 text_width=XTextWidth(
info_font[4],tbuf,length);
291 xadd=zstation[
i].
xadd;
292 yadd=zstation[
i].
yadd;
296 else if(maxmin_on==1) {
298 xadd=zstation[
i].
xadd;
299 yadd=zstation[
i].
yadd;
319 XDrawString(
display,pix,
gc,x1+3,yc-20,tbuf,length);
321 length=strlen(tbuf2);
323 XDrawString(
display,pix,
gc,x1+3,yc,tbuf2,length);
324 XDrawLine(
display,pix,
gc,x1+10,yc-15,x1+17,yc-15);
329 XDrawString(
display,pix,
gc,xc,yc,tbuf,length);
345 strcpy(tbuf,zstation[
i].hb5);
347 else if(maxmin_on==1)
348 strcpy(tbuf,tstation[
i].hb5);
353 text_width=XTextWidth(
info_font[4],tbuf,length);
355 XDrawString(
display,pix,
gc,xc,yc+10,tbuf,length);
XFontStruct * info_font[10]
sprintf(fbuf,"/usr/mapper/nexrad/ngrid.%02d-%02d-%02d-%02d", year, month, day, hour)
printf("fbuf is %s\n", fbuf)
void plot_fstations(Drawable pix, int h, int type, int k, int display_flag)