#ifndef PM_READOUT_FAKE_H
#define PM_READOUT_FAKE_H

#include <pslib.h>
#include <pmHDU.h>
#include <pmFPA.h>

#include <pmMoments.h>
#include <pmResiduals.h>
#include <pmGrowthCurve.h>
#include <pmTrend2D.h>
#include <pmPSF.h>

/// Generate a fake readout from an array of sources
bool pmReadoutFakeFromSources(pmReadout *readout, ///< Output readout, or NULL
                              int numCols, int numRows, ///< Dimension of image
                              const psArray *sources, ///< Array of pmSource
                              const psVector *xOffset, ///< x offsets for sources (source -> img), or NULL
                              const psVector *yOffset, ///< y offsets for sources (source -> img), or NULL
                              const pmPSF *psf, ///< PSF for sources
                              float minFlux, ///< Minimum flux to bother about; for setting source radius
                              int radius, ///< Fixed radius for sources
                              bool circularise ///< Circularise PSF model?
    );

#endif
