IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2008, 8:36:06 AM (18 years ago)
Author:
eugene
Message:

merging from eam_branch_20080324 : psphot work on extended source fitting and related I/O functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotRadialProfile.c

    r15819 r17396  
    4141
    4242    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    }
    4554    for (int iy = 0; iy < source->pixels->numRows; iy++) {
    4655        for (int ix = 0; ix < source->pixels->numCols; ix++) {
Note: See TracChangeset for help on using the changeset viewer.