IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 6, 2013, 10:32:51 AM (13 years ago)
Author:
eugene
Message:

remove superfulous ppStats.h includes; generate output psf model

File:
1 edited

Legend:

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

    r35515 r35521  
    1111
    1212#include "pswarp.h"
    13 #include <ppStats.h>
    1413#include "pswarpFileNames.h"            // Lists of file rules used at different stages
    15 
    16 #define WCS_NONLIN_TOL 0.001            // Non-linear tolerance for header WCS
    17 #define TESTING 0                       // Testing output?
    1814
    1915// Loop over the inputs, warp them to the output skycell and then write out the output.
     
    3329    }
    3430
    35     // XXX this should probably happen elsewhere (logically it belongs to file I/O, right?)
     31    // XXX move this to pswarpParseCamera?  has to come after input mask header is read
    3632    if (!pswarpSetMaskBits(config)) {
    3733        psError(psErrorCodeLast(), false, "failed to set mask bits");
     
    7066        return false;
    7167    }
    72 
    73     // XXX NOTE : 'output' was a readout, now we need to loop over all output targets
    7468
    7569    // ensure everyone is off except what we need below
     
    7973    pswarpFileActivation(config, skycellFiles, false);
    8074   
    81     // Turn on the source output --- we need to get rid of these so that we can measure the PSF
    82     // XXX NOTE : do not tackle source issues yet...
    83     // XXX pmFPAfileActivate(config->files, true, "PSWARP.OUTPUT.SOURCES");
    84 
    8575    // the loops below load the input data
    8676    pswarpFileActivation(config, detectorFiles, true);
     
    9080
    9181    // pswarpFileActivation(config, independentFiles, true);
    92 
    9382
    9483    pmFPAview *view = pmFPAviewAlloc(0);
     
    171160    }
    172161
    173     // XXXX turn these on later .. pswarpMakePSF (output);
    174     // XXX have not yet written the output to disk
     162    if (!pswarpMakePSF (config, output, stats)) {
     163      psError(psErrorCodeLast(), false, "problem generating PSF.");
     164      goto FAIL;
     165    }
     166
    175167    psFree(view);
    176168    return true;
Note: See TracChangeset for help on using the changeset viewer.