IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 11, 2005, 5:43:47 AM (21 years ago)
Author:
eugene
Message:

adding mask & noise images

File:
1 edited

Legend:

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

    r4189 r4215  
    44int main (int argc, char **argv) {
    55
    6     psMetadata *config  = NULL;         // user-provided configuration information
    7     psMetadata *header  = NULL;         // input image header
    8     psImage    *image   = NULL;         // input image data
    9     psImage    *noise   = NULL;         // input image data
    10     psImage    *mask    = NULL;         // input image data
    11     psArray    *sources = NULL;
    12     psArray    *peaks   = NULL;         // a list of pmPeaks
    13     pmPSF      *psf     = NULL;
    14     psStats    *sky     = NULL;
     6    psMetadata  *config  = NULL;                // user-provided configuration information
     7    psImageData *imdata  = NULL;
     8    psArray     *sources = NULL;
     9    psArray     *peaks   = NULL;                // a list of pmPeaks
     10    pmPSF       *psf     = NULL;
     11    psStats     *sky     = NULL;
    1512
    1613    psLogArguments (&argc, argv);
     
    2017    // load input data (image and config)
    2118    // create or load mask and noise images
    22     setup (&image, &mask, &noise, &header, config);
     19    imdata = setup (config);
    2320
    2421    // measure image stats for initial guess
    25     sky = image_stats (image, config);
     22    sky = image_stats (imdata, config);
    2623
    2724    // find the peaks in the image
    28     peaks = find_peaks (image, config, sky);
     25    peaks = find_peaks (imdata, config, sky);
    2926
    3027    // construct sources and measure basic stats
    31     sources = source_moments (image, config, peaks);
     28    sources = source_moments (imdata, config, peaks);
    3229
    3330    // source analysis is done in S/N order (brightest first)
Note: See TracChangeset for help on using the changeset viewer.