Changeset 11382
- Timestamp:
- Jan 29, 2007, 12:37:04 PM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 3 edited
-
psphot.h (modified) (1 diff)
-
psphotOutput.c (modified) (1 diff)
-
psphotReadout.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.h
r11263 r11382 67 67 68 68 // output functions 69 bool psphotAddPhotcode (psMetadata *recipe, pmConfig *config, pmFPAview *view); 69 70 bool psphotDumpMoments (psMetadata *recipe, psArray *sources); 70 71 psMetadata *psphotDefineHeader (psMetadata *recipe); -
trunk/psphot/src/psphotOutput.c
r11313 r11382 73 73 } 74 74 fclose (f); 75 return true; 76 } 77 78 bool psphotAddPhotcode (psMetadata *recipe, pmConfig *config, pmFPAview *view) { 79 80 bool status; 81 82 pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT"); 83 assert (status); 84 85 // determine PHOTCODE from fpa & view, overwrite in recipe 86 // XXX test this: 87 char *photcode = pmConceptsPhotcodeForView (config, input, view); 88 assert (photcode); 89 90 psMetadataAddStr (recipe, PS_LIST_TAIL, "PHOTCODE", PS_META_REPLACE, "photcode from FPA concepts", photcode); 91 psLogMsg ("psphot", 3, "PHOTCODE is %s", photcode); 92 93 psFree (photcode); 75 94 return true; 76 95 } -
trunk/psphot/src/psphotReadout.c
r11263 r11382 21 21 if (!pmReadoutGenerateMaskWeight (readout, true)) { 22 22 psError (PSPHOT_ERR_CONFIG, false, "trouble creating mask and/or weight"); 23 return false; 24 } 25 26 // set the photcode for this image 27 if (!psphotAddPhotcode (recipe, config, view)) { 28 psError (PSPHOT_ERR_CONFIG, false, "trouble defining the photcode"); 23 29 return false; 24 30 }
Note:
See TracChangeset
for help on using the changeset viewer.
