Changeset 9386
- Timestamp:
- Oct 6, 2006, 5:54:08 PM (20 years ago)
- Location:
- trunk/psModules/src/astrom
- Files:
-
- 2 edited
-
pmAstrometryObjects.c (modified) (3 diffs)
-
pmAstrometryObjects.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryObjects.c
r8815 r9386 8 8 * @author EAM, IfA 9 9 * 10 * @version $Revision: 1.1 4$ $Name: not supported by cvs2svn $11 * @date $Date: 2006- 09-15 09:49:01$10 * @version $Revision: 1.15 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-10-07 03:54:08 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 202 202 psArray *ref, 203 203 psArray *match, 204 psMetadata *config) 204 psMetadata *config, 205 psMetadata *updates) 205 206 { 206 207 PS_ASSERT_PTR_NON_NULL(raw, NULL); … … 265 266 psVectorInit (yMask, 0); 266 267 268 double dX, dY; 269 267 270 // fit chip-to-FPA transformation 271 // XXX should force x->n and y->n to be the same 268 272 psVectorClipFitPolynomial2D (map->x, stats, xMask, 0, x, wt, X, Y); 269 273 psLogMsg ("psModules.astrom", 3, "x resid: %f +/- %f (%ld of %ld)\n", stats->clippedMean, stats->clippedStdev, stats->clippedNvalues, x->n); 274 dX = stats->clippedStdev; 270 275 271 276 psVectorClipFitPolynomial2D (map->y, stats, yMask, 0, y, wt, X, Y); 272 277 psLogMsg ("psModules.astrom", 3, "y resid: %f +/- %f (%ld of %ld)\n", stats->clippedMean, stats->clippedStdev, stats->clippedNvalues, y->n); 278 dY = stats->clippedStdev; 279 280 // XXX this is somewhat ad-hoc: we need to be sure these values are in arcsec 281 // and we need to set NASTRO = 0 if we have a failure, etc 282 // XXX this is a somewhat silly place to write these updates... 283 if (updates) { 284 psMetadataAddF32 (updates, PS_LIST_TAIL, "NASTRO", PS_META_REPLACE, "", PS_MIN(x->n, y->n)); 285 psMetadataAddF32 (updates, PS_LIST_TAIL, "CERROR", PS_META_REPLACE, "", hypot(dX, dY)); 286 psMetadataAddF32 (updates, PS_LIST_TAIL, "CPRECISE", PS_META_REPLACE, "", hypot(dX, dY)/sqrt(PS_MIN(x->n, y->n))); 287 psMetadataAddF32 (updates, PS_LIST_TAIL, "EQUINOX", PS_META_REPLACE, "", 2000.0); // XXX this is bogus: must be defined somewhere 288 } 273 289 274 290 psFree (x); -
trunk/psModules/src/astrom/pmAstrometryObjects.h
r7945 r9386 8 8 * @author EAM, IfA 9 9 * 10 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $11 * @date $Date: 2006- 07-20 13:02:36$10 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-10-07 03:54:08 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 316 316 psArray *st2, 317 317 psArray *match, 318 psMetadata *config 318 psMetadata *config, 319 psMetadata *updates 319 320 ); 320 321
Note:
See TracChangeset
for help on using the changeset viewer.
