IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 21, 2007, 6:24:29 PM (19 years ago)
Author:
Paul Price
Message:

Trying to incorporate psphot into ppSub. It doesn't work yet; waiting on Gene's input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubCamera.c

    r13371 r13462  
    66#include <pslib.h>
    77#include <psmodules.h>
     8#include <psphot.h>
    89
    910#include "ppSub.h"
     
    9798    }
    9899
     100    // psPhot input
     101    pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT");
     102    if (!psphot) {
     103        psError(PS_ERR_IO, false, "Failed to build FPA from PSPHOT.INPUT");
     104        return false;
     105    }
     106    if (input->type != PM_FPA_FILE_IMAGE) {
     107        psError(PS_ERR_IO, true, "PSPHOT.INPUT is not of type IMAGE");
     108        return false;
     109    }
     110
     111    if (!psphotDefineFiles(config, psphot)) {
     112        psError(PS_ERR_UNKNOWN, false, "Unable to set up psphot files.");
     113        return false;
     114    }
     115
    99116    return true;
    100117}
Note: See TracChangeset for help on using the changeset viewer.