IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2009, 12:45:24 PM (17 years ago)
Author:
eugene
Message:

update from mainline

Location:
branches/eam_branches/20090715
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715

  • branches/eam_branches/20090715/psModules/src/objects/Makefile.am

    r24401 r25022  
    1010        pmFootprintArraysMerge.c \
    1111        pmFootprintAssignPeaks.c \
     12        pmFootprintCullPeaks.c \
    1213        pmFootprintFind.c \
    1314        pmFootprintFindAtPoint.c \
  • branches/eam_branches/20090715/psModules/src/objects/pmFootprint.h

    r20945 r25022  
    5151void pmSetFootprintArrayIDsForImage(psImage *idImage,
    5252                                    const psArray *footprints, // the footprints to insert
    53                                     const bool relativeIDs); // show IDs starting at 0, not pmFootprint->id
     53                                    const bool relativeIDs // show IDs starting at 0, not pmFootprint->id
     54    );
    5455
    5556psErrorCode pmFootprintsAssignPeaks(psArray *footprints, const psArray *peaks);
    5657
    57 psErrorCode pmFootprintArrayCullPeaks(const psImage *img, const psImage *weight, psArray *footprints,
    58                                  const float nsigma, const float threshold_min);
    59 psErrorCode pmFootprintCullPeaks(const psImage *img, const psImage *weight, pmFootprint *fp,
    60                                  const float nsigma, const float threshold_min);
     58psErrorCode pmFootprintCullPeaks(const psImage *img,       // the image wherein lives the footprint
     59                                 const psImage *weight,    // corresponding variance image
     60                                 pmFootprint *fp,          // Footprint containing mortal peaks
     61                                 const float nsigma_delta, // how many sigma above local background a peak needs to be to survive
     62                                 const float fPadding, // fractional padding added to stdev since bright peaks have unreasonably high significance
     63                                 const float min_threshold // minimum permitted coll height
     64    );
    6165
    6266psArray *pmFootprintArrayToPeaks(const psArray *footprints);
  • branches/eam_branches/20090715/psModules/src/objects/pmSource.c

    r24576 r25022  
    242242    extend |= (mySource->maskView == NULL);
    243243
    244     // extend = true;
    245244    if (extend) {
    246245        // re-create the subimage
     
    250249
    251250        mySource->pixels   = psImageSubset(readout->image,  newRegion);
    252         mySource->variance   = psImageSubset(readout->variance, newRegion);
     251        mySource->variance = psImageSubset(readout->variance, newRegion);
    253252        mySource->maskView = psImageSubset(readout->mask,   newRegion);
    254253        mySource->region   = newRegion;
  • branches/eam_branches/20090715/psModules/src/objects/pmSourceContour.c

    r23187 r25022  
    273273            x0 = findContourPos (image, threshold, xR, yR, RIGHT, x1);
    274274            if (x0 == x1) {
    275                 // fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1);
     275              // fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1);
    276276                goto pt1;
    277277            }
     
    282282            x1 = findContourNeg (image, threshold, xR, yR, RIGHT);
    283283        }
    284         // fprintf (stderr, "pos: %d (%d - %d)\n", yR, x0, x1);
     284        // fprintf (stderr, "pos: %d (%d - %d)\n", yR, x0, x1);
    285285
    286286        xVec->data.F32[Npt + 0] = image->col0 + x0;
     
    288288        yVec->data.F32[Npt + 0] = image->row0 + yR;
    289289        yVec->data.F32[Npt + 1] = image->row0 + yR;
     290
    290291        Npt += 2;
    291292
     
    307308            x0 = findContourPos (image, threshold, xR, yR, RIGHT, x1);
    308309            if (x0 == x1) {
    309                 // fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1);
     310              // fprintf (stderr, "top: %d (%d - %d)\n", yR, xR, x1);
    310311                goto pt2;
    311312            }
     
    322323        yVec->data.F32[Npt + 0] = image->row0 + yR;
    323324        yVec->data.F32[Npt + 1] = image->row0 + yR;
     325
    324326        Npt += 2;
    325327
     
    334336    yVec->n = Npt;
    335337
    336     // fprintf (stderr, "done\n");
    337338    psArray *tmpArray = psArrayAlloc(2);
    338339
  • branches/eam_branches/20090715/psModules/src/objects/pmSourceIO_MatchedRefs.c

    r24694 r25022  
    9595                    psTrace ("psastro", 4, "Trying %ld refstars\n", refstars->n);
    9696
     97# if (0)
     98                    // XXX test
     99                    FILE *outfile = fopen ("refstars.dat", "w");
     100                    assert (outfile);
     101                    for (int nn = 0; nn < refstars->n; nn++) {
     102                        pmAstromObj *ref = refstars->data[nn];
     103                        fprintf (outfile, "%lf %lf\n", ref->sky->r*PS_DEG_RAD, ref->sky->d*PS_DEG_RAD);
     104                    }
     105                    fclose (outfile);
     106# endif
     107
    97108                    psArray *matches = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.MATCH");
    98109                    if (matches == NULL) continue;
Note: See TracChangeset for help on using the changeset viewer.