IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29347


Ignore:
Timestamp:
Oct 7, 2010, 9:44:38 AM (16 years ago)
Author:
eugene
Message:

adjust test output filenames; add radius init to extended source fits; add Mminor test

Location:
branches/eam_branches/ipp-20100823/psphot/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psphot/src/psphot.h

    r29004 r29347  
    167167
    168168// used by psphotFindDetections
    169 psImage        *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, const int pass, psImageMaskType maskVal);
     169psImage        *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, psImageMaskType maskVal);
    170170psArray        *psphotFindPeaks (psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int nMax);
    171171bool            psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal);
  • branches/eam_branches/ipp-20100823/psphot/src/psphotExtendedSourceFits.c

    r29341 r29347  
    8585        return true;
    8686    }
     87
     88    psphotInitRadiusEXT (recipe, readout);
    8789
    8890    // validate the model entries
     
    167169            PS_ARRAY_ADD_SCALAR(job->args, 0, PS_TYPE_S32); // this is used as a return value for NplainPass
    168170
    169             if (!psThreadJobAddPending(job)) {
     171            if (false && !psThreadJobAddPending(job)) {
    170172                psError(PS_ERR_UNKNOWN, false, "Unable to guess model.");
    171173                psFree(AnalysisRegion);
    172174                return false;
    173             }
     175            } else {
     176                if (!psphotExtendedSourceFits_Threaded(job)) {
     177                    psError(PS_ERR_UNKNOWN, false, "Unable to guess model.");
     178                    psFree(AnalysisRegion);
     179                    return false;
     180                }
     181            }
    174182        }
    175183
  • branches/eam_branches/ipp-20100823/psphot/src/psphotFindDetections.c

    r29004 r29347  
    8585
    8686    // generate the smoothed significance image
    87     psImage *significance = psphotSignificanceImage (readout, recipe, pass, maskVal);
     87    psImage *significance = psphotSignificanceImage (readout, recipe, maskVal);
    8888
    8989    // display the significance image
  • branches/eam_branches/ipp-20100823/psphot/src/psphotSignificanceImage.c

    r29004 r29347  
    44// (S/N)^2.  If FWMH_X,Y have been recorded, use them, otherwise use PEAKS_SMOOTH_SIGMA for the
    55// smoothing kernel.
    6 psImage *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, const int pass, psImageMaskType maskVal) {
     6psImage *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, psImageMaskType maskVal) {
    77
    88    float SIGMA_SMTH, NSIGMA_SMTH;
     
    6767    // XXX change these to recipe value checks
    6868    if (psTraceGetLevel("psphot") > 5) {
     69        static int pass = 0;
    6970        char name[64];
    7071        sprintf (name, "imsmooth.v%d.fits", pass);
     
    7273        sprintf (name, "wtsmooth.v%d.fits", pass);
    7374        psphotSaveImage(NULL, smooth_wt, name);
     75        pass ++;
    7476    }
    7577
     
    108110    if (psTraceGetLevel("psphot") > 5) {
    109111        char name[64];
     112        static int pass = 0;
    110113        sprintf (name, "snsmooth.v%d.fits", pass);
    111114        psphotSaveImage (NULL, smooth_im, name);
     115        pass ++;
    112116    }
    113117
  • branches/eam_branches/ipp-20100823/psphot/src/psphotSourceSize.c

    r29311 r29347  
    413413        // ** CRs are reliably flagged by a combination on Mminor < X && mag (or flux) > Y
    414414
    415         Mminor = 0.5*(Mxx + Myy) - 0.5*sqrt(PS_SQR(Mxx - Myy) + 4.0*PS_SQR(Mxy));
     415        float Mminor = 0.5*(Mxx + Myy) - 0.5*sqrt(PS_SQR(Mxx - Myy) + 4.0*PS_SQR(Mxy));
     416        if ((Mminor < 1.0) && (apMag < -8.0)) {
     417            fprintf (stderr, "likely CR @ %f,%f\n", source->peak->xf, source->peak->yf);
     418        }
    416419
    417420        // XXX do I need to find the Mminor, Mmajor distribution?
  • branches/eam_branches/ipp-20100823/psphot/src/psphotSourceStats.c

    r29230 r29347  
    4545    pmReadout *readout = pmFPAviewThisReadout(view, file->fpa);
    4646    psAssert (readout, "missing readout?");
     47
     48    if (psTraceGetLevel("psphot") > 5) {
     49        static int pass = 0;
     50        char name[64];
     51        sprintf (name, "srstats.v%d.fits", pass);
     52        psphotSaveImage(NULL, readout->image, name);
     53        pass ++;
     54    }
    4755
    4856    pmDetections *detections = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.DETECTIONS");
Note: See TracChangeset for help on using the changeset viewer.