Changeset 17396 for trunk/psphot/src/psphotRadialProfile.c
- Timestamp:
- Apr 8, 2008, 8:36:06 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotRadialProfile.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotRadialProfile.c
r15819 r17396 41 41 42 42 int n = 0; 43 float Xo = source->modelEXT->params->data.F32[PM_PAR_XPOS] - source->pixels->col0; 44 float Yo = source->modelEXT->params->data.F32[PM_PAR_YPOS] - source->pixels->row0; 43 44 float Xo = 0.0; 45 float Yo = 0.0; 46 47 if (source->modelEXT) { 48 Xo = source->modelEXT->params->data.F32[PM_PAR_XPOS] - source->pixels->col0; 49 Yo = source->modelEXT->params->data.F32[PM_PAR_YPOS] - source->pixels->row0; 50 } else { 51 Xo = source->peak->xf - source->pixels->col0; 52 Yo = source->peak->yf - source->pixels->row0; 53 } 45 54 for (int iy = 0; iy < source->pixels->numRows; iy++) { 46 55 for (int ix = 0; ix < source->pixels->numCols; ix++) {
Note:
See TracChangeset
for help on using the changeset viewer.
