Changeset 25027 for branches/pap/psastro/src/psastroMosaicOneChip.c
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/psastro
- Property svn:mergeinfo deleted
-
branches/pap/psastro/src/psastroMosaicOneChip.c
r21422 r25027 58 58 59 59 // modify the order to correspond to the actual number of matched stars: 60 if ((match->n < 17) && (order >= 3)) order = 2; 61 if ((match->n < 13) && (order >= 2)) order = 1; 62 if ((match->n < 9) && (order >= 1)) order = 0; 63 if ((match->n < 3) || (order < 0) || (order > 3)) { 60 int Ndof_min = 3; 61 int order_max = 0.5*(sqrt(4*match->n - 4*Ndof_min + 1) - 3); 62 order = PS_MIN (order, order_max); 63 64 // if ((match->n < 17) && (order >= 3)) order = 2; 65 // if ((match->n < 13) && (order >= 2)) order = 1; 66 // if ((match->n < 9) && (order >= 1)) order = 0; 67 68 if (order < 0) { 64 69 psLogMsg ("psastro", 3, "insufficient stars (%ld) or invalid order (%d)", match->n, order); 65 70 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
