IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14760


Ignore:
Timestamp:
Sep 5, 2007, 12:11:31 PM (19 years ago)
Author:
Paul Price
Message:

Fixing compilation errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotRoughClass.c

    r14759 r14760  
    99
    1010    if (!havePSF) {
    11         // determine the PSF parameters from the source moment values
     11        // determine the PSF parameters from the source moment values
    1212        psfClump = pmSourcePSFClump (sources, recipe);
    13     } else
    14         // pull FWHM_X,Y from the recipe, use to define psfClump.X,Y
    15         bool status_x, status_y;
     13    } else {
     14        // pull FWHM_X,Y from the recipe, use to define psfClump.X,Y
     15        bool status_x, status_y, status_a;
    1616        float FWHM_X = psMetadataLookupF32 (&status_x, recipe, "FWHM_X");
    1717        float FWHM_Y = psMetadataLookupF32 (&status_y, recipe, "FWHM_Y");
     
    2222        }
    2323
    24         psEllipseAxes axes;
    25         axes.major = FWHM_X / (2.0*sqrt(2.0*log(2.0)));
    26         axes.minor = FWHM_Y / (2.0*sqrt(2.0*log(2.0)));
    27         axes.theta = ANGLE;
    28         psEllipseShape shape = psEllipseAxesToShape (axes);
    29        
     24        psEllipseAxes axes;
     25        axes.major = FWHM_X / (2.0*sqrt(2.0*log(2.0)));
     26        axes.minor = FWHM_Y / (2.0*sqrt(2.0*log(2.0)));
     27        axes.theta = ANGLE;
     28        psEllipseShape shape = psEllipseAxesToShape (axes);
     29
    3030        psfClump.X   = shape.sx;
    3131        psfClump.Y   = shape.sy;
    3232        psfClump.dX  = 0.1*shape.sx;
    3333        psfClump.dY  = 0.1*shape.sy;
    34         // dX,dY are somewhat crudely defined, but only used to select PSF candidates.
    35         // if we already have a PSF, this is not actually used...
     34        // dX,dY are somewhat crudely defined, but only used to select PSF candidates.
     35        // if we already have a PSF, this is not actually used...
    3636    }
    3737
Note: See TracChangeset for help on using the changeset viewer.