Changeset 11583
- Timestamp:
- Feb 2, 2007, 10:01:11 AM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 3 edited
-
psphot.h (modified) (1 diff)
-
psphotOutput.c (modified) (2 diffs)
-
psphotReadoutCleanup.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.h
r11382 r11583 101 101 bool psphotLoadExtSources (pmConfig *config, pmFPAview *view, psArray *sources); 102 102 psExit psphotGetExitStatus (); 103 bool psphotSetHeaderNstars (psMetadata *recipe, psArray *sources); -
trunk/psphot/src/psphotOutput.c
r11382 r11583 92 92 93 93 psFree (photcode); 94 return true; 95 } 96 97 bool psphotSetHeaderNstars (psMetadata *recipe, psArray *sources) { 98 99 int nSrc = 0; 100 101 // count the number of sources which will be written 102 for (int i = 0; i < sources->n; i++) { 103 pmSource *source = (pmSource *) sources->data[i]; 104 pmModel *model = pmSourceSelectModel (source); 105 if (model == NULL) 106 continue; 107 nSrc ++; 108 } 109 psMetadataAdd (recipe, PS_LIST_TAIL, "NSTARS", PS_DATA_S32 | PS_META_REPLACE, "NUMBER OF STARS", nSrc); 94 110 return true; 95 111 } … … 121 137 psMetadataAdd (header, PS_LIST_TAIL, "FSATUR", PS_DATA_F32 | PS_META_REPLACE, "SATURATION MAG", 0.0); 122 138 psMetadataAdd (header, PS_LIST_TAIL, "FLIMIT", PS_DATA_F32 | PS_META_REPLACE, "COMPLETENESS MAG", 0.0); 139 psMetadataItemTransfer (header, recipe, "NSTARS"); 123 140 124 141 // sky background model statistics -
trunk/psphot/src/psphotReadoutCleanup.c
r11315 r11583 28 28 } 29 29 30 // write NSTARS to the image header 31 psphotSetHeaderNstars (recipe, sources); 32 30 33 // create an output header with stats results 31 34 psMetadata *header = psphotDefineHeader (recipe);
Note:
See TracChangeset
for help on using the changeset viewer.
