IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 29, 2009, 3:01:24 PM (17 years ago)
Author:
Paul Price
Message:

Convering 'weight' to 'variance' where appropriate. Mostly just propagating changes from psModules. Fixed some mask types as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_20090128/pswarp/src/pswarpParseCamera.c

    r20331 r21225  
    4545    }
    4646
    47     pmFPAfile *inWeight = pmFPAfileBindFromArgs(&status, input, config, "PSWARP.WEIGHT", "WEIGHT");
     47    pmFPAfile *inVariance = pmFPAfileBindFromArgs(&status, input, config, "PSWARP.VARIANCE", "VARIANCE");
    4848    if (!status) {
    4949        psError (PS_ERR_UNKNOWN, false, "failed to load find definition");
    5050        return NULL;
    5151    }
    52     if (!inWeight) {
    53         psLogMsg ("pswarp", 3, "no weight supplied\n");
     52    if (!inVariance) {
     53        psLogMsg ("pswarp", 3, "no variance supplied\n");
    5454    }
    5555
     
    7878    outMask->save = true;
    7979
    80     if (inWeight) {
    81         pmFPAfile *outWeight = pmFPAfileDefineSkycell(config, output->fpa, "PSWARP.OUTPUT.WEIGHT");
    82         if (!outWeight) {
    83             psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.OUTPUT.WEIGHT");
     80    if (inVariance) {
     81        pmFPAfile *outVariance = pmFPAfileDefineSkycell(config, output->fpa, "PSWARP.OUTPUT.VARIANCE");
     82        if (!outVariance) {
     83            psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.OUTPUT.VARIANCE");
    8484            return false;
    8585        }
    86         outWeight->save = true;
     86        outVariance->save = true;
    8787    }
    8888
Note: See TracChangeset for help on using the changeset viewer.