IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 30, 2006, 12:15:03 PM (20 years ago)
Author:
eugene
Message:

first complete working version (chip only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastro.c

    r6792 r7014  
    55    psTimerStart ("complete");
    66
    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 ();
    810
    911    // load configuration information
    1012    pmConfig *config = psastroArguments (&argc, argv);
    1113
    12     // load input data (config and images (signal, noise, mask)
     14    // load identify the data sources
    1315    psastroParseCamera (config);
    1416
    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);
    1720
    18     // select astrometry stars from the psphot sources
    19     // limit fit to bright stars only
    20     psastroSelectAstromStars (config);
     21    // interpret the available initial astrometric information
     22    // apply the initial guess
     23    psastroAstromGuess (config);
    2124
    2225    // load the reference stars overlapping the data stars
    23     psastroLoadReference (config);
     26    psArray *refs = psastroLoadReferences (config);
    2427
    25     // fpa and subset point to the same astrometry terms
     28    psastroChipAstrom (config, refs);
     29
     30    # if 0
     31    // perform the desired astrometry analysis
    2632    switch (mode) {
    2733      case stack:
    28         psastroStackAstrom (config);
     34        psastroStackAstrom (config, refs);
     35        break
     36      case chip:
     37        psastroChipAstrom (config, refs);
    2938        break
    3039      case mosaic:
    31         psastroMosaicAstrom (config);
    32         break
    33       case mosaic:
    34         psastroMosaicAstrom (config);
     40        psastroMosaicAstrom (config, refs);
    3541        break;
    3642      default:
    3743        break;
    3844    }
     45    # endif
    3946
    40     // perform the astrometric solution
     47    // write out the results
    4148    psastroDataSave (config);
    4249
    43     psLogMsg ("psphot", 3, "complete psastro run: %f sec\n", psTimerMark ("complete"));
     50    psLogMsg ("psastro", 3, "complete psastro run: %f sec\n", psTimerMark ("complete"));
    4451
     52    psFree (refs);
    4553    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");
    4763
    4864    exit (0);
Note: See TracChangeset for help on using the changeset viewer.