- Timestamp:
- Jul 3, 2013, 1:43:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/psastro/src/psastroAnalysis.c
r28043 r35747 86 86 } 87 87 88 if (!psastroChooseRefstars (config, refs, "PSASTRO.INPUT")) { 88 bool skipastro = psMetadataLookupBool (&status, config->arguments, "PSASTRO.SKIP.ASTRO"); 89 90 if (!psastroChooseRefstars (config, refs, "PSASTRO.INPUT", skipastro)) { 89 91 psError (PSASTRO_ERR_UNKNOWN, false, "failed to select reference data for chips\n"); 90 92 psFree(refs); … … 108 110 mosastro = psMetadataLookupBool (&status, recipe, "PSASTRO.MOSAIC.MODE"); 109 111 } 110 if (!chipastro && !mosastro) { 112 113 if (skipastro) { 114 chipastro = false; 115 mosastro = false; 116 psLogMsg ("psastro", 3, "skip astrometry mode, accepting input astrometry\n"); 117 } else if (!chipastro && !mosastro) { 111 118 psLogMsg ("psastro", 3, "no astrometry mode selected, assuming chip astrometry\n"); 112 119 chipastro = true; … … 144 151 } 145 152 146 if (!psastroZeroPoint (config)) { 147 psError(psErrorCodeLast(), false, "Failed to calculate zero point."); 148 return false; 149 } 153 if (!skipastro) { 154 if (!psastroZeroPoint (config)) { 155 psError(psErrorCodeLast(), false, "Failed to calculate zero point."); 156 return false; 157 } 150 158 151 if (!psastroAstromGuessCheck (config)) { 152 psError(psErrorCodeLast(), false, "Failed to check astrometry guess."); 153 return false; 159 if (!psastroAstromGuessCheck (config)) { 160 psError(psErrorCodeLast(), false, "Failed to check astrometry guess."); 161 return false; 162 } 154 163 } 155 164
Note:
See TracChangeset
for help on using the changeset viewer.
