IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 3:58:10 PM (14 years ago)
Author:
eugene
Message:

add TRAIL models (and some trace test output); create psphotMinimal to test the psphotReadoutMinimal variant

Location:
trunk/psphot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src

  • trunk/psphot/src/psphotReadoutMinimal.c

    r34215 r34258  
    2525    // Generate the mask and weight images, including the user-defined analysis region of interest
    2626    psphotSetMaskAndVariance (config, view, filerule);
     27
     28    // only subtract background if needed?
     29    // activate this for a clean test with psphotMinimal. (add to recipe!)
     30    if (0) {
     31      // generate a background model (median, smoothed image)
     32      if (!psphotModelBackground (config, view, filerule)) {
     33        return psphotReadoutCleanup (config, view, filerule);
     34      }
     35      if (!psphotSubtractBackground (config, view, filerule)) {
     36        return psphotReadoutCleanup (config, view, filerule);
     37      }
     38    }
    2739
    2840    // load the psf model, if suppled.  FWHM_X,FWHM_Y,etc are saved on readout->analysis
     
    7284    psphotFitSourcesLinear (config, view, filerule, false, false);
    7385
    74 // XXX eventually, add the extended source fits here
    75 # if (0)
     86    // measure the radial profiles to the sky
     87    psphotRadialProfileWings (config, view, filerule);
     88
     89    // re-measure the kron mags with models subtracted and more appropriate windows
     90    psphotKronIterate(config, view, filerule);
     91
    7692    // measure source size for the remaining sources
    77     psphotSourceSize (config, view, filerule);
     93    psphotSourceSize (config, view, filerule, false);
    7894
    79     psphotExtendedSourceAnalysis (config, view, filerule);
     95    // NOTE: Petrosian and Isophotal mags are not relevant at this time
     96    // psphotExtendedSourceAnalysis (config, view, filerule);
    8097
     98    // in ppSub context, this is used to fit TRAILs (and maybe EXP for comets)
    8199    psphotExtendedSourceFits (config, view, filerule);
    82 # endif
    83100
    84101    // calculate source magnitudes
Note: See TracChangeset for help on using the changeset viewer.