Changeset 10852
- Timestamp:
- Dec 29, 2006, 8:30:36 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/astrom/pmAstrometryObjects.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryObjects.c
r10829 r10852 8 8 * @author EAM, IfA 9 9 * 10 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-12-2 5 01:49:49$10 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-12-29 18:30:36 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 569 569 570 570 // only check bins with at least 1/2 of max bin 571 int minNpts = 0.5*imStats->max; 571 // XXX requiring at least 3 matches in bin 572 int minNpts = PS_MAX (0.5*imStats->max, 3); 572 573 psTrace("psModule.astrom.grid.angle", 5, "minNpts: %d, max: %d", minNpts, (int)(imStats->max)); 573 574 … … 596 597 597 598 // convert the bin to delta-delta 598 stats->offset.x = DX[minY][minX] / NP[minY][minX]; 599 stats->offset.y = DY[minY][minX] / NP[minY][minX]; 600 stats->minMetric = minMetric; 601 stats->minVar = minVar; 602 stats->nMatch = NP[minY][minX]; 599 if ((minX < 0) || (minY < 0)) 600 { 601 // no valid matches found 602 stats->offset.x = 0; 603 stats->offset.y = 0; 604 stats->minMetric = minMetric; 605 stats->minVar = minVar; 606 stats->nMatch = 0; 607 } else 608 { 609 stats->offset.x = DX[minY][minX] / NP[minY][minX]; 610 stats->offset.y = DY[minY][minX] / NP[minY][minX]; 611 stats->minMetric = minMetric; 612 stats->minVar = minVar; 613 stats->nMatch = NP[minY][minX]; 614 } 603 615 604 616 psFree (imStats);
Note:
See TracChangeset
for help on using the changeset viewer.
