IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 2, 2007, 3:26:52 PM (20 years ago)
Author:
eugene
Message:

fixed mosaic analysis; cleaned up test code (some in traces, some removed), general output cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroMosaicSetMatch.c

    r10830 r10880  
    88    pmFPAview *view = pmFPAviewAlloc (0);
    99    char radiusWord[64];
    10 
    11     FILE *g1 = fopen ("raw.ps.dat", "w");
    12     FILE *g2 = fopen ("ref.ps.dat", "w");
    1310
    1411    // use small radius to match stars (assume starting astrometry is good)
     
    4744                psTrace ("psastro", 4, "Matched %ld refstars\n", matches->n);
    4845
    49                 for (int i = 0; i < matches->n; i++) {
    50                     pmAstromMatch *match = matches->data[i];
    51 
    52                     pmAstromObj *raw = rawstars->data[match->raw];
    53                     fprintf (g1, "%d %f %f  %f %f  %f %f  %f %f\n", i,
    54                              DEG_RAD*raw->sky->r, DEG_RAD*raw->sky->d,
    55                              raw->TP->x, raw->TP->y,
    56                              raw->FP->x, raw->FP->y,
    57                              raw->chip->x, raw->chip->y);
    58 
    59                     pmAstromObj *ref = refstars->data[match->ref];
    60                     fprintf (g2, "%d %f %f  %f %f  %f %f  %f %f\n", i,
    61                              DEG_RAD*ref->sky->r, DEG_RAD*ref->sky->d,
    62                              ref->TP->x, ref->TP->y,
    63                              ref->FP->x, ref->FP->y,
    64                              ref->chip->x, ref->chip->y);
    65                 }
    66 
    6746                // XXX drop the old one
    6847                psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.MATCH", PS_DATA_ARRAY | PS_META_REPLACE, "astrometry matches", matches);
     48                psFree (matches);
    6949            }
    7050        }
    7151    }
    72     fclose (g1);
    73     fclose (g2);
     52    psFree (view);
    7453    return true;
    7554}
Note: See TracChangeset for help on using the changeset viewer.