IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 22, 2007, 3:05:47 PM (19 years ago)
Author:
eugene
Message:

load / apply psf model from external source

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20070817/ppSim/src/ppSimCreate.c

    r14547 r14614  
    11# include "ppSim.h"
     2
     3// XXX this function forces us to define the camera (on the command line) and format (via the
     4// PPSIM.OUTPUT entry).  In this case, we need to set config->format,formatName based on these
     5// values.  This will be a problem when we want to load an input image (in order to add fake
     6// stars).  We will need to add some logic in ppSimArguments to distinguish the cases of 1)
     7// input image and 2) specified camera
    28
    39pmFPAfile *ppSimCreate(pmConfig *config)
     
    2531    file->save = true;
    2632
     33    config->format = psMemIncrRefCounter (file->format);
     34    config->formatName = psStringCopy (file->formatName);
     35
    2736    // have we supplied a psf model?
    2837    if (psMetadataLookupPtr(NULL, config->arguments, "PSPHOT.PSF")) {
    2938        bool status = false;
     39
     40        // tie the psf file to the chipMosaic
    3041        pmFPAfileBindFromArgs(&status, file, config, "PSPHOT.PSF.LOAD", "PSPHOT.PSF");
    3142        if (!status) {
Note: See TracChangeset for help on using the changeset viewer.