- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psastro (modified) (1 prop)
-
psastro/src (modified) (1 prop)
-
psastro/src/psastroAnalysis.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psastro
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psastro/src
- Property svn:ignore
-
old new 17 17 psastroModelFit 18 18 psastroExtract 19 psastroVersionDefinitions.h
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/psastro/src/psastroAnalysis.c
r23594 r24244 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.
