IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

change APIs to allow user-specified pmFPAfile name for source

File:
1 edited

Legend:

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

    r21409 r23336  
    4545
    4646    // load the reference stars overlapping the data stars
    47     psArray *refs = psastroLoadRefstars(config);
     47    psArray *refs = psastroLoadRefstars(config, "PSASTRO.INPUT");
    4848    if (!refs) {
    4949        psError (PSASTRO_ERR_UNKNOWN, false, "failed to load reference data\n");
     
    5656    }
    5757
    58     if (!psastroChooseRefstars (config, refs)) {
     58    if (!psastroChooseRefstars (config, refs, "PSASTRO.INPUT")) {
    5959        psError (PSASTRO_ERR_UNKNOWN, false, "failed to select reference data for chips\n");
    6060        psFree(refs);
    6161        return false;
    6262    }
     63    psFree (refs);  // refs of interest are saved on readout->analysis
    6364
    6465    // check the command-line arguments first
     
    7980        if (!psastroChipAstrom (config)) {
    8081            psError (PSASTRO_ERR_UNKNOWN, false, "failed to perform single chip astrometry\n");
    81             psFree(refs);
    8282            return false;
    8383        }
     
    8686        if (!psastroMosaicAstrom (config)) {
    8787            psError (PSASTRO_ERR_UNKNOWN, false, "failed to perform mosaic camera astrometry\n");
    88             psFree(refs);
    8988            return false;
    9089        }
     
    10099    // psastroStackAstrom (config, refs);
    101100
    102     psFree (refs);
    103101    return true;
    104102}
Note: See TracChangeset for help on using the changeset viewer.