IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

warping of background model appears to work

File:
1 edited

Legend:

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

    r35512 r35535  
    3939    }
    4040
    41 # if (1)
    42     // XXX I'm going to add the new code before removing the old code.
    4341    // load the input & output astrometry, find the output overlaps, generate the output pixels
    4442    if (!pswarpDefineLayout(config)) {
    4543        pswarpCleanup(config, statsFile);
    4644    }
    47     // load and warp
     45
     46    // load input pixels & and warp
    4847    if (!pswarpLoop(config, statsFile->md)) {
    4948        pswarpCleanup(config, statsFile);
    5049    }
    5150
    52 # else
    53     // load the skycell layout information:
    54     //   read the output astrometry description
    55     //   generate the output pixels
    56     //   convert header astrometry to pmFPA astrometry structures
    57     if (!pswarpDefine(config)) {
    58         pswarpCleanup(config, statsFile);
     51    // load input pixels & and warp
     52    if (!pswarpLoopBackground(config, statsFile->md)) {
     53        pswarpCleanup(config, statsFile);
    5954    }
    60     if (!pswarpDefineBackground(config)) {
    61         pswarpCleanup(config, statsFile);
    62     }
    63     // load and warp
    64     if (!pswarpLoopSkycell(config, statsFile->md)) {
    65         pswarpCleanup(config, statsFile);
    66     }
    67     if (!pswarpLoopBackground(config, statsFile->md)) {
    68         fprintf(stderr,"Dying!\n");
    69         pswarpCleanup(config, statsFile);
    70     }
    71 # endif
    7255
     56    // output and free
     57    // NOTE: pswarpCleanup calls exit
    7358    psLogMsg("pswarp", PS_LOG_INFO, "complete pswarp run: %f sec\n", psTimerMark("pswarp"));
    7459    pswarpCleanup(config, statsFile);
    7560}
    76 
    77 // NOTE: pswarpCleanup calls exit
    78 
    79 // pswarpDumpOutput (config);
    80 // exit (0);
Note: See TracChangeset for help on using the changeset viewer.