/* wvf2ec.c reads a WVF file and makes an earth coordinate file of the verticies of the triangles in 9 floats each lat0 lon0 z0 lat1 lon1 z1 lat2 lon2 z2 we1.bat = cl /AL wvf2ec.c proj1 */ #include #include struct coef { double X0,Y0,Z0; double scale,zscale; }; struct control { char proj; int pnum; double lon_0,lon_1,lon_2,lon_p; double lat_0,lat_1,lat_2,lat_p; double pixsize,scale; double x0,y0; double c,C,F,H,k,k0,k1,k2,n,P,rho_0; double omega; /* elevation (tilt of surface plane) */ double gamma; /* azimuth (east of north) */ double horiz; /* radius of horizon arc */ }Map; main(int argc,char *argv[]) { int i,j,k; char infile[100],string[100]; FILE *fpwvf; if(argc<2) { printf("\n\nwvf2ec [infile]\n\n"); printf(" where: infile = name of WVF file\n\n"); exit(0); } strcpy(infile,argv[1]); for(i=0;i