IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2006, 2:07:03 PM (20 years ago)
Author:
Paul Price
Message:

Changed definition of psVectorAlloc and psArrayAlloc

File:
1 edited

Legend:

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

    r9270 r9734  
    66
    77    psArray *sources = psArrayAlloc (50);
    8     sources->n = 50;
    98
    109    for (int i = 0; i < sources->n; i++) {
    11         pmSource *source = pmSourceAlloc ();
    12         source->moments = pmMomentsAlloc ();
    13         source->moments->x = 10;
    14         source->moments->y = 10;
    15         source->moments->Sx = 1;
    16         source->moments->Sy = 1;
    17         source->moments->Sxy = 0;
    18         source->moments->Sum = 1000;
    19         source->moments->Peak = 100;
    20         source->moments->Sky = 10;
    21         source->moments->nPixels = 10;
     10        pmSource *source = pmSourceAlloc ();
     11        source->moments = pmMomentsAlloc ();
     12        source->moments->x = 10;
     13        source->moments->y = 10;
     14        source->moments->Sx = 1;
     15        source->moments->Sy = 1;
     16        source->moments->Sxy = 0;
     17        source->moments->Sum = 1000;
     18        source->moments->Peak = 100;
     19        source->moments->Sky = 10;
     20        source->moments->nPixels = 10;
    2221
    23         source->peak = pmPeakAlloc (10, 10, 0, 0);
    24         source->type = PM_SOURCE_TYPE_STAR;
     22        source->peak = pmPeakAlloc (10, 10, 0, 0);
     23        source->type = PM_SOURCE_TYPE_STAR;
    2524
    26         pmModelType modelType = pmModelSetType ("PS_MODEL_QGAUSS");
    27         source->modelPSF = pmSourceModelGuess (source, modelType);
    28         sources->data[i] = source;
     25        pmModelType modelType = pmModelSetType ("PS_MODEL_QGAUSS");
     26        source->modelPSF = pmSourceModelGuess (source, modelType);
     27        sources->data[i] = source;
    2928    }
    3029    return sources;
Note: See TracChangeset for help on using the changeset viewer.