8 extern int find_station_flag;
13 extern unsigned long qmap[16];
25 int i,xc,yc,text_width,length,m;
138 XDrawLine(
display,pix,
gc,x1+1,y1+1,x1+1,y1-1);
139 XDrawLine(
display,pix,
gc,x1+1,y1-1,x1-1,y1-1);
140 XDrawLine(
display,pix,
gc,x1-1,y1-1,x1-1,y1+1);
141 XDrawLine(
display,pix,
gc,x1-1,y1+1,x1+1,y1-1);
183 text_width=XTextWidth(
info_font[4],tbuf,length);
200 XDrawString(
display,pix,
gc,xc,yc,tbuf,length);
201 if(
i==find_station_flag) {
203 find_station_flag=-1;
205 XDrawLine(
display,pix,
gc,xc,yc,xc+text_width,yc);
221 sprintf(tbuf,
"%02d-%02d-%02d",gm->tm_mon+1,gm->tm_mday,gm->tm_year);
226 strcat(tbuf,
" 06z-12z");
228 strcat(tbuf,
" 00z-06z");
230 strcat(tbuf,
" 18z-00z");
232 strcat(tbuf,
" 12z-18z");
236 strcat(tbuf,
" ending at 12z");
242 strcat(tbuf,
" Modified - Saved");
245 strcat(tbuf,
" Modified - Not Saved");
248 strcat(tbuf,
" Not Modified");
251 strcat(tbuf,
" No Data");
XFontStruct * info_font[10]
sprintf(fbuf,"/usr/mapper/nexrad/ngrid.%02d-%02d-%02d-%02d", year, month, day, hour)
void plot_stations(Drawable pix, int type, int h, int display_flag)