Changeset 11353
- Timestamp:
- Jan 27, 2007, 5:03:01 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotParseCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotParseCamera.c
r11263 r11353 36 36 // XXX drop this? we put this in the default recipe? 37 37 psMetadataAddStr (recipe, PS_LIST_TAIL, "FITMODE", PS_META_NO_REPLACE, "default fitting mode", "NONE"); 38 psMetadataAddStr (recipe, PS_LIST_TAIL, "PHOTCODE", PS_META_NO_REPLACE, "default photcode", "NONE");39 38 psMetadataAddStr (recipe, PS_LIST_TAIL, "BREAK_POINT", PS_META_NO_REPLACE, "default break point", "NONE"); 40 39 psMetadataAddF32 (recipe, PS_LIST_TAIL, "ZERO_PT", PS_META_NO_REPLACE, "default zero point", 25.00); 41 40 psMetadataAddS32 (recipe, PS_LIST_TAIL, "BACKGROUND.XBIN", PS_META_NO_REPLACE, "default binning", 64); 42 41 psMetadataAddS32 (recipe, PS_LIST_TAIL, "BACKGROUND.YBIN", PS_META_NO_REPLACE, "default binning", 64); 42 43 // determine PHOTCODE from fpa & view, overwrite in recipe 44 // XXX test this: 45 psMetadataAddStr (recipe, PS_LIST_TAIL, "PHOTCODE", PS_META_NO_REPLACE, "default photcode", "NONE"); 46 char *photcode = pmConceptsPhotcodeForView (config, input, view); 47 if (photcode) { 48 psMetadataAddStr (recipe, PS_LIST_TAIL, "PHOTCODE", PS_META_REPLACE, "photcode from FPA concepts", photcode); 49 psFree (photcode); 50 } 43 51 44 52 // XXX we need to be able to distinguish several cases: … … 49 57 50 58 // these calls bind the I/O handle to the specified fpa 51 bool saveOutput = psMetadataLookupBool ( &status, recipe, "SAVE.OUTPUT");52 if ( !status ||saveOutput) {59 bool saveOutput = psMetadataLookupBool (NULL, recipe, "SAVE.OUTPUT"); 60 if (saveOutput) { 53 61 if (!pmFPAfileDefineOutput (config, input->fpa, "PSPHOT.OUTPUT")) { 54 62 psError(PSPHOT_ERR_CONFIG, false, "Cannot find a rule for PSPHOT.OUTPUT"); … … 109 117 } 110 118 119 // XXX add in example PSF image thumbnails 111 120 // pmFPAfileConstruct (config->files, format, config->camera, "PSPHOT.PSF_SAMPLE"); 112 121
Note:
See TracChangeset
for help on using the changeset viewer.
