IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15424


Ignore:
Timestamp:
Oct 31, 2007, 2:57:29 PM (19 years ago)
Author:
Paul Price
Message:

Initialising fake image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmReadoutFake.c

    r15362 r15424  
    3535    pmReadout *readout = pmReadoutAlloc(NULL); // Output readout
    3636    readout->image = psImageAlloc(numCols, numRows, PS_TYPE_F32);
     37    psImageInit(readout->image, 0);
    3738
    3839    int numSources = sources->n;          // Number of stars
     
    8687        fakeModel->params->data.F32[PM_PAR_I0] = powf(10.0, -0.4 * source->psfMag) / flux0;
    8788
     89        psTrace("psModules.camera", 10, "Adding source at %f,%f with flux %f\n",
     90                fakeModel->params->data.F32[PM_PAR_XPOS], fakeModel->params->data.F32[PM_PAR_YPOS],
     91                fakeModel->params->data.F32[PM_PAR_I0]);
     92
    8893        pmSource *fakeSource = pmSourceAlloc(); // Fake source to generate
    8994        fakeSource->peak = pmPeakAlloc(x, y, fakeModel->params->data.F32[PM_PAR_I0], PM_PEAK_LONE);
Note: See TracChangeset for help on using the changeset viewer.