Changeset 23195 for trunk/psastro/src
- Timestamp:
- Mar 5, 2009, 11:07:57 AM (17 years ago)
- Location:
- trunk/psastro/src
- Files:
-
- 4 edited
-
Makefile.am (modified) (1 diff)
-
psastro.c (modified) (2 diffs)
-
psastro.h (modified) (1 diff)
-
psastroVersion.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/Makefile.am
r23120 r23195 10 10 FORCE: ; 11 11 12 libpsastro_la_CFLAGS = $(PSASTRO_CFLAGS) $(P SMODULE_CFLAGS) $(PSLIB_CFLAGS) -DPSASTRO_VERSION=\"$(PSASTRO_VERSION)\" -DPSASTRO_BRANCH=\"$(PSASTRO_BRANCH)\" -DPSASTRO_SOURCE=\"$(PSASTRO_SOURCE)\"13 libpsastro_la_LDFLAGS = $(PSASTRO_LIBS) $(P SMODULE_LIBS) $(PSLIB_LIBS)12 libpsastro_la_CFLAGS = $(PSASTRO_CFLAGS) $(PPSTATS_CFLAGS) $(PSMODULE_CFLAGS) $(PSLIB_CFLAGS) -DPSASTRO_VERSION=\"$(PSASTRO_VERSION)\" -DPSASTRO_BRANCH=\"$(PSASTRO_BRANCH)\" -DPSASTRO_SOURCE=\"$(PSASTRO_SOURCE)\" 13 libpsastro_la_LDFLAGS = $(PSASTRO_LIBS) $(PPSTATS_LIBS) $(PSMODULE_LIBS) $(PSLIB_LIBS) 14 14 15 15 bin_PROGRAMS = psastro psastroModel psastroModelFit gpcModel -
trunk/psastro/src/psastro.c
r21409 r23195 34 34 if (!config) usage (); 35 35 36 psastroVersionPrint(); 37 36 38 // load identify the data sources 37 39 if (!psastroParseCamera (config)) { 38 psErrorStackPrint(stderr, "error setting up the camera\n");39 exit (1);40 psErrorStackPrint(stderr, "error setting up the camera\n"); 41 exit (1); 40 42 } 41 43 … … 43 45 // select subset of stars for astrometry 44 46 if (!psastroDataLoad (config)) { 45 psErrorStackPrint(stderr, "error loading input data\n");46 exit (1);47 psErrorStackPrint(stderr, "error loading input data\n"); 48 exit (1); 47 49 } 48 50 49 51 // run the full astrometry analysis (chip and/or mosaic) 50 52 if (!psastroAnalysis (config)) { 51 psErrorStackPrint(stderr, "failure in psastro analysis\n");52 exit (1);53 psErrorStackPrint(stderr, "failure in psastro analysis\n"); 54 exit (1); 53 55 } 54 56 55 57 // write out the results 56 58 if (!psastroDataSave (config)) { 57 psErrorStackPrint(stderr, "failed to write out data\n");58 exit (1);59 psErrorStackPrint(stderr, "failed to write out data\n"); 60 exit (1); 59 61 } 60 62 -
trunk/psastro/src/psastro.h
r23169 r23195 99 99 bool psastroVersionHeader(psMetadata *header); 100 100 bool psastroVersionHeaderFull(psMetadata *header); 101 void psastroVersionPrint(void); 101 102 102 103 // demo plots -
trunk/psastro/src/psastroVersion.c
r23169 r23195 80 80 psLibVersionHeader(header); 81 81 psModulesVersionHeader(header); 82 ppStatsVersionHeader(header); 82 83 psastroVersionHeader(header); 83 84 84 85 return true; 85 86 } 87 88 void psastroVersionPrint(void) 89 { 90 psTime *time = psTimeGetNow(PS_TIME_TAI); // The time now 91 psString timeString = psTimeToISO(time); // The time in an ISO string 92 psFree(time); 93 psLogMsg("psastro", PS_LOG_INFO, "psastro at %s", timeString); 94 psFree(timeString); 95 96 psString pslib = psLibVersionLong();// psLib version 97 psString psmodules = psModulesVersionLong(); // psModules version 98 psString ppStats = ppStatsVersionLong(); // ppStats version 99 psString psastro = psastroVersionLong(); // psastro version 100 101 psLogMsg("psastro", PS_LOG_INFO, "%s", pslib); 102 psLogMsg("psastro", PS_LOG_INFO, "%s", psmodules); 103 psLogMsg("psastro", PS_LOG_INFO, "%s", ppStats); 104 psLogMsg("psastro", PS_LOG_INFO, "%s", psastro); 105 106 psFree(pslib); 107 psFree(psmodules); 108 psFree(ppStats); 109 psFree(psastro); 110 111 return; 112 }
Note:
See TracChangeset
for help on using the changeset viewer.
