Opened 20 years ago
Closed 17 years ago
#772 closed defect (fixed)
Source Moments are assgned 0 values when fitting PSFs
| Reported by: | masiero | Owned by: | eugene |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | psphot | Version: | unspecified |
| Severity: | minor | Keywords: | |
| Cc: |
Description
The moments being passed to the Strail model (or any model for that matter) with
the "pmSource *source" call are being assigned 0 values. This becomes a problem
when I divide the Sx and Sy for the fitting parameters, as the values become
NaN.
I've traced the problem back to the values being fed in by the function
"pmSourceMoments", which I believe is coming from psModules11 -> objects ->
pmSource.c lines 624-625. I think just changing the PS_MAX comparision to go
from the calculated value to some number slightly greater than zero would fix
the problem.
I've developed a work around by adding a very small number to the input source
moments to prevent Divide-by-0 errors, but this seems like a dirty fix.
Change History (2)
comment:1 by , 18 years ago
| Cc: | added |
|---|---|
| Status: | new → assigned |
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |

this issue has been long fixed.