IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 8, 2008, 9:51:39 AM (18 years ago)
Author:
Paul Price
Message:

Propagate WCS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackReadout.c

    r17633 r18435  
    99
    1010#include "ppStack.h"
    11 
    12 #define WCS_TOLERANCE 0.001             // Tolerance for WCS
    1311
    1412//#define REJECTION_FILES                 // Write rejection mask?
     
    185183        }
    186184        totExposure += exposure;        // Total exposure time
    187 
    188 #if 0
    189         if (i == 0) {
    190             // Copy astrometry over
    191             pmHDU *hdu = fpa->hdu; // Template HDU
    192             pmHDU *outHDU = outFPA->hdu; // Output HDU
    193             if (!outHDU || !hdu) {
    194                 psWarning("Unable to find HDU at FPA level to copy astrometry.");
    195             } else {
    196                 if (!pmAstromReadWCS(outFPA, outChip, hdu->header, 1.0)) {
    197                     psErrorClear();
    198                     psWarning("Unable to read WCS astrometry from input FPA.");
    199                 } else {
    200                     if (!outHDU->header) {
    201                         outHDU->header = psMetadataAlloc();
    202                     }
    203                     if (!pmAstromWriteWCS(outHDU->header, outFPA, outChip, WCS_TOLERANCE)) {
    204                         psErrorClear();
    205                         psWarning("Unable to write WCS astrometry to output FPA.");
    206                     }
    207                 }
    208             }
    209         }
    210 #endif
    211185
    212186        // Ensure there is a mask, or pmStackCombine will complain
Note: See TracChangeset for help on using the changeset viewer.