IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 12, 2005, 9:58:04 AM (21 years ago)
Author:
eugene
Message:

development work

File:
1 edited

Legend:

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

    r5505 r5509  
    1414
    1515    // simple layout interpretation, basic WCS conversion
    16     psFPA *fpa = psastroBuildFPA (header, config);
     16    psFPA *fpa = psastroBuildFPA (header, rawstars);
    1717
    1818    // limit fit to bright stars only
    19     psArray *subset = pspsastroSelectBrightStars (config, rawstars);
     19    psFPA *subset = psastroSelectBrightStars (fpa, config);
    2020
    2121    // use the header & config info to project rawstars on the focal plane
    22     psastroProjectRawstars (subset, header, config);
     22    psastroProjectRawstars (subset);
    2323
    2424    // load the corresponding reference data (DVO command)
     
    2626
    2727    // use the header & config info to project refstars on the focal plane
    28     psastroProjectRefstars (refstars, header, config);
     28    psastroProjectRefstars (refstars, subset);
    2929
    30     // find initial offset / rotation
    31     stat = pmAstromGridMatch (subset, refstars, config);
    32 
    33     pmAstromModifyFPA (fpa, stat);
    34 
    35     // use fit result to re-project rawstars
    36     psastroProjectRawstars (fpa, subset);
    37     psastroProjectRefstars (fpa, refstars);
    38    
    39     // use small radius to match stars
    40     match = pmAstromRadiusMatch (rawstars, refstars, options);
    41 
    42     // fit astrometric terms
    43     output = pmAstromMatchedListFit (fpa, subset, refstars, match, options);
     30    // fpa and subset point to the same astrometry terms
     31    psastroChipAstrom (refstars, subset);
    4432
    4533    // write out data (cmp file)
    46     psastroWriteCMP (fpa, header, rawstars, argv[2]);
     34    psastroWriteCMP (fpa, argv[2]);
    4735
    4836    exit (0);
Note: See TracChangeset for help on using the changeset viewer.