IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37466


Ignore:
Timestamp:
Oct 8, 2014, 10:12:08 AM (12 years ago)
Author:
bills
Message:

Initial check in of psphot galaxy parameter measurements.

Location:
trunk
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/recipes/psphot.config

    r37465 r37466  
    233233# Extended source fit parameters
    234234# these models are used for high-quality shape analysis after all sources have been removed
    235 EXTENDED_SOURCE_FITS                BOOL  FALSE  # perform the detailed extended sourc fits?
    236 EXTENDED_SOURCE_FITS_INTERACTIVE    BOOL  FALSE  # perform the detailed extended sourc fits?
     235EXTENDED_SOURCE_FITS                BOOL  FALSE  # perform the detailed extended source fits?
     236EXTENDED_SOURCE_FITS_INTERACTIVE    BOOL  FALSE  # perform the detailed extended source fits?
    237237EXTENDED_SOURCE_FITS_POISSON        BOOL  FALSE   # use poisson errors for extended source models
     238EXTENDED_SOURCE_GALAXY_PARAMS       BOOL  FALSE  # measure galaxy parameters
    238239
    239240EXTENDED_SOURCE_MODELS_SELECTION    STR   ALL
     
    479480STACKPHOT                             METADATA
    480481  EXTENDED_SOURCE_FITS                BOOL  TRUE  # perform any of the aperture-like measurements?
     482  EXTENDED_SOURCE_GALAXY_PARAMS       BOOL  TRUE  # perform any of the aperture-like measurements?
    481483  EXTENDED_SOURCE_SN_LIM              F32   10.0
    482484  EXTENDED_SOURCE_PETROSIAN           BOOL  TRUE
     
    494496  RADIAL_APERTURES                    BOOL  T    # calculate flux in circular radial apertures?
    495497  RADIAL_APERTURES_SN_LIM             F32   0.0  # S/N limit for radial aperture calculation
    496   OUTPUT.FORMAT                       STR   PS1_SV3
     498  OUTPUT.FORMAT                       STR   PS1_SV4
    497499
    498500  # subtract radial profiles for extremely bright stars?
  • trunk/psModules/src/objects/pmSourceExtendedPars.c

    r36375 r37466  
    226226    pars->petrosianR50 = NAN;
    227227    pars->petrosianR50Err = NAN;
     228    pars->ghalfLightRadius = NAN;
     229    pars->gRT = NAN;
     230    pars->gRA = NAN;
     231    pars->gS2 = NAN;
     232    pars->gA = NAN;
     233    pars->gbumpy = NAN;
    228234    return pars;
    229235}
  • trunk/psModules/src/objects/pmSourceExtendedPars.h

    r36747 r37466  
    6565    float petrosianR50Err;
    6666    float petrosianFill;
     67    float ghalfLightRadius;                 
     68    float gRT;                           // total residual (from eliptically symmetric model) Simard 2002
     69    float gRA;                           // assymetric residual (from eliptically symmetric model) Simard 2002
     70    float gS2;                           // (un) smoothness  (Simard, 2011 Cheng 2011)
     71    float gA;                            // assymetry index (Gyory & Bell 2010)
     72    float gbumpy;                        // Blakeslee bumpiness
    6773} pmSourceExtendedPars;
    6874
  • trunk/psModules/src/objects/pmSourceIO_CMF.c.in

    r37325 r37466  
    639639                psMetadataAdd (row, PS_LIST_TAIL, "PETRO_RADIUS_90_ERR", PS_DATA_F32, "Petrosian R90 Error (pix)", extpars->petrosianR90Err);
    640640                psMetadataAdd (row, PS_LIST_TAIL, "PETRO_FILL",          PS_DATA_F32, "Petrosian Fill Factor", extpars->petrosianFill);
     641                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "HALF_LIGHT_RADIUS", 0, "Half Light Radius", extpars->ghalfLightRadius);
     642                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_RT", 0, "total residual Sersic Model", extpars->gRT);
     643                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_RA", 0, "assymetric residual Sersic Model", extpars->gRA);
     644                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_S2", 0, "(un)smoothness paramter residual Sersic Model", extpars->gS2);
     645                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_A", 0, "assymetry index", extpars->gA);
     646                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_BUMPY", 0, "bumpiness", extpars->gbumpy);
    641647            } else {
    642648                psMetadataAdd (row, PS_LIST_TAIL, "PETRO_MAG",        PS_DATA_F32, "Petrosian Magnitude",       NAN);
     
    649655                psMetadataAdd (row, PS_LIST_TAIL, "PETRO_RADIUS_90_ERR", PS_DATA_F32, "Petrosian R90 Error (pix)",NAN);
    650656                psMetadataAdd (row, PS_LIST_TAIL, "PETRO_FILL",          PS_DATA_F32, "Petrosian Fill Factor", NAN);
     657                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "HALF_LIGHT_RADIUS", 0, "Half Light Radius", NAN);
     658                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_RT", 0, "total residual Sersic Model", NAN);
     659                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_RA", 0, "assymetric residual Sersic Model", NAN);
     660                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_S2", 0, "(un)smoothness paramter residual Sersic Model", NAN);
     661                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_A", 0, "assymetry index", NAN);
     662                @>PS1_SV3@ psMetadataAddF32 (row, PS_LIST_TAIL, "G_BUMPY", 0, "bumpiness", NAN);
    651663            }
    652664        }
  • trunk/psphot/src/Makefile.am

    r37321 r37466  
    260260        psphotSetNFrames.c             \
    261261        psphotSourceMemory.c           \
    262         psphotChipParams.c
     262        psphotChipParams.c              \
     263        psphotGalaxyParams.c
    263264
    264265# not currently used
  • trunk/psphot/src/psphot.h

    r37321 r37466  
    137137bool            psphotExtendedSourceFitsReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe);
    138138bool            psphotExtendedSourceFits_Threaded (psThreadJob *job);
     139
     140bool            psphotGalaxyParams (pmConfig *config, const pmFPAview *view, const char *filerule);
     141bool            psphotGalaxyParamsReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index, psMetadata *recipe);
     142bool            psphotGalaxyParams_Threaded (psThreadJob *job);
    139143
    140144bool            psphotApResid (pmConfig *config, const pmFPAview *view, const char *filerule);
  • trunk/psphot/src/psphotReadout.c

    r36623 r37466  
    325325    psphotExtendedSourceAnalysis (config, view, filerule); // pass 1 (detections->allSources)
    326326    psphotExtendedSourceFits (config, view, filerule); // pass 1 (detections->allSources)
     327    // measure some parameters for galaxy science
     328    psphotGalaxyParams (config, view, filerule);
    327329    psphotRadialApertures(config, view, filerule, 0);
    328330
  • trunk/psphot/src/psphotSetThreads.c

    r37321 r37466  
    9292    psFree(task);
    9393
     94    task = psThreadTaskAlloc("PSPHOT_GALAXY_PARAMS", 8);
     95    task->function = &psphotGalaxyParams_Threaded;
     96    psThreadTaskAdd(task);
     97    psFree(task);
     98
    9499    return true;
    95100}
  • trunk/psphot/src/psphotStackReadout.c

    r36630 r37466  
    342342    psphotExtendedSourceFits (config, view, STACK_RAW); // pass 1 (detections->allSources)
    343343
     344    // measure some parameters for galxy science
     345    psphotGalaxyParams (config, view, STACK_RAW); // pass 1 (detections->allSources)
    344346    // create source children for the OUT filerule (for radial aperture photometry and output)
    345347    // NOTE: The new source children have image arrays pointing to the readout associated with
Note: See TracChangeset for help on using the changeset viewer.