Changeset 41382 for trunk/psModules/src/objects/pmSourceIO_Glints.c
- Timestamp:
- Jun 23, 2020, 3:29:09 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceIO_Glints.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO_Glints.c
r41367 r41382 55 55 #include "pmAstrometryWCS.h" 56 56 57 # include "p sastroInternal.h"57 # include "pmSourceInternal.h" 58 58 59 59 # define ESCAPE(MSG) { \ … … 71 71 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, PSASTRO_RECIPE); 72 72 if (!recipe) { 73 psError(P SASTRO_ERR_CONFIG, true, "Can't find PSASTRO recipe");73 psError(PM_ERR_CONFIG, true, "Can't find PSASTRO recipe"); 74 74 return false; 75 75 } … … 110 110 pmFPAfile *astrom = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT"); 111 111 if (!astrom) { 112 psError(P SASTRO_ERR_CONFIG, true, "Can't find input data");112 psError(PM_ERR_CONFIG, true, "Can't find input data"); 113 113 return false; 114 114 } … … 117 117 // use the zero point and exposure time to convert to apparent mags: M_ap = M_inst + C_0 + 2.5*log(exptime) 118 118 pmFPA *fpa_ast = astrom->fpa; 119 if (!p sastroZeroPointFromRecipeGlint (&zeropt, &exptime, NULL,&GLINT_MAX_MAG, fpa_ast, recipe)) {119 if (!pmSourceZeroPointFromRecipeGlint (&zeropt, &exptime, NULL,&GLINT_MAX_MAG, fpa_ast, recipe)) { 120 120 psLogMsg ("psastro", PS_LOG_INFO, "failed to load zeropt data from recipe"); 121 121 return false; … … 237 237 } 238 238 239 bool p sastroZeroPointFromRecipeGlint (float *zeropt, float *exptime, float *ghostMaxMag, double *glintMaxMag, pmFPA *fpa, psMetadata *recipe) {239 bool pmSourceZeroPointFromRecipeGlint (float *zeropt, float *exptime, float *ghostMaxMag, double *glintMaxMag, pmFPA *fpa, psMetadata *recipe) { 240 240 241 241 bool status;
Note:
See TracChangeset
for help on using the changeset viewer.
