IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 25, 2005, 9:21:10 PM (21 years ago)
Author:
eugene
Message:

added pmModelSkyOffset (not used)

File:
1 edited

Legend:

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

    r5048 r5125  
    8282}
    8383
     84// force the fitted sky to meet the source flux at outer radius
     85bool pmModelSkyOffset (pmModel *model, float x, float y, float radius) {
     86
     87    float flux;
     88
     89    psVector *coord = psVectorAlloc(2, PS_TYPE_F32);
     90
     91    pmModelFunc modelFunc = pmModelFunc_GetFunction (model->type);
     92    psVector *params = model->params;
     93 
     94    coord->data.F32[0] = x + radius;
     95    coord->data.F32[1] = y;
     96    flux = modelFunc (NULL, params, coord);
     97    params->data.F32[0] = flux;
     98
     99    psFree (coord);
     100
     101    return true;
     102}
Note: See TracChangeset for help on using the changeset viewer.