Changeset 11583 for trunk/psphot/src/psphotOutput.c
- Timestamp:
- Feb 2, 2007, 10:01:11 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotOutput.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.
