Changeset 12806 for trunk/psastro/src/psastro.c
- Timestamp:
- Apr 11, 2007, 1:59:28 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastro.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastro.c
r12492 r12806 1 # include "psastro .h"1 # include "psastroStandAlone.h" 2 2 3 3 static void usage (void) { … … 9 9 10 10 pmConfig *config = NULL; 11 psArray *refs = NULL;12 11 13 12 psTimerStart ("complete"); … … 36 35 } 37 36 38 // interpret the available initial astrometric information 39 // apply the initial guess 40 if (!psastroAstromGuess (config)) { 41 psErrorStackPrint(stderr, "failed to determine initial astrometry guess\n"); 37 if (!psastroAnalysis (config)) { 38 psErrorStackPrint(stderr, "failure in psastro analysis\n"); 42 39 exit (1); 43 40 } 44 45 // load the reference stars overlapping the data stars 46 refs = psastroLoadRefstars (config); 47 if (!refs) { 48 psErrorStackPrint(stderr, "failed to load reference data\n"); 49 exit (1); 50 } 51 52 // choose reference stars corresponding to the selected chips 53 if (!psastroChooseRefstars (config, refs)) { 54 psErrorStackPrint(stderr, "failed to select reference data for chips\n"); 55 exit (1); 56 } 57 58 // XXX does this check the recipe?? 59 bool chipastro = psMetadataLookupBool (NULL, config->arguments, "PSASTRO.CHIP.MODE"); 60 bool mosastro = psMetadataLookupBool (NULL, config->arguments, "PSASTRO.MOSAIC.MODE"); 61 if (!chipastro && !mosastro) { 62 psLogMsg ("psastro", 3, "no astrometry mode selected, assuming chip mode\n"); 63 chipastro= true; 64 } 65 66 if (chipastro) { 67 if (!psastroChipAstrom (config, refs)) { 68 psErrorStackPrint(stderr, "failed to perform single chip astrometry\n"); 69 exit (1); 70 } 71 } 72 73 if (mosastro) { 74 if (!psastroMosaicAstrom (config, refs)) { 75 psErrorStackPrint(stderr, "failed to perform mosaic camera astrometry\n"); 76 exit (1); 77 } 78 } 79 80 // XXX how do we specify stack astrometry? 81 // psastroStackAstrom (config, refs); 82 41 83 42 // write out the results 84 43 if (!psastroDataSave (config)) { … … 89 48 psLogMsg ("psastro", 3, "complete psastro run: %f sec\n", psTimerMark ("complete")); 90 49 91 psastroCleanup (config , refs);50 psastroCleanup (config); 92 51 exit (EXIT_SUCCESS); 93 52 }
Note:
See TracChangeset
for help on using the changeset viewer.
