- Timestamp:
- Mar 15, 2009, 4:56:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/eam_branch_20090312/psastro/src/psastroExtract.c
r23322 r23335 41 41 } 42 42 43 // load the reference stars overlapping the data stars44 psArray *refs = psastroLoadRefstars(config);45 if (!refs) {46 psError (PSASTRO_ERR_UNKNOWN, false, "failed to load reference data\n");47 return false;48 }49 if (refs->n == 0) {50 psError(PSASTRO_ERR_REFSTARS, true, "no reference stars found");51 psFree(refs);52 return false;53 }54 55 if (!psastroChooseRefstars (config, refs)) {56 psError (PSASTRO_ERR_UNKNOWN, false, "failed to select reference data for chips\n");57 psFree(refs);58 return false;59 }60 61 43 // run the full astrometry analysis (chip and/or mosaic) 62 44 if (!psastroExtractAnalysis (config)) { … … 65 47 } 66 48 67 // run the full astrometry analysis (chip and/or mosaic) 68 if (!psastroExtractAdjust (config)) { 69 psErrorStackPrint(stderr, "failure in psastro model adjust\n"); 70 exit (1); 71 } 72 73 // save the model 74 if (!psastroExtractDataSave (config)) { 75 psErrorStackPrint(stderr, "error saving output data\n"); 76 exit (1); 77 } 49 // XXX save the results; is this needed? 50 // if (!psastroExtractDataSave (config)) { 51 // psErrorStackPrint(stderr, "error saving output data\n"); 52 // exit (1); 53 // } 78 54 79 55 psLogMsg ("psastro", 3, "complete psastro run: %f sec\n", psTimerMark ("complete")); 80 56 81 //psastroCleanup (config);57 psastroCleanup (config); 82 58 exit (EXIT_SUCCESS); 83 59 }
Note:
See TracChangeset
for help on using the changeset viewer.
