Changeset 10864 for trunk/psastro/src/psastroOneChip.c
- Timestamp:
- Jan 1, 2007, 11:03:03 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroOneChip.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroOneChip.c
r10855 r10864 90 90 } 91 91 92 // toTPA converts from FPA units (microns) to TPA units (linear degrees) 93 float plateScale1 = hypot (fpa->toTPA->x->coeff[1][0], fpa->toTPA->x->coeff[0][1]); 94 float plateScale2 = hypot (fpa->toTPA->y->coeff[1][0], fpa->toTPA->y->coeff[0][1]); 95 float plateScale = 0.5*(plateScale1 + plateScale2)*3600.0; 92 // toSky converts from FPA & TPA units (microns) to sky units (radians) 93 float plateScale = 0.5*(fpa->toSky->Xs + fpa->toSky->Ys)*3600.0*PM_DEG_RAD; 96 94 97 95 // pixError is the average 1D scatter in pixels ('results' are in FPA units = microns) … … 105 103 106 104 // XXX should these result in errors or be handled another way? 107 psLogMsg ("psastro", PS_LOG_INFO, "astrometry solution: error: %f , Nstars: %d", astError, astNstar);105 psLogMsg ("psastro", PS_LOG_INFO, "astrometry solution: error: %f arcsec, Nstars: %d", astError, astNstar); 108 106 if (astError > maxError) { 109 107 psLogMsg("psastro", PS_LOG_INFO, "residual error is too large, failed to find a solution: %f > %f", astError, maxError); … … 127 125 psMetadataAddF32 (updates, PS_LIST_TAIL, "EQUINOX", PS_META_REPLACE, "equinox of ref catalog", 2000.0); // XXX this is bogus: should be defined based on equinox of refstars 128 126 129 // write results127 // write results 130 128 psastroUpdateChipToFPA (fpa, chip, rawstars, refstars); 129 130 if (psTraceGetLevel("psastro.plot") > 0) { 131 psastroPlotOneChipFit (rawstars, refstars, match, results); 132 } 131 133 132 134 psFree (match);
Note:
See TracChangeset
for help on using the changeset viewer.
