IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 7, 2007, 6:48:50 AM (20 years ago)
Author:
eugene
Message:

functioning pswarp, needs opt code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpParseCamera.c

    r10952 r10954  
    33bool pswarpParseCamera (pmConfig *config) {
    44
    5     bool status = false;
     5    bool status;
    66
    77    // the input image(s) are required arguments; they define the camera
     8    status = false;
    89    pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "PSWARP.INPUT", "INPUT");
    9     if (!status) {
     10    if (!input) {
    1011        psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.INPUT");
    1112        return false;
     
    1314
    1415    // the input skycell is a required argument: it defines the output image
     16    status = false;
    1517    pmFPAfile *skycell = pmFPAfileDefineFromArgs (&status, config, "PSWARP.SKYCELL", "SKYCELL");
    16     if (!status) {
    17         psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.INPUT");
     18    if (!skycell) {
     19        psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.SKYCELL");
    1820        return false;
    1921    }
    2022
    2123    // the mask is not required; the  skycell is a required argument: it defines the output image
     24    status = false;
    2225    pmFPAfileDefineFromArgs (&status, config, "PSWARP.MASK", "MASK");
    2326    if (!status) {
     
    2629
    2730    // the weight is not required; the  skycell is a required argument: it defines the output image
     31    status = false;
    2832    pmFPAfileDefineFromArgs (&status, config, "PSWARP.WEIGHT", "WEIGHT");
    2933    if (!status) {
     
    3236
    3337    // these calls bind the I/O handle to the specified fpa
    34     pmFPAfileDefineOutput (config, skycell->fpa, "PSWARP.OUTPUT");
     38    if (!pmFPAfileDefineOutput (config, skycell->fpa, "PSWARP.OUTPUT")) {
     39        psError(PSWARP_ERR_CONFIG, false, "Failed to build FPA from PSWARP.OUTPUT");
     40        return false;
     41    }
    3542
    3643    // Chip selection: turn on only the chips specified
Note: See TracChangeset for help on using the changeset viewer.