Changeset 6377
- Timestamp:
- Feb 7, 2006, 8:10:29 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_rel9_p0/psModules/src/objects/pmObjects.c
r6287 r6377 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.5.4. 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-02-0 1 22:24:05$8 * @version $Revision: 1.5.4.6 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-02-08 06:10:29 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 78 78 psFree(tmp->modelPSF); 79 79 psFree(tmp->modelEXT); 80 psFree(tmp->blends); 80 81 psTrace(__func__, 4, "---- %s() end ----\n", __func__); 81 82 } … … 1636 1637 for (psS32 i = 0; i < source->pixels->numRows; i++) { 1637 1638 for (psS32 j = 0; j < source->pixels->numCols; j++) { 1639 // skip masked points 1638 1640 if (source->mask->data.U8[i][j]) { 1639 1641 continue; 1640 1642 } 1643 // skip zero-weight points 1644 if (source->weight->data.F32[i][j] == 0) { 1645 continue; 1646 } 1647 1641 1648 psVector *coord = psVectorAlloc(2, PS_TYPE_F32); 1642 1649 … … 1646 1653 x->data[nPix] = (psPtr *) coord; 1647 1654 y->data.F32[nPix] = source->pixels->data.F32[i][j]; 1648 1649 1655 // psMinimizeLMChi2 takes wt = 1/dY^2 1650 if (source->weight->data.F32[i][j] == 0) {1651 continue;1652 }1653 1656 yErr->data.F32[nPix] = 1.0 / source->weight->data.F32[i][j]; 1654 1657 nPix++; … … 1720 1723 dparams->data.F32[i] = delta->data.F64[i]; 1721 1724 } 1725 psFree (delta); 1722 1726 } 1723 1727 … … 1746 1750 psFree(covar); 1747 1751 psFree(paramMask); 1752 psFree(params_min); 1753 psFree(params_max); 1754 psFree(beta_lim); 1748 1755 1749 1756 rc = (onPic && fitStatus);
Note:
See TracChangeset
for help on using the changeset viewer.
