- Timestamp:
- May 5, 2013, 2:20:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/pswarp/src/pswarpDefineLayout.c
r35434 r35512 53 53 54 54 // generate Lmin,max, Mmin,max for both datasets 55 fprintf (stderr, "srcBounds:\n");56 // pswarpBounds *srcBounds = pswarpMakeBounds (astrom->fpa, frame);57 55 pswarpBounds *srcBounds = pswarpMakeBounds (input->fpa, frame); 58 59 fprintf (stderr, "srcBounds:\n");60 56 pswarpBounds *tgtBounds = pswarpMakeBounds (skycell->fpa, frame); 61 57 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); 63 60 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 66 64 // Generate the output chips (pixels on output->fpa, concepts from skycell->fpa) 67 65 pmFPAview *view = pmFPAviewAlloc(0); 66 67 // generate the output hdu and contents bits 68 pmFPAAddSourceFromFormat(output->fpa, output->format); 68 69 69 70 pmChip *chip; … … 115 116 cell->file_exists = true; 116 117 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 119 119 pmHDU *outHDU = pmHDUFromCell (cell); ///< HDU for the output warped image 120 120 outHDU->header = psMetadataCopy(outHDU->header, hdu->header); 121 121 pswarpVersionHeader(outHDU->header); 122 # endif123 122 } 124 123 } 125 126 // XXX not sure what this does...127 pmFPAviewReset (view);128 pmFPAAddSourceFromView(output->fpa, view, output->format);129 130 124 psFree (view); 131 125 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
