IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 21, 2005, 11:03:53 AM (21 years ago)
Author:
eugene
Message:

various cleanups and fixes

File:
1 edited

Legend:

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

    r5510 r5560  
    44
    55    psMetadata *header = NULL;
    6     pmAstromGridMatchStat stat;
    7     pmAstromMatch *match;
    86
    97    // load configuration information
     
    119
    1210    // load the input data (cmp file)
    13     psArray *rawstars = pmSourcesReadCMP (&header, argv[1]);
     11    psArray *rawstars = psastroReadCMP (&header, argv[2]);
    1412
    1513    // simple layout interpretation, basic WCS conversion
    16     psFPA *fpa = psastroBuildFPA (header, rawstars);
     14    pmFPA *fpa = psastroBuildFPA (header, rawstars);
    1715
    1816    // limit fit to bright stars only
    19     psFPA *subset = psastroSelectBrightStars (fpa, config);
    20 
    21     // use the header & config info to project rawstars on the focal plane
    22     psastroProjectRawstars (subset);
     17    psastroSelectBrightStars (fpa, config);
    2318
    2419    // fpa and subset point to the same astrometry terms
    25     psastroChipAstrom (subset, config);
     20    psastroChipAstrom (fpa, config);
    2621
    2722    // write out data (cmp file)
    28     psastroWriteCMP (fpa, argv[2]);
     23    psastroWriteCMP (fpa, argv[3]);
     24
     25    psFree (config);
     26    psFree (fpa);
    2927
    3028    exit (0);
Note: See TracChangeset for help on using the changeset viewer.