Changeset 27838 for branches/tap_branches/psastro/src/psastroAnalysis.c
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psastro/src/psastroAnalysis.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/psastro/src/psastroAnalysis.c
r24647 r27838 69 69 } 70 70 71 if (!psastroRemoveClumpsRawstars(config)) { 72 psError (PSASTRO_ERR_UNKNOWN, false, "failed to remove RAWSTAR clumps\n"); 73 return false; 74 } 75 71 76 // load the reference stars overlapping the data stars 72 77 psArray *refs = psastroLoadRefstars(config, "PSASTRO.INPUT"); … … 110 115 if (chipastro) { 111 116 if (!psastroChipAstrom (config)) { 112 psError (PSASTRO_ERR_UNKNOWN, false, "failed to perform single chip astrometry\n"); 113 return false; 117 // This is likely a data quality issue 118 psWarning("Failed single chip astrometry --- suspect bad data quality"); 119 if (stats && psMetadataLookupS32(NULL, stats, "QUALITY") == 0) { 120 psMetadataAddS32(stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE, 121 "Single chip astrometry failed", PSASTRO_ERR_DATA); 122 } 123 fileSave(config, "PSASTRO.OUTPUT", false); 124 fileSave(config, "PSASTRO.OUTPUT.MASK", false); 125 fileSave(config, "PSASTRO.OUT.REFSTARS", false); 126 psErrorClear(); 127 return true; 114 128 } 115 129 } 116 130 if (mosastro) { 117 131 if (!psastroMosaicAstrom (config)) { 118 psError (PSASTRO_ERR_UNKNOWN, false, "failed to perform mosaic camera astrometry\n"); 119 return false; 132 // This is likely a data quality issue 133 psWarning("Failed mosaic astrometry --- suspect bad data quality"); 134 if (stats && psMetadataLookupS32(NULL, stats, "QUALITY") == 0) { 135 psMetadataAddS32(stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE, 136 "Mosaic astrometry failed", PSASTRO_ERR_DATA); 137 } 138 fileSave(config, "PSASTRO.OUTPUT", false); 139 fileSave(config, "PSASTRO.OUTPUT.MASK", false); 140 fileSave(config, "PSASTRO.OUT.REFSTARS", false); 141 psErrorClear(); 142 return true; 120 143 } 121 144 } 122 145 123 psastroZeroPoint (config); 146 if (!psastroZeroPoint (config)) { 147 psError(psErrorCodeLast(), false, "Failed to calculate zero point."); 148 return false; 149 } 124 150 125 psastroAstromGuessCheck (config); 151 if (!psastroAstromGuessCheck (config)) { 152 psError(psErrorCodeLast(), false, "Failed to check astrometry guess."); 153 return false; 154 } 126 155 127 psastroMaskUpdates (config);128 129 // XXX how do we specify stack astrometry?130 // psastroStackAstrom (config, refs);156 if (!psastroMaskUpdates (config)) { 157 psError(psErrorCodeLast(), false, "Failed to generate dynamic masks."); 158 return false; 159 } 131 160 132 161 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
