/* fix79.Z */ #include #define INFORMPres "%*d %d%d%d%d%d%d %lf%lf%lf%lf %d%d%d%d%d" #define READLISTPres &yearPres,&month,&day,&hour,&lat,&lon,&p,&t,&ep,&et,&px,&py,&pxx, &pxy ,&pyy main() { int day,hour,month; int yearPres; int px,py,pxx,pxy,pyy,lat,lon; double p,t,ep,et; /*** get the pressure field for 0,12,24 hour for this day ***/ while(feof(stdin)==0) { fscanf(stdin,INFORMPres,READLISTPres); if((hour==24)||(hour==0)||(hour==12)) fprintf(stdout,"%3d%3d%3d%3d%4d%5d%8.1lf%7.1lf%5.1lf%5.1lf%5d%5d%6d%6d%6d\n", yearPres,month,day,hour,lat,lon,p,t,ep,et,px,py,pxx,pxy,pyy); } }