IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2006, 4:47:20 PM (20 years ago)
Author:
magnier
Message:

fixed up low-level issues with sky levels, sky bias

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/objects/pmSourceFitModel.c

    r6556 r6751  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.1.2.2 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-03-09 03:14:23 $
     8 *  @version $Revision: 1.1.2.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-04-01 02:47:20 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    117117    psMinConstrain *constrain = psMinConstrainAlloc();
    118118
    119     // PSF model only fits first 4 parameters, EXT model fits all
     119    // PSF model only fits x,y,Io, EXT model fits all (both skip sky)
     120    paramMask = psVectorAlloc (params->n, PS_TYPE_U8);
     121    paramMask->data.U8[0] = 1;
    120122    if (PSF) {
    121         paramMask = psVectorAlloc (params->n, PS_TYPE_U8);
    122         for (int i = 0; i < 4; i++) {
     123        for (int i = 1; i < 4; i++) {
    123124            paramMask->data.U8[i] = 0;
    124125        }
    125126        for (int i = 4; i < paramMask->n; i++) {
    126127            paramMask->data.U8[i] = 1;
     128        }
     129    } else {
     130        for (int i = 1; i < paramMask->n; i++) {
     131            paramMask->data.U8[i] = 0;
    127132        }
    128133    }
Note: See TracChangeset for help on using the changeset viewer.