IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2010, 4:11:53 PM (16 years ago)
Author:
eugene
Message:

merge changes from branches/eam_branches/psphot,psModules.20100506 (finish basic psphotStack)

Location:
trunk/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src/psphotRadialBins.c

    r27819 r28013  
    4444    psVector *radMin = psMetadataLookupPtr (&status, recipe, "RADIAL.ANNULAR.BINS.LOWER");
    4545    psVector *radMax = psMetadataLookupPtr (&status, recipe, "RADIAL.ANNULAR.BINS.UPPER");
    46     if (!radMin || !radMin->n) return false;
    47     if (!radMax || !radMax->n) return false;
     46    if (!radMin || !radMin->n) {
     47        psError (PSPHOT_ERR_CONFIG, true, "error in definition of annular bins (radMin missing or empty)");
     48        return false;
     49    }
     50    if (!radMax || !radMax->n) {
     51        psError (PSPHOT_ERR_CONFIG, true, "error in definition of annular bins (radMax missing or empty)");
     52        return false;
     53    }
    4854
    4955    psVector *binSB      = psVectorAllocEmpty(radMin->n, PS_TYPE_F32); // surface brightness of radial bin
     
    139145        }
    140146    }
    141     binSB->n = binSBstdev->n = binRad->n = binArea->n = nOut;
     147    binSB->n = binSBstdev->n = binSum->n = binRad->n = binArea->n = nOut;
    142148
    143149    // interpolate any bins that were empty (extrapolate to center if needed)
     
    155161        psFree(values);
    156162        psFree(stats);
    157         return false;
     163        return true;
    158164    }
    159165
Note: See TracChangeset for help on using the changeset viewer.