- Timestamp:
- Apr 27, 2022, 10:14:37 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraLoadRefstars.c
r42175 r42178 2 2 # define ELIXIR_MODE 1 3 3 4 # define ESCAPE(ERROR,FORMAT,...) { psError(ERROR, false, FORMAT, __VA_ARGS__); return false; } 5 4 # define ESCAPE(ERROR,...) { p_psError(__FILE__,__LINE__,__func__,ERROR,false,__VA_ARGS__); return false; } 5 6 /* \brief this loop saves the photometry/astrometry data files */ 6 7 bool fpcameraLoadRefstars (pmFPAfile *input, pmConfig *config) { 7 8 … … 42 43 // substitute abstract name with concrete name, if present in FPCAMERA.CATDIRS 43 44 psMetadata *catdirs = psMetadataLookupMetadata(&status, config->site, "FPCAMERA.CATDIRS"); // List of cameras 44 if (!catdir ) ESCAPE(FPCAMERA_ERR_CONFIG, "Unable to find FPCAMERA.CATDIRS in the system configuration.\n");45 if (!catdirs) ESCAPE(FPCAMERA_ERR_CONFIG, "Unable to find FPCAMERA.CATDIRS in the system configuration.\n"); 45 46 46 47 // the name in the recipe may be one of: … … 140 141 ESCAPE(FPCAMERA_ERR_REFSTARS, "error reading reference data"); 141 142 } 142 if (refstars->n == 0) ESCAPE( PSASTRO_ERR_REFSTARS, "no reference stars found");143 if (refstars->n == 0) ESCAPE(FPCAMERA_ERR_REFSTARS, "no reference stars found"); 143 144 144 145 psLogMsg ("fpcamera", 3, "loaded %ld reference stars : %f sec\n", refstars->n, psTimerMark ("fpcamera"));
Note:
See TracChangeset
for help on using the changeset viewer.
