IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 15, 2010, 11:22:56 AM (16 years ago)
Author:
watersc1
Message:

association and jpegs look fine. random simtest errors are a bit worrying, though.

Location:
branches/czw_branch/20100519
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20100519

  • branches/czw_branch/20100519/ppBackground

    • Property svn:ignore set to
      configure
      Makefile.in
      ignore
      config.log
      depcomp
      config.status
      config.guess
      ltmain.sh
      config.sub
      autom4te.cache
      libtool
      missing
      Makefile
      aclocal.m4
      install-sh
  • branches/czw_branch/20100519/ppBackground/src

    • Property svn:ignore set to
      ppBackground
      Makefile.in
      config.h
      ppBackgroundVersionDefinitions.h
      .deps
      Makefile
      ppBackgroundErrorCodes.c
      ppBackgroundErrorCodes.h
      stamp-h1
      config.h.in
  • branches/czw_branch/20100519/ppBackground/src/ppBackgroundCamera.c

    r28304 r28334  
    3232    bool status;                        // Status of file definition
    3333
    34     fileArguments("PATTERN", data->patternName, "Input pattern", data->config);
    35     pmFPAfile *pattern = pmFPAfileDefineFromArgs(&status, data->config, "PPBACKGROUND.PATTERN",
    36                                                  "PATTERN"); // File
    37     if (!status) {
    38         psError(psErrorCodeLast(), false, "Failed to build file from PPBACKGROUND.PATTERN");
    39         return false;
     34    if (data->patternName) {
     35        fileArguments("PATTERN", data->patternName, "Input pattern", data->config);
     36        pmFPAfileDefineFromArgs(&status, data->config, "PPBACKGROUND.PATTERN", "PATTERN"); // File
     37        if (!status) {
     38            psError(psErrorCodeLast(), false, "Failed to build file from PPBACKGROUND.PATTERN");
     39            return false;
     40        }
    4041    }
    4142
    42     fileArguments("BACKGROUND", data->backgroundName, "Input background model", data->config);
    43     pmFPAfile *background = pmFPAfileBindFromArgs(&status, data->config, "PPBACKGROUND.BACKGROUND",
    44                                                   "BACKGROUND"); // File
    45     if (!status) {
    46         psError(psErrorCodeLast(), false, "Failed to build file from PPBACKGROUND.BACKGROUND");
    47         return false;
     43    if (data->backgroundName) {
     44        fileArguments("BACKGROUND", data->backgroundName, "Input background model", data->config);
     45        pmFPAfileDefineFromArgs(&status, data->config, "PPBACKGROUND.BACKGROUND", "BACKGROUND"); // File
     46        if (!status) {
     47            psError(psErrorCodeLast(), false, "Failed to build file from PPBACKGROUND.BACKGROUND");
     48            return false;
     49        }
    4850    }
    4951
    50     fileArguments("IMAGE", data->backgroundName, "Input uncorrected image", data->config);
    51     pmFPAfile *image = pmFPAfileBindFromArgs(&status, background, data->config, "PPBACKGROUND.IMAGE",
    52                                              "IMAGE"); // File
    53     if (!status) {
     52    fileArguments("IMAGE", data->imageName, "Input uncorrected image", data->config);
     53    pmFPAfile *image = pmFPAfileDefineFromArgs(&status, data->config, "PPBACKGROUND.IMAGE",
     54                                               "IMAGE"); // File
     55    if (!status || !image) {
    5456        psError(psErrorCodeLast(), false, "Failed to build file from PPBACKGROUND.IMAGE");
    5557        return false;
    5658    }
    5759
    58     fileArguments("MASK", data->backgroundName, "Input uncorrected mask", data->config);
    59     pmFPAfile *mask = pmFPAfileBindFromArgs(&status, image, data->config, "PPBACKGROUND.MASK",
    60                                               "MASK"); // File
     60    fileArguments("MASK", data->maskName, "Input uncorrected mask", data->config);
     61    pmFPAfileBindFromArgs(&status, image, data->config, "PPBACKGROUND.MASK", "MASK"); // File
    6162    if (!status) {
    6263        psError(psErrorCodeLast(), false, "Failed to build file from PPBACKGROUND.MASK");
     
    6465    }
    6566
    66     pmFPAfile *output = pmFPAfileDefineOutput(data->config, file->fpa, "PPBACKGROUND.OUTPUT");
     67    pmFPAfile *output = pmFPAfileDefineOutput(data->config, image->fpa, "PPBACKGROUND.OUTPUT");
    6768    if (!output) {
    6869        psError(psErrorCodeLast(), false, "Unable to define output.");
     
    7071    }
    7172    output->save = true;
     73
     74    pmFPAfile *outMask = pmFPAfileDefineOutput(data->config, output->fpa, "PPBACKGROUND.OUTPUT.MASK");
     75    if (!outMask) {
     76        psError(psErrorCodeLast(), false, "Unable to define output.");
     77        return false;
     78    }
     79    outMask->save = true;
    7280
    7381#if 0
Note: See TracChangeset for help on using the changeset viewer.