# include "relastro.h"

int main (int argc, char **argv) {

    if (argc != N) {
	fprintf (stderr, "USAGE: testparallax (file.dat)\n");
	exit (1);
    }

    // test parallax program
    FILE *f = fopen (argv[1], "r");
    if (!f) { fprintf (stderr, "failed to open %s\n", argv[1]); exit (2); }

    char buffer[1024];
    scan_line(f, line);
    
    while (scan_line(f, line) != EOF) {
	dparse (&jd,   1, line);
	dparse (&time, 2, line);
	dparse (&ra,   3, line);
	dparse (&dec,  4, line);

    }

    // project to local coords

    // run fitter
    FitPMandPar


}
