IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 7, 2007, 6:48:50 AM (20 years ago)
Author:
eugene
Message:

functioning pswarp, needs opt code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpDefine.c

    r10952 r10954  
    2323    pmFPAfileRead (skycell, view, config);
    2424
     25    // XXX this is not a sufficient test
     26    view->chip = 0;
     27    pmChip *chip = pmFPAviewThisChip (view, skycell->fpa);
     28    pmHDU *phu = pmFPAviewThisPHU (view, skycell->fpa);
     29    pmHDU *hdu = pmFPAviewThisHDU (view, skycell->fpa);
     30    bool bilevelAstrometry = false;
     31    if (phu) {
     32      char *ctype = psMetadataLookupStr (NULL, phu->header, "CTYPE1");
     33      if (ctype) {
     34        bilevelAstrometry = !strcmp (&ctype[4], "-DIS");
     35      }
     36    }
     37    if (bilevelAstrometry) {
     38      pmAstromReadBilevelMosaic (skycell->fpa, phu->header);
     39      pmAstromReadBilevelChip (chip, hdu->header);
     40    } else {
     41      // XXX get pixelScale from recipes.  does it matter?
     42      float pixelScale = 13.5;
     43      pmAstromReadWCS (skycell->fpa, chip, hdu->header, pixelScale);
     44    }
     45
    2546    // construct the output fpa here
    2647    pmFPAfile *output = psMetadataLookupPtr (NULL, config->files, "PSWARP.OUTPUT");
Note: See TracChangeset for help on using the changeset viewer.