IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2011, 10:40:50 AM (15 years ago)
Author:
eugene
Message:

remove invalid references to isophot and kron from extended source analysis; use the measured sky stdev instead of the user guess; optionally allow stars as well as galaxies to get petrosians; fix target vs input seeing in psphotStack; allow radial apertures for single-image analysis as well as stack; calculate the radial aperture flux errors; calculate the petrosian parameter errors; turn on threads for ext source fits; save covar matrix for ext source fits; calculate petrosian fill factor

Location:
branches/eam_branches/ipp-20110213/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psphot

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/eam_branches/ipp-20110213/psphot/src/psphotPetrosianRadialBins.c

    r28013 r30707  
    5151    psVector *binRad     = psVectorAllocEmpty(nMax, PS_TYPE_F32); // mean radius of radial bin
    5252    psVector *binArea    = psVectorAllocEmpty(nMax, PS_TYPE_F32); // area of radial bin (contiguous, non-overlapping)
     53    psVector *binFill    = psVectorAllocEmpty(nMax, PS_TYPE_F32); // fraction of radial bin with valid pixels
    5354
    5455    psVectorInit (binSB, 0.0);
     
    144145            binSB->data.F32[nOut] = value;
    145146            binSBstdev->data.F32[nOut] = sqrt(PS_SQR(dvalue) / values->n + skyModelErrorSQ);
     147            binFill->data.F32[nOut] = values->n / binArea->data.F32[nOut];
    146148
    147149            // error in the SB is the stdev per bin / sqrt (number of pixels)
     
    176178        psFree(binRad);
    177179        psFree(binArea);
     180        psFree(binFill);
    178181        psFree(radMin);
    179182        psFree(radMax);
     
    202205    psFree(profile->radialBins);
    203206    psFree(profile->area);
     207    psFree(profile->binFill);
    204208
    205209    // save the vectors
    206210    profile->radialBins = binRad;
    207211    profile->area       = binArea;
     212    profile->binFill    = binFill;
    208213    profile->binSB      = binSB;
    209214    profile->binSBstdev = binSBstdev;
Note: See TracChangeset for help on using the changeset viewer.