IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 5, 2013, 2:20:46 PM (13 years ago)
Author:
eugene
Message:

stats is basically working now

File:
1 edited

Legend:

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

    r35434 r35512  
    5353
    5454    // generate Lmin,max, Mmin,max for both datasets
    55     fprintf (stderr, "srcBounds:\n");
    56     // pswarpBounds *srcBounds = pswarpMakeBounds (astrom->fpa, frame);
    5755    pswarpBounds *srcBounds = pswarpMakeBounds (input->fpa, frame);
    58 
    59     fprintf (stderr, "srcBounds:\n");
    6056    pswarpBounds *tgtBounds = pswarpMakeBounds (skycell->fpa, frame);
    6157
    62     pswarpFindOverlap (output->fpa, srcBounds, tgtBounds);
     58    // find the output (tgt) chips which overlap the input (src) chips
     59    pswarpFindOverlap (input->fpa, output->fpa, srcBounds, tgtBounds);
    6360
    64     // XXX the loop below generates the output pixels. should this be deferred until
    65     // we actually need them?
     61    // The loop below generates the output pixels. XXX Should this be deferred until we
     62    // actually need them? 
     63
    6664    // Generate the output chips (pixels on output->fpa, concepts from skycell->fpa)
    6765    pmFPAview *view = pmFPAviewAlloc(0);
     66
     67    // generate the output hdu and contents bits
     68    pmFPAAddSourceFromFormat(output->fpa, output->format);
    6869
    6970    pmChip *chip;
     
    115116            cell->file_exists = true;
    116117
    117 # if (0)
    118             // ******* this chunk comes from pswarpLoop, but should be done when the output chip is generated
     118            // copy the basic headers across from astrom ref to output
    119119            pmHDU *outHDU = pmHDUFromCell (cell);           ///< HDU for the output warped image
    120120            outHDU->header = psMetadataCopy(outHDU->header, hdu->header);
    121121            pswarpVersionHeader(outHDU->header);
    122 # endif
    123122        }
    124123    }
    125 
    126     // XXX not sure what this does...
    127     pmFPAviewReset (view);
    128     pmFPAAddSourceFromView(output->fpa, view, output->format);
    129 
    130124    psFree (view);
    131125    return true;
Note: See TracChangeset for help on using the changeset viewer.