IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2013, 4:56:44 PM (13 years ago)
Author:
eugene
Message:

cleanup file activation calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpLoop.c

    r35535 r35536  
    1111
    1212#include "pswarp.h"
    13 #include "pswarpFileNames.h"            // Lists of file rules used at different stages
    1413
    1514// Loop over the inputs, warp them to the output skycell and then update metadata
     
    4746    }
    4847
     48    // load in the input pixel data (ex. background model)
     49    pmFPAfileActivate(config->files, false, NULL);
     50    pmFPAfileActivate(config->files, true, "PSWARP.INPUT");
     51    pmFPAfileActivate(config->files, true, "PSWARP.MASK");
     52    pmFPAfileActivate(config->files, true, "PSWARP.VARIANCE");
     53
     54    // We re-activate the CMF load so we can transform the sources as well as the pixels.
     55    // We only need to read in these if the astrometry source is CMF.
     56    pmFPAfileActivate(config->files, true, "PSWARP.ASTROM");
     57
    4958    // loop over this section once per input group
    5059    for (int i = 0; i < nInputs; i++) {
     
    6170            astrom = input;
    6271        }
    63 
    64         // ensure everyone is off except what we need below
    65         // XXX double-check activation issues in general
    66         pswarpFileActivation(config, detectorFiles, true);
    67         pswarpFileActivation(config, photFiles, false);
    68         pswarpFileActivation(config, independentFiles, false);
    69         pswarpFileActivation(config, skycellFiles, false);
    70    
    71         // We re-activate the CMF load so we can transform the sources as well as the pixels.
    72         // We only need to read in these if the astrometry source is CMF.
    73         pmFPAfileActivate(config->files, true, "PSWARP.ASTROM");
    7472
    7573        pmFPAviewReset (view);
     
    146144        }
    147145
    148         // Done with the detector side of things
    149         pswarpFileActivation(config, detectorFiles, false);
    150         pswarpFileActivation(config, independentFiles, false);
    151 
    152146        if (!pswarpUpdateStatistics (output->fpa, stats, input->fpa, astrom->fpa, config)) {
    153147            psError(psErrorCodeLast(), false, "problem generating statistics.");
Note: See TracChangeset for help on using the changeset viewer.