IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25260


Ignore:
Timestamp:
Sep 2, 2009, 3:58:03 PM (17 years ago)
Author:
Paul Price
Message:

Code compiles.

Location:
branches/pap/psphot/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psphot/src/psphot.h

    r25246 r25260  
    5353
    5454bool            psphotReplaceAllSources (psArray *sources, psMetadata *recipe);
    55 bool            psphotRemoveAllSources (psArray *sources, psMetadata *recipe);
     55bool            psphotRemoveAllSources (const psArray *sources, const psMetadata *recipe);
    5656
    5757bool            psphotBlendFit (pmConfig *config, pmReadout *readout, psArray *sources, pmPSF *psf);
     
    7676bool            psphotExtendedSourceAnalysis (pmReadout *readout, psArray *sources, psMetadata *recipe);
    7777bool            psphotExtendedSourceFits (pmReadout *readout, psArray *sources, psMetadata *recipe);
    78 bool            psphotFake(pmReadout *readout, const pmPSF *psf, const psMetadata *recipe, const psArray *realSources);
     78bool            psphotFake(pmReadout *readout, const pmPSF *psf, psMetadata *recipe, const psArray *realSources);
    7979
    8080// thread-related:
     
    148148pmPSF          *psphotLoadPSF (pmConfig *config, const pmFPAview *view, psMetadata *recipe);
    149149bool            psphotSetHeaderNstars (psMetadata *recipe, psArray *sources);
    150 bool            psphotAddNoise (pmReadout *readout, psArray *sources, psMetadata *recipe);
    151 bool            psphotSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe);
    152 bool            psphotAddOrSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe, bool add);
     150bool            psphotAddNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe);
     151bool            psphotSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe);
     152bool            psphotAddOrSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe, bool add);
    153153bool            psphotRadialPlot (int *kapa, const char *filename, pmSource *source);
    154154bool            psphotSourcePlots (pmReadout *readout, psArray *sources, psMetadata *recipe);
  • branches/pap/psphot/src/psphotAddNoise.c

    r21519 r25260  
    11# include "psphotInternal.h"
    22
    3 bool psphotAddNoise (pmReadout *readout, psArray *sources, psMetadata *recipe) {
     3bool psphotAddNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe) {
    44  return psphotAddOrSubNoise (readout, sources, recipe, true);
    55}
    66
    7 bool psphotSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe) {
     7bool psphotSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe) {
    88  return psphotAddOrSubNoise (readout, sources, recipe, false);
    99}
    1010
    11 bool psphotAddOrSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe, bool add) {
     11bool psphotAddOrSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe, bool add) {
    1212
    1313    bool status = false;
     
    4242    PS_ASSERT (status, false);
    4343    if (isfinite(GAIN)) {
    44         FACTOR /= GAIN;
     44        FACTOR /= GAIN;
    4545    }
    4646
     
    7070        oldshape.sxy = PAR[PM_PAR_SXY];
    7171
    72         // XXX can this be done more intelligently?
    73         if (oldI0 == 0.0) continue;
    74         if (!isfinite(oldI0)) continue;
     72        // XXX can this be done more intelligently?
     73        if (oldI0 == 0.0) continue;
     74        if (!isfinite(oldI0)) continue;
    7575
    7676        // increase size and height of source
  • branches/pap/psphot/src/psphotFake.c

    r25246 r25260  
    9898
    9999    pmReadout *fakeRO = pmReadoutAlloc(NULL); // Fake readout
    100     if (!pmReadoutFakeFromVectors(fakeRO, xAll, yAll, magAll, NULL, NULL, psf, minFlux, NAN, false, false)) {
     100    if (!pmReadoutFakeFromVectors(fakeRO, numCols, numRows, xAll, yAll, magAll,
     101                                  NULL, NULL, psf, minFlux, 0, false, false)) {
    101102        psError(PS_ERR_UNKNOWN, false, "Unable to generate fake image");
    102103        psFree(fakeRO);
     
    118119
    119120// *** in this section, perform the photometry for fake sources ***
    120 bool psphotFake(pmReadout *readout, const pmPSF *psf, const psMetadata *recipe, const psArray *realSources)
     121bool psphotFake(pmReadout *readout, const pmPSF *psf, psMetadata *recipe, const psArray *realSources)
    121122{
    122123    PM_ASSERT_READOUT_NON_NULL(readout, false);
  • branches/pap/psphot/src/psphotReplaceUnfit.c

    r21519 r25260  
    4747}
    4848
    49 bool psphotRemoveAllSources (psArray *sources, psMetadata *recipe) {
     49bool psphotRemoveAllSources (const psArray *sources, const psMetadata *recipe) {
    5050
    5151    bool status;
Note: See TracChangeset for help on using the changeset viewer.