IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 5, 2005, 2:25:53 PM (21 years ago)
Author:
eugene
Message:

major name re-organization, added output modes, consistent with psLib/psModules names

File:
1 edited

Legend:

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

    r4901 r4946  
    99    pmPSF       *psf     = NULL;
    1010    psStats     *sky     = NULL;
     11    pmPSFClump   psfClump;
    1112
    12     config = load_args (&argc, argv);
     13    config = psphotArguments (&argc, argv);
    1314
    1415    // load input data (image and config)
    1516    // create or load mask and noise images
    1617    // we have memory leaks here -- may be from psMetadata
    17     imdata = setup (config);
     18    imdata = psphotSetup (config);
    1819
    1920    // measure image stats for initial guess
    20     sky = image_stats (imdata, config);
     21    sky = psphotImageStats (imdata, config);
    2122
    2223    // find the peaks in the image
    23     peaks = find_peaks (imdata, config, sky);
     24    peaks = pmPeaksSigmaLimit (imdata, config, sky);
    2425
    2526    // construct sources and measure basic stats
    26     sources = source_moments (imdata, config, peaks);
     27    sources = psphotSourceStats (imdata, config, peaks);
    2728
    2829    // classify sources based on moments, brightness
    29     basic_classes (sources, config);
     30    // XXX - this has 1 leak
     31    psfClump = pmSourcePSFClump (sources, config);
     32
     33    // group into STAR, COSMIC, GALAXY, SATURATED
     34    pmSourceRoughClass (sources, config, psfClump);
    3035
    3136    // source analysis is done in S/N order (brightest first)
    32     sources = psArraySort (sources, by_SN);
     37    sources = psArraySort (sources, psphotSortBySN);
    3338
    3439    // use bright stellar objects to measure PSF
    35     psf = choose_psf_model (config, sources, sky);
     40    psf = psphotChoosePSF (config, sources, sky);
    3641
    3742    // test PSF on all except SATURATE and DEFECT (artifacts)
    38     apply_psf_model (imdata, config, sources, psf, sky);
     43    psphotApplyPSF (imdata, config, sources, psf, sky);
    3944
    4045    // fit extended objects with galaxy models
    41     fit_galaxies (imdata, config, sources, sky);
     46    psphotFitGalaxies (imdata, config, sources, sky);
    4247
    4348    // write out data in appropriate format
    44     output (imdata, config, sources);
    45 
     49    psphotOutput (imdata, config, sources);
    4650    exit (0);
    4751}
Note: See TracChangeset for help on using the changeset viewer.