IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25825


Ignore:
Timestamp:
Oct 9, 2009, 2:57:04 PM (17 years ago)
Author:
Paul Price
Message:

Write unconvolved stack to separate (and new) file.

Location:
branches/pap
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ippconfig/recipes/filerules-mef.mdc

    r25751 r25825  
    253253PPSTACK.OUTPUT.MASK     OUTPUT {OUTPUT}.mk.fits                  MASK      COMP_MASK  FPA        TRUE      NONE
    254254PPSTACK.OUTPUT.VARIANCE OUTPUT {OUTPUT}.wt.fits                  VARIANCE  COMP_WT    FPA        TRUE      NONE
     255PPSTACK.UNCONV          OUTPUT {OUTPUT}.unconv.fits              IMAGE     COMP_IMG   FPA        TRUE      NONE
    255256PPSTACK.TARGET.PSF      OUTPUT {OUTPUT}.target.psf               PSF       NONE       CHIP       TRUE      NONE
    256257PPSTACK.CONV.KERNEL     OUTPUT {OUTPUT}.{FILE.INDEX}.kernel      SUBKERNEL NONE       FPA        TRUE      NONE
  • branches/pap/ippconfig/recipes/filerules-simple.mdc

    r24727 r25825  
    202202PPSTACK.OUTPUT.MASK     OUTPUT {OUTPUT}.mask.fits    MASK      NONE       FPA        TRUE      NONE
    203203PPSTACK.OUTPUT.VARIANCE OUTPUT {OUTPUT}.weight.fits  VARIANCE  NONE       FPA        TRUE      NONE
     204PPSTACK.UNCONV          OUTPUT {OUTPUT}.unconv.fits  IMAGE     NONE       FPA        TRUE      NONE
    204205PPSTACK.TARGET.PSF      OUTPUT {OUTPUT}.target.psf   PSF       NONE       CHIP       TRUE      NONE
    205206PPSTACK.CONV.KERNEL     OUTPUT {OUTPUT}.{FILE.INDEX}.kernel SUBKERNEL NONE FPA       TRUE      NONE
  • branches/pap/ippconfig/recipes/filerules-split.mdc

    r25751 r25825  
    219219PPSTACK.OUTPUT.MASK     OUTPUT {OUTPUT}.mask.fits                MASK      COMP_MASK  FPA        TRUE      NONE
    220220PPSTACK.OUTPUT.VARIANCE OUTPUT {OUTPUT}.wt.fits                  VARIANCE  COMP_WT    FPA        TRUE      NONE
     221PPSTACK.UNCONV          OUTPUT {OUTPUT}.unconv.fits              IMAGE     COMP_IMG   FPA        TRUE      NONE
    221222PPSTACK.TARGET.PSF      OUTPUT {OUTPUT}.target.psf               PSF       NONE       CHIP       TRUE      NONE
    222223PPSTACK.CONV.KERNEL     OUTPUT {OUTPUT}.{FILE.INDEX}.kernel      SUBKERNEL NONE       FPA        TRUE      NONE
  • branches/pap/ppStack/src/ppStackCamera.c

    r25787 r25825  
    233233
    234234    // Output image
    235     pmFPA *fpa = pmFPAConstruct(config->camera, config->cameraName); // FPA to contain the output
    236     if (!fpa) {
     235    pmFPA *outFPA = pmFPAConstruct(config->camera, config->cameraName); // FPA to contain the output
     236    if (!outFPA) {
    237237        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to construct an FPA from camera configuration.");
    238238        return false;
    239239    }
    240     pmFPAfile *output = pmFPAfileDefineOutput(config, fpa, "PPSTACK.OUTPUT");
    241     psFree(fpa);                        // Drop reference
     240    pmFPAfile *output = pmFPAfileDefineOutput(config, outFPA, "PPSTACK.OUTPUT");
     241    psFree(outFPA);                        // Drop reference
    242242    if (!output) {
    243243        psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.OUTPUT"));
     
    250250    output->save = true;
    251251
    252     if (!pmFPAAddSourceFromFormat(fpa, "Stack", output->format)) {
     252    if (!pmFPAAddSourceFromFormat(outFPA, "Stack", output->format)) {
    253253        psError(PS_ERR_UNKNOWN, false, "Unable to generate output FPA.");
    254         psFree(fpa);
    255254        return false;
    256255    }
     
    295294    }
    296295
    297 #if 0
     296#if 1
    298297    // Unconvolved stack
    299     pmFPAfile *unConv = pmFPAfileDefineOutput(config, fpa, "PPSTACK.OUTPUT.UNCONV");
    300     psFree(fpa);                        // Drop reference
     298    pmFPA *unconvFPA = pmFPAConstruct(config->camera, config->cameraName); // FPA to contain unconvolved output
     299    if (!unconvFPA) {
     300        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to construct an FPA from camera configuration.");
     301        return false;
     302    }
     303    pmFPAfile *unConv = pmFPAfileDefineOutput(config, unconvFPA, "PPSTACK.UNCONV");
     304    psFree(unconvFPA);                  // Drop reference
    301305    if (!unConv) {
    302         psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.OUTPUT.UNCONV"));
     306        psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.UNCONV"));
    303307        return false;
    304308    }
    305309    if (unConv->type != PM_FPA_FILE_IMAGE) {
    306         psError(PS_ERR_IO, true, "PPSTACK.OUTPUT.UNCONV is not of type IMAGE");
     310        psError(PS_ERR_IO, true, "PPSTACK.UNCONV is not of type IMAGE");
    307311        return false;
    308312    }
    309313    unConv->save = true;
    310314
    311     if (!pmFPAAddSourceFromFormat(fpa, "Stack", unConv->format)) {
     315    if (!pmFPAAddSourceFromFormat(unconvFPA, "Stack", unConv->format)) {
    312316        psError(PS_ERR_UNKNOWN, false, "Unable to generate output FPA.");
    313         psFree(fpa);
    314317        return false;
    315318    }
  • branches/pap/ppStack/src/ppStackCombinePrepare.c

    r25787 r25825  
    3333    pmCell *outCell = pmFPAfileThisCell(config->files, view, "PPSTACK.OUTPUT"); // Output cell
    3434    options->outRO = pmReadoutAlloc(outCell); // Output readout
    35     options->unconvRO = pmReadoutAlloc(outCell); // Unconvolved readout
     35
     36    pmCell *unconvCell = pmFPAfileThisCell(config->files, view, "PPSTACK.UNCONV"); // Unconvolved cell
     37    options->unconvRO = pmReadoutAlloc(unconvCell); // Unconvolved readout
     38
    3639    psFree(view);
    3740
Note: See TracChangeset for help on using the changeset viewer.