Changeset 23638 for branches/pap/psastro/src/psastroAnalysis.c
- Timestamp:
- Mar 31, 2009, 2:49:55 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/psastro/src/psastroAnalysis.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/psastro/src/psastroAnalysis.c
r23412 r23638 1 1 /** @file psastroAnalysis.c 2 2 * 3 * @brief 3 * @brief 4 4 * 5 5 * @ingroup libpsastro … … 13 13 # include "psastroInternal.h" 14 14 15 bool psastroAnalysis (pmConfig *config) { 15 /// Turn save on/off for a file 16 static void fileSave(pmConfig *config, // Configuration 17 const char *name, // Name of file 18 bool save // Save file? 19 ) 20 { 21 pmFPAfile *file = pmFPAfileSelectSingle(config->files, name, 0); // File of interest 22 if (!file) { 23 psErrorClear(); 24 return; 25 } 26 file->save = save; 27 return; 28 } 29 30 31 bool psastroAnalysis (pmConfig *config, psMetadata *stats) { 16 32 17 33 bool status; … … 40 56 } 41 57 if (nStars == 0) { 42 psLogMsg ("psastro", 2, "skipping astrometry analysis : no stars\n"); 43 return false; 58 // This is likely a data quality issue 59 psWarning("No stars for astrometry analysis --- suspect bad data quality"); 60 if (stats && psMetadataLookupS32(NULL, stats, "QUALITY") == 0) { 61 psMetadataAddS32(stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE, 62 "No stars for astrometry", PSASTRO_ERR_DATA); 63 } 64 fileSave(config, "PSASTRO.OUTPUT", false); 65 fileSave(config, "PSASTRO.OUTPUT.MASK", false); 66 fileSave(config, "PSASTRO.OUT.REFSTARS", false); 67 psErrorClear(); 68 return true; 44 69 } 45 70
Note:
See TracChangeset
for help on using the changeset viewer.
