IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2007, 8:52:31 AM (19 years ago)
Author:
eugene
Message:

adding input psf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimMakeStars.c

    r14463 r14531  
    6363            ppSimStar *star = ppSimStarAlloc ();
    6464
    65             star->x    = (psRandomUniform(rng) - 0.5) * xSize ; // x position
    66             star->y    = (psRandomUniform(rng) - 0.5) * ySize; // y position
     65            // make fpa center of distribution
     66            star->x    = psRandomUniform(rng) * xSize; // x position
     67            star->y    = psRandomUniform(rng) * ySize; // y position
    6768            star->peak = expf((logf(i + 1) - logf(norm)) / starsLum); // Peak flux
     69            star->flux = star->peak * sqrt(2.0*M_PI)*seeing;
    6870            stars->data[oldSize + i] = star;
    6971        }
     72        stars->n = stars->nalloc;
    7073    }
    7174    return true;
Note: See TracChangeset for help on using the changeset viewer.