IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 23, 2006, 6:16:11 PM (20 years ago)
Author:
eugene
Message:

fixed some errors with double sources, added second-pass linear PSF fit, multiple-depths

File:
1 edited

Legend:

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

    r6441 r6481  
    88// use no more than MAX_SAMPLE_PIXELS pixels for each median box
    99static int MAX_SAMPLE_PIXELS;
     10
     11static char *backImage = NULL;
     12static char *backModel = NULL;
     13
     14bool psphotBackgroundNames (psMetadata *arguments) {
     15
     16    bool status;
     17
     18    backImage = psMetadataLookupStr (&status, arguments, "BACKGROUND_IMAGE");
     19    backModel = psMetadataLookupStr (&status, arguments, "BACKGROUND_MODEL");
     20
     21    return true;
     22}
    1023
    1124// generate the median in NxN boxes, clipping heavily
     
    211224        }
    212225    }
     226
     227    // optionally save background
     228    if (backImage != NULL) psphotSaveImage (NULL, background, backImage);
     229    if (backModel != NULL) psphotSaveImage (NULL, model, backModel);
     230
    213231    psLogMsg ("psphot", 3, "subtracted background model: %f sec\n", psTimerMark ("psphot"));
    214232    psFree (rnd);
Note: See TracChangeset for help on using the changeset viewer.