IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31381


Ignore:
Timestamp:
Apr 25, 2011, 5:26:32 PM (15 years ago)
Author:
eugene
Message:

psphotEff needs to set the fit and aperture radii; do not report an error unless the flux is nan; add test code to dump the sparse matrix data

Location:
branches/eam_branches/ipp-20110404/psphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110404/psphot/src/psphotEfficiency.c

    r31362 r31381  
    400400                source->type = PM_SOURCE_TYPE_STAR;
    401401
     402                source->modelPSF->fitRadius = sourceRadius;
     403                source->apRadius = sourceRadius;
     404
    402405                numFound++;
    403406                psArrayAdd(sources, sources->n, source);
  • branches/eam_branches/ipp-20110404/psphot/src/psphotFitSourcesLinear.c

    r31313 r31381  
    267267        }
    268268    }
     269
     270# if (0)
     271    static int npass = 0;
     272    char name[128];
     273    FILE *f1 = NULL;
     274    int fd = -1;
     275
     276    snprintf (name, 128, "sparse.Aij.%02d.dat", npass);
     277    f1 = fopen (name, "w");
     278    psAssert (f1, "failed to open file\n");
     279    fd = fileno (f1);
     280    p_psVectorPrint (fd, sparse->Aij, "Aij");
     281    fclose (f1);
     282
     283    snprintf (name, 128, "sparse.Bfj.%02d.dat", npass);
     284    f1 = fopen (name, "w");
     285    psAssert (f1, "failed to open file\n");
     286    fd = fileno (f1);
     287    p_psVectorPrint (fd, sparse->Bfj, "Bfj");
     288    fclose (f1);
     289
     290    snprintf (name, 128, "sparse.Qii.%02d.dat", npass);
     291    f1 = fopen (name, "w");
     292    psAssert (f1, "failed to open file\n");
     293    fd = fileno (f1);
     294    p_psVectorPrint (fd, sparse->Qii, "Qii");
     295    fclose (f1);
     296    npass ++;
     297# endif
    269298
    270299    psSparseResort (sparse);
  • branches/eam_branches/ipp-20110404/psphot/src/psphotMagnitudes.c

    r31364 r31381  
    210210
    211211        status = pmSourceMagnitudes (source, psf, photMode, maskVal, markVal, source->apRadius);
    212         if (status && isfinite(source->apMag)) {
     212        if (status && isfinite(source->apFlux)) {
    213213            Nap ++;
    214214        } else {
Note: See TracChangeset for help on using the changeset viewer.