Changeset 42178 for branches/eam_branches/ipp-20220316
- Timestamp:
- Apr 27, 2022, 10:14:37 AM (4 years ago)
- Location:
- branches/eam_branches/ipp-20220316/fpcamera
- Files:
-
- 11 edited
-
Makefile.am (modified) (1 diff)
-
configure.ac (modified) (1 diff)
-
src/Makefile.am (modified) (1 diff)
-
src/fpcamera.h (modified) (1 diff)
-
src/fpcameraAnalysis.c (modified) (1 diff)
-
src/fpcameraCleanup.c (modified) (1 diff)
-
src/fpcameraDataLoad.c (modified) (1 diff)
-
src/fpcameraDataSave.c (modified) (3 diffs)
-
src/fpcameraLoadRefstars.c (modified) (3 diffs)
-
src/fpcameraParseCamera.c (modified) (1 diff)
-
src/fpcameraReadAstrometry.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/fpcamera/Makefile.am
r42175 r42178 3 3 CLEANFILES = *.pyc *~ core core.* 4 4 5 pkgconfigdir = $(libdir)/pkgconfig 6 pkgconfig_DATA= fpcamera.pc 7 8 EXTRA_DIST = \ 9 fpcamera.pc.in \ 10 autogen.sh 5 EXTRA_DIST = autogen.sh -
branches/eam_branches/ipp-20220316/fpcamera/configure.ac
r42175 r42178 185 185 PKG_CHECK_MODULES([PSLIB], [pslib >= 1.0.0]) 186 186 PKG_CHECK_MODULES([PSMODULE], [psmodules >= 1.0.0]) 187 PKG_CHECK_MODULES([PSPHOT], [psphot >= 0.8.0]) 187 188 PKG_CHECK_MODULES([PPSTATS], [ppStats >= 1.0.0]) 188 189 -
branches/eam_branches/ipp-20220316/fpcamera/src/Makefile.am
r42176 r42178 71 71 fpcameraVersion.c: fpcameraVersionDefinitions.h 72 72 fpcameraVersionDefinitions.h: fpcameraVersionDefinitions.h.in FORCE 73 pslib-setsvnversion.pl FPCAMERA fpcameraVersionDefinitions.h.in fpcameraVersionDefinitions.h 73 #pslib-setsvnversion.pl FPCAMERA fpcameraVersionDefinitions.h.in fpcameraVersionDefinitions.h 74 cat fpcameraVersionDefinitions.h.in | tr '@' '"' > fpcameraVersionDefinitions.h 74 75 FORCE: ; -
branches/eam_branches/ipp-20220316/fpcamera/src/fpcamera.h
r42176 r42178 22 22 #include <pslib.h> 23 23 #include <psmodules.h> 24 #include <psphot.h> 24 25 #include <ppStats.h> 25 26 #include "fpcameraErrorCodes.h" -
branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraAnalysis.c
r42175 r42178 7 7 8 8 bool status; 9 int nStars;10 9 11 10 // measure the total elapsed time in fpcameraAnalysis. -
branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraCleanup.c
r42175 r42178 1 /** @file fpcameraCleanup.c 2 * 3 * @brief 4 * 5 * @ingroup fpcamera 6 * 7 * @author IfA 8 * @version $Revision: 1.8.2.1 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-19 17:59:50 $ 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 */ 1 # include "fpcamera.h" 12 2 13 # include "fpcameraStandAlone.h" 14 3 /* \brief this loop saves the photometry/astrometry data files */ 15 4 void fpcameraCleanup (pmConfig *config, psMetadata *stats) { 16 5 -
branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraDataLoad.c
r42175 r42178 6 6 7 7 bool fpcameraDataLoad (pmConfig *config) { 8 9 pmChip *chip;10 pmCell *cell;11 pmReadout *readout;12 8 13 9 psTimerStart ("fpcamera"); -
branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraDataSave.c
r42175 r42178 6 6 bool fpcameraDataSave (pmConfig *config, psMetadata *stats) { 7 7 8 bool status; 8 9 pmChip *chip; 9 10 pmCell *cell; 10 11 pmReadout *readout; 11 12 12 pmFPAview *view = NULL; 13 13 14 14 // select the current recipe 15 psMetadata *recipe = psMetadataLookupPtr ( NULL, config->recipes, FPCAMERA_RECIPE);16 if (!recipe) ESCAPE (FPCAMERA_ERR_CONFIG, "Can't find FPCAMERA recipe!");15 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, FPCAMERA_RECIPE); 16 if (!recipe) ESCAPE (FPCAMERA_ERR_CONFIG, "Can't find FPCAMERA recipe"); 17 17 18 18 // select the output data sources … … 49 49 if (hdu && hdu != lastHDU) { 50 50 fpcameraVersionHeaderFull(hdu->header); 51 // Append t ehreference catalog to the header as well.51 // Append the reference catalog to the header as well. 52 52 char *catdir = psMetadataLookupStr(NULL,recipe,"FPCAMERA.CATDIR"); 53 54 psMetadata *recipe = psMetadataLookupPtr(NULL, config->recipes, FPCAMERA_RECIPE);55 53 psMetadataAddStr(hdu->header,PS_LIST_TAIL, "PSREFCAT", PS_META_REPLACE, NULL, catdir); 56 57 54 lastHDU = hdu; 58 55 } … … 68 65 // XXX fix : if (!fpcameraMetadataStats (config, stats)) ESCAPE(FPCAMERA_ERR_UNKNOWN, "failure to save state in Metadata"); 69 66 70 bool status;71 67 psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG"); 72 68 if (dump_file) { -
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")); -
branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraParseCamera.c
r42175 r42178 1 1 # include "fpcamera.h" 2 2 3 # define ESCAPE(ERROR, FORMAT,...) { psError(ERROR, false, FORMAT,__VA_ARGS__); return false; }3 # define ESCAPE(ERROR,...) { p_psError(__FILE__,__LINE__,__func__,ERROR,false,__VA_ARGS__); return false; } 4 4 5 5 bool fpcameraParseCamera (pmConfig *config) { -
branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraReadAstrometry.c
r42175 r42178 4 4 bool fpcameraReadAstrometry (pmFPAfile *input, pmConfig *config) { 5 5 6 bool status; 7 6 8 // select the current recipe (just needed for pixel scale) 7 psMetadata *recipe = psMetadataLookupPtr ( NULL, config->recipes, FPCAMERA_RECIPE);9 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, FPCAMERA_RECIPE); 8 10 if (!recipe) { 9 11 psError(FPCAMERA_ERR_CONFIG, true, "Can't find FPCAMERA recipe!\n"); … … 31 33 } 32 34 35 pmChip *chip; 33 36 while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) { 34 37 psTrace ("fpcamera", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
Note:
See TracChangeset
for help on using the changeset viewer.
