IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2009, 2:32:30 PM (17 years ago)
Author:
eugene
Message:

test code to check refstar coords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceIO_MatchedRefs.c

    r24694 r24801  
    9595                    psTrace ("psastro", 4, "Trying %ld refstars\n", refstars->n);
    9696
     97# if (0)
     98                    // XXX test
     99                    FILE *outfile = fopen ("refstars.dat", "w");
     100                    assert (outfile);
     101                    for (int nn = 0; nn < refstars->n; nn++) {
     102                        pmAstromObj *ref = refstars->data[nn];
     103                        fprintf (outfile, "%lf %lf\n", ref->sky->r*PS_DEG_RAD, ref->sky->d*PS_DEG_RAD);
     104                    }
     105                    fclose (outfile);
     106# endif
     107
    97108                    psArray *matches = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.MATCH");
    98109                    if (matches == NULL) continue;
Note: See TracChangeset for help on using the changeset viewer.