diff --git a/data/offset.cxx b/data/offset.cxx deleted file mode 100644 index 6241ad406..000000000 --- a/data/offset.cxx +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include - -int main ( int argc, char **argv ) -{ - char *fname = argv[1] ; - FILE *fd = fopen ( fname, "ra" ) ; - - if ( fd == NULL ) - { - fprintf ( stderr, "Can't open '%s' for reading.\n", fname ) ; - exit ( 1 ) ; - } - - for ( int i = 0 ; !feof(fd) ; i++ ) - { - char s [ 1024 ] ; - - if ( fgets ( s, 1023, fd ) == NULL ) - break ; - - if ( *s == '#' || *s < ' ' ) - continue ; - - float x, y ; - - if ( sscanf ( s, "%f,%f", &x, &y ) != 2 ) - { - fprintf ( stderr, "Syntax error in '%s'\n", fname ) ; - exit ( 1 ) ; - } - - x -= 66.68 ; - y = (-y) + 5.39 ; - - printf ( "%g,%g\n", x, y ) ; - } - - fclose ( fd ) ; -} -