Changeset 24649
- Timestamp:
- Jul 2, 2009, 3:40:49 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroZeroPoint.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroZeroPoint.c
r23989 r24649 50 50 51 51 // really error-out here? or just skip? 52 if (!psastroZeroPointFromRecipe (&zeropt, &exptime, fpa, recipe)) {52 if (!psastroZeroPointFromRecipe (&zeropt, &exptime, NULL, fpa, recipe)) { 53 53 psLogMsg ("psastro", PS_LOG_INFO, "failed to load zeropt data from recipe"); 54 54 return false; … … 148 148 return false; } 149 149 150 bool psastroZeroPointFromRecipe (float *zeropt, float *exptime, pmFPA *fpa, psMetadata *recipe) {150 bool psastroZeroPointFromRecipe (float *zeropt, float *exptime, float *ghostMaxMag, pmFPA *fpa, psMetadata *recipe) { 151 151 152 152 bool status; … … 173 173 char *refFilter = psMetadataLookupStr (&status, refItem->data.md, "FILTER"); 174 174 if (!status) { 175 psLogMsg ("psastro", PS_LOG_INFO, "a PHOTCODE.DATA recipe folder is missing FILTER");175 // psLogMsg ("psastro", PS_LOG_INFO, "a PHOTCODE.DATA recipe folder is missing FILTER"); 176 176 continue; 177 177 } … … 184 184 *zeropt = psMetadataLookupF32 (&status, refItem->data.md, "ZEROPT"); 185 185 if (!status) { 186 psLogMsg ("psastro", PS_LOG_INFO, "a PHOTCODE.DATA recipe folder is missing FILTER");186 psLogMsg ("psastro", PS_LOG_INFO, "a PHOTCODE.DATA recipe folder is missing ZEROPT"); 187 187 continue; 188 } 189 if (ghostMaxMag) { 190 *ghostMaxMag = psMetadataLookupF32 (&status, refItem->data.md, "GHOST_MAX_MAG"); 191 if (!status) { 192 psLogMsg ("psastro", PS_LOG_INFO, "a PHOTCODE.DATA recipe folder is missing GHOST_MAX_MAG"); 193 continue; 194 } 188 195 } 189 196 psFree (iter);
Note:
See TracChangeset
for help on using the changeset viewer.
