IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 3, 2004, 10:03:58 AM (22 years ago)
Author:
Paul Price
Message:

Added normalisation for stars, so that their peak flux will
change with the seeing: normalised to *total* flux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/scripts/fakeimage.c

    r743 r843  
    11/*
    2 ** $Id: fakeimage.c,v 1.3 2004-05-20 00:17:00 price Exp $
     2** $Id: fakeimage.c,v 1.4 2004-06-03 20:03:58 price Exp $
    33** Program to make some fake images.
    44**
     
    563563    for (j=minj;j<=maxj;j++)
    564564        for (k=mink;k<=maxk;k++)
    565             data[(nx+nxos)*k+j] += flux*exp(-1.0 * ((x-j)*(x-j) + (y-k)*(y-k))/2.0/(seeing/SIGMAtoFWHM)/(seeing/SIGMAtoFWHM));
     565            data[(nx+nxos)*k+j] += flux/sqrt(2.0*M_PI)/(seeing/SIGMAtoFWHM)*exp(-1.0 * ((x-j)*(x-j) + (y-k)*(y-k))/2.0/(seeing/SIGMAtoFWHM)/(seeing/SIGMAtoFWHM));
    566566   
    567567}
Note: See TracChangeset for help on using the changeset viewer.