IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 15, 2009, 4:56:07 PM (17 years ago)
Author:
eugene
Message:

add psastroExtract (first working version)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/eam_branch_20090312/psastro/src/psastroExtract.c

    r23322 r23335  
    4141    }
    4242
    43     // load the reference stars overlapping the data stars
    44     psArray *refs = psastroLoadRefstars(config);
    45     if (!refs) {
    46         psError (PSASTRO_ERR_UNKNOWN, false, "failed to load reference data\n");
    47         return false;
    48     }
    49     if (refs->n == 0) {
    50         psError(PSASTRO_ERR_REFSTARS, true, "no reference stars found");
    51         psFree(refs);
    52         return false;
    53     }
    54 
    55     if (!psastroChooseRefstars (config, refs)) {
    56         psError (PSASTRO_ERR_UNKNOWN, false, "failed to select reference data for chips\n");
    57         psFree(refs);
    58         return false;
    59     }
    60 
    6143    // run the full astrometry analysis (chip and/or mosaic)
    6244    if (!psastroExtractAnalysis (config)) {
     
    6547    }
    6648   
    67     // run the full astrometry analysis (chip and/or mosaic)
    68     if (!psastroExtractAdjust (config)) {
    69         psErrorStackPrint(stderr, "failure in psastro model adjust\n");
    70         exit (1);
    71     }
    72    
    73     // save the model
    74     if (!psastroExtractDataSave (config)) {
    75         psErrorStackPrint(stderr, "error saving output data\n");
    76         exit (1);
    77     }
     49    // XXX save the results; is this needed?
     50    // if (!psastroExtractDataSave (config)) {
     51    // psErrorStackPrint(stderr, "error saving output data\n");
     52    // exit (1);
     53    // }
    7854
    7955    psLogMsg ("psastro", 3, "complete psastro run: %f sec\n", psTimerMark ("complete"));
    8056
    81     // psastroCleanup (config);
     57    psastroCleanup (config);
    8258    exit (EXIT_SUCCESS);
    8359}
Note: See TracChangeset for help on using the changeset viewer.