- Timestamp:
- Sep 27, 2021, 8:16:29 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-dev-20210817/psastro/src/psastroOneChipFit.c
r41285 r41814 192 192 float astError = 0.5*(rawXstdev + rawYstdev) * plateScale; 193 193 194 // astStdev is the average 1D stdev of median residuals in arcsec ('results' are in FPA units = microns) 195 // the median residuals are calculated in a grid of N x N bins 196 float astStdev = 0.5*(results->xStdev + results->yStdev) * plateScale; 197 194 198 // x and y are forced to use the same subset of values: 195 199 int astNstar = results->yStats->clippedNvalues; … … 198 202 199 203 // XXX should these result in errors or be handled another way? 200 psLogMsg ("psastro", PS_LOG_INFO, "astrometry solution: error: %f arcsec, Nstars: %d ", astError, astNstar);204 psLogMsg ("psastro", PS_LOG_INFO, "astrometry solution: error: %f arcsec, Nstars: %d, stdev: %f arcsec", astError, astNstar, astStdev); 201 205 if (astError > maxError) { 202 206 psLogMsg("psastro", PS_LOG_INFO, "residual error is too large, failed to find a solution: %f > %f", astError, maxError); … … 211 215 psMetadataAddF32 (updates, PS_LIST_TAIL, "PERROR", PS_META_REPLACE, "astrometry error (pixels)", pixError); 212 216 psMetadataAddF32 (updates, PS_LIST_TAIL, "CERROR", PS_META_REPLACE, "astrometry error (arcsec)", astError); 217 psMetadataAddF32 (updates, PS_LIST_TAIL, "CERSTD", PS_META_REPLACE, "astrometry stdev (arcsec)", astStdev); 213 218 if (validSolution) { 214 219 psMetadataAddF32 (updates, PS_LIST_TAIL, "CPRECISE", PS_META_REPLACE, "astrometry precision (arcsec)", astError/sqrt(astNstar));
Note:
See TracChangeset
for help on using the changeset viewer.
