IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 19, 2007, 4:08:18 PM (19 years ago)
Author:
Paul Price
Message:

"inst" on the chiptool command-line is "camera" in the database.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/chiptool.c

    r13649 r13891  
    9292}
    9393
    94 #define ADDPARAMSTR(from, to, name) \
     94#define ADDRENAMEPARAMSTR(from, to, oldname, newname) \
    9595{ \
    9696    bool status = false; \
    97     psString str = psMetadataLookupStr(&status, from, "-" name); \
     97    psString str = psMetadataLookupStr(&status, from, "-" oldname); \
    9898    if (!status) { \
    99         psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -" name); \
     99        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -" oldname); \
    100100        return false; \
    101101    } \
    102102    if (str) { \
    103         if (!psMetadataAddStr(to, PS_LIST_TAIL, name, 0, "==", str)) { \
    104             psError(PS_ERR_UNKNOWN, false, "failed to add item " name); \
     103        if (!psMetadataAddStr(to, PS_LIST_TAIL, newname, 0, "==", str)) { \
     104            psError(PS_ERR_UNKNOWN, false, "failed to add item " newname); \
    105105            psFree(to); \
    106106            return false; \
     
    109109}
    110110
     111#define ADDPARAMSTR(from, to, name) ADDRENAMEPARAMSTR(from, to, name, name)
    111112
    112113#define ADDPARAMF(from, to, type, name) \
     
    134135    ADDPARAMSTR(config->args, where, "exp_tag");
    135136    ADDPARAMSTR(config->args, where, "exp_id");
    136     ADDPARAMSTR(config->args, where, "inst");
     137    ADDRENAMEPARAMSTR(config->args, where, "inst", "camera");
    137138    ADDPARAMSTR(config->args, where, "telescope");
    138139    ADDPARAMSTR(config->args, where, "dateobs");
     
    798799        // camQueueChipID() can only be run after the chipProcessedExp entry
    799800        // has been inserted.
    800         // queue the chip_id in the camPendingExp table 
     801        // queue the chip_id in the camPendingExp table
    801802        if (!camQueueChipID(config,
    802803                    processedExp->chip_id,
     
    967968        bg_stdev,
    968969        bg_mean_stdev,
    969         bias,
    970         bias_stdev,
    971         fringe_0,
    972         fringe_1,
    973         fringe_2,
    974         sigma_ra,
    975         sigma_dec,
    976         ap_resid,
    977         ap_resid_stdev,
    978         fwhm,
    979         fwhm_range,
    980         n_stars,
    981         n_extended,
    982         n_cr,
    983         n_astrom,
     970        bias,
     971        bias_stdev,
     972        fringe_0,
     973        fringe_1,
     974        fringe_2,
     975        sigma_ra,
     976        sigma_dec,
     977        ap_resid,
     978        ap_resid_stdev,
     979        fwhm,
     980        fwhm_range,
     981        n_stars,
     982        n_extended,
     983        n_cr,
     984        n_astrom,
    984985        path_base,
    985986        code
    986         );
     987        );
    987988}
    988989
     
    991992{
    992993    PS_ASSERT_PTR_NON_NULL(pendingExp, NULL);
    993  
     994
    994995    return chipProcessedExpRowAlloc(
    995996        pendingExp->chip_id,
Note: See TracChangeset for help on using the changeset viewer.