/* Convert bivariate ASCII NAD27 to NAD83 tables to NTv2 binary structure */ #include #include #include #define PJ_LIB__ #include #define U_SEC_TO_RAD 4.848136811095359935899141023e-12 static char *usage = "phi * (3600.0 / (PI/180.0)); row_buf[i*4+1] = cvs->lam * (3600.0 / (PI/180.0)); /* We leave the accuracy values as zero */ } if( !IS_LSB ) swap_words( (unsigned char *) row_buf, 4, ct.lim.lam * 4 ); if( fwrite( row_buf, sizeof(float), ct.lim.lam*4, fp ) != 4 * ct.lim.lam ) { perror( "write()" ); exit( 2 ); } } } fclose( fp ); exit(0); /* normal completion */ }