Changeset 10880 for trunk/psastro/src/psastroMosaicSetMatch.c
- Timestamp:
- Jan 2, 2007, 3:26:52 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMosaicSetMatch.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMosaicSetMatch.c
r10830 r10880 8 8 pmFPAview *view = pmFPAviewAlloc (0); 9 9 char radiusWord[64]; 10 11 FILE *g1 = fopen ("raw.ps.dat", "w");12 FILE *g2 = fopen ("ref.ps.dat", "w");13 10 14 11 // use small radius to match stars (assume starting astrometry is good) … … 47 44 psTrace ("psastro", 4, "Matched %ld refstars\n", matches->n); 48 45 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 67 46 // XXX drop the old one 68 47 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.MATCH", PS_DATA_ARRAY | PS_META_REPLACE, "astrometry matches", matches); 48 psFree (matches); 69 49 } 70 50 } 71 51 } 72 fclose (g1); 73 fclose (g2); 52 psFree (view); 74 53 return true; 75 54 }
Note:
See TracChangeset
for help on using the changeset viewer.
