Changeset 7014 for trunk/psastro/src/psastro.c
- Timestamp:
- Apr 30, 2006, 12:15:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastro.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastro.c
r6792 r7014 5 5 psTimerStart ("complete"); 6 6 7 psMetadata *header = NULL; 7 // model inits are needed in pmSourceIO 8 // XXX do we want to do the local model inits a la psphot? 9 pmModelGroupInit (); 8 10 9 11 // load configuration information 10 12 pmConfig *config = psastroArguments (&argc, argv); 11 13 12 // load i nput data (config and images (signal, noise, mask)14 // load identify the data sources 13 15 psastroParseCamera (config); 14 16 15 // perform the astrometric solution 16 psastroDataLoop (input, config); 17 // load the raw pixel data (from PSPHOT.SOURCES) 18 // select subset of stars for astrometry 19 psastroDataLoad (config); 17 20 18 // select astrometry stars from the psphot sources19 // limit fit to bright stars only20 psastro SelectAstromStars (config);21 // interpret the available initial astrometric information 22 // apply the initial guess 23 psastroAstromGuess (config); 21 24 22 25 // load the reference stars overlapping the data stars 23 ps astroLoadReference(config);26 psArray *refs = psastroLoadReferences (config); 24 27 25 // fpa and subset point to the same astrometry terms 28 psastroChipAstrom (config, refs); 29 30 # if 0 31 // perform the desired astrometry analysis 26 32 switch (mode) { 27 33 case stack: 28 psastroStackAstrom (config); 34 psastroStackAstrom (config, refs); 35 break 36 case chip: 37 psastroChipAstrom (config, refs); 29 38 break 30 39 case mosaic: 31 psastroMosaicAstrom (config); 32 break 33 case mosaic: 34 psastroMosaicAstrom (config); 40 psastroMosaicAstrom (config, refs); 35 41 break; 36 42 default: 37 43 break; 38 44 } 45 # endif 39 46 40 // perform the astrometric solution47 // write out the results 41 48 psastroDataSave (config); 42 49 43 psLogMsg ("ps phot", 3, "complete psastro run: %f sec\n", psTimerMark ("complete"));50 psLogMsg ("psastro", 3, "complete psastro run: %f sec\n", psTimerMark ("complete")); 44 51 52 psFree (refs); 45 53 psFree (config); 46 psFree (fpa); 54 55 psTimerStop (); 56 psMemCheckCorruption (true); 57 pmModelGroupCleanup (); 58 psTimeFinalize (); 59 pmConceptsDone (); 60 pmConfigDone (); 61 fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, stdout, false), "psastro"); 62 // fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "psastro"); 47 63 48 64 exit (0);
Note:
See TracChangeset
for help on using the changeset viewer.
