Changeset 14614 for branches/eam_branch_20070817/ppSim/src/ppSimCreate.c
- Timestamp:
- Aug 22, 2007, 3:05:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/ppSim/src/ppSimCreate.c
r14547 r14614 1 1 # 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 2 8 3 9 pmFPAfile *ppSimCreate(pmConfig *config) … … 25 31 file->save = true; 26 32 33 config->format = psMemIncrRefCounter (file->format); 34 config->formatName = psStringCopy (file->formatName); 35 27 36 // have we supplied a psf model? 28 37 if (psMetadataLookupPtr(NULL, config->arguments, "PSPHOT.PSF")) { 29 38 bool status = false; 39 40 // tie the psf file to the chipMosaic 30 41 pmFPAfileBindFromArgs(&status, file, config, "PSPHOT.PSF.LOAD", "PSPHOT.PSF"); 31 42 if (!status) {
Note:
See TracChangeset
for help on using the changeset viewer.
