IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 19, 2009, 8:49:41 AM (17 years ago)
Author:
eugene
Message:

further work on the petrosian analysis & extended sources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotEllipticalProfile.c

    r25433 r25452  
    11# include "psphotInternal.h"
    22
    3 bool psphotEllipticalProfile (pmSource *source, pmPetrosian *petrosian) {
     3bool psphotEllipticalProfile (pmSource *source) {
    44
    5     petrosian->radiusElliptical = psVectorAllocEmpty(100, PS_TYPE_F32);
    6     petrosian->fluxElliptical = psVectorAllocEmpty(100, PS_TYPE_F32);
     5    pmSourceRadialProfile *profile = source->extpars->profile;
    76
    8     psVector *radius = petrosian->radiusElliptical;
    9     psVector *flux = petrosian->fluxElliptical;
     7    profile->radiusElliptical = psVectorAllocEmpty(100, PS_TYPE_F32);
     8    profile->fluxElliptical = psVectorAllocEmpty(100, PS_TYPE_F32);
     9
     10    psVector *radius = profile->radiusElliptical;
     11    psVector *flux = profile->fluxElliptical;
    1012
    1113    // the psEllipse functions use z = 0.5(x/Sxx)^2 + 0.5(y/Syy)^2 + x y Sxy
     
    2022    psEllipseAxes axes;
    2123    axes.major = M_SQRT1_2;
    22     axes.minor = M_SQRT1_2 * (petrosian->axes.minor / petrosian->axes.major);
     24    axes.minor = M_SQRT1_2 * (profile->axes.minor / profile->axes.major);
    2325
    2426    // axes.major = 1.0;
    25     // axes.minor = petrosian->axes.minor / petrosian->axes.major;
     27    // axes.minor = profile->axes.minor / profile->axes.major;
    2628
    27     axes.theta = petrosian->axes.theta;
     29    axes.theta = profile->axes.theta;
    2830    psEllipseShape shape = psEllipseAxesToShape (axes);
    2931
     
    5658    // psVector *radiusRaw = psVectorAllocEmpty(100, PS_TYPE_F32);
    5759    // psVector *fluxRaw = psVectorAllocEmpty(100, PS_TYPE_F32);
    58     // for (int i = 0; i < petrosian->radii->n; i++) {
    59     //   psVector *r = petrosian->radii->data[i];
    60     //   psVector *f = petrosian->fluxes->data[i];
     60    // for (int i = 0; i < profile->radii->n; i++) {
     61    //   psVector *r = profile->radii->data[i];
     62    //   psVector *f = profile->fluxes->data[i];
    6163    //   for (int j = 0; j < r->n; j++) {
    6264    //  psVectorAppend(radiusRaw, r->data.F32[j]);
Note: See TracChangeset for help on using the changeset viewer.