IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2008, 4:13:58 PM (18 years ago)
Author:
Paul Price
Message:

Fixing background subtraction.

File:
1 edited

Legend:

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

    r19757 r20614  
    179179    if (psMetadataLookupBool(NULL, recipe, "PHOTOMETRY")) {
    180180        psphotModelClassInit ();        // load implementation-specific models
    181         pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT");
    182         if (!psphot) {
    183             psError(PS_ERR_IO, false, "Failed to build FPA from PSPHOT.INPUT");
    184             return false;
    185         }
    186         if (psphot->type != PM_FPA_FILE_IMAGE) {
    187             psError(PS_ERR_IO, true, "PSPHOT.INPUT is not of type IMAGE");
    188             return false;
    189         }
    190 
    191         if (!psphotDefineFiles(config, psphot)) {
    192             psError(PS_ERR_UNKNOWN, false, "Unable to set up psphot files.");
    193             return false;
    194         }
     181
    195182
    196183        // Internal-ish file for getting the PSF from the matched addition
     
    205192        }
    206193        pmFPAfileActivate(config->files, false, "PSPHOT.PSF.LOAD");
     194    }
     195
     196    // Always do this, since we're using psphot for the background model.
     197    {
     198        pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT");
     199        if (!psphot) {
     200            psError(PS_ERR_IO, false, "Failed to build FPA from PSPHOT.INPUT");
     201            return false;
     202        }
     203        if (psphot->type != PM_FPA_FILE_IMAGE) {
     204            psError(PS_ERR_IO, true, "PSPHOT.INPUT is not of type IMAGE");
     205            return false;
     206        }
     207
     208        if (!psphotDefineFiles(config, psphot)) {
     209            psError(PS_ERR_UNKNOWN, false, "Unable to set up psphot files.");
     210            return false;
     211        }
    207212
    208213    }
Note: See TracChangeset for help on using the changeset viewer.