#include #include main() { float X,Y,Z,x,y,z; int i; float Lat=(19.0+5/60.0)/57.295; for (i=0;i<30;i++) { scanf("%f %f %f",&X,&Y,&Z); /* Rotate about the x-axis by the Latitude of the site */ x=X*cos(Lat) + Y*sin(Lat); y=-X*sin(Lat) + Y*cos(Lat); z=Z; /* Apply the martix 0 1 0 0 0 1 1 0 0 x-axis now points towards East, y-axis towards north and z-axis towards the local zenith */ printf("%f %f %f\n",y,z,x); } }