IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 21, 2007, 9:30:37 PM (19 years ago)
Author:
eugene
Message:

update to new psAstromWCS APIs; drop old files, old functions from psastroUtils.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroAstromGuess.c

    r12492 r12536  
    4747    pmFPA *fpa = input->fpa;
    4848
     49    // load mosaic-level astrometry?
     50    bool bilevelAstrometry = false;
     51    pmHDU *phu = pmFPAviewThisPHU (view, fpa);
     52    if (phu) {
     53      char *ctype = psMetadataLookupStr (NULL, phu->header, "CTYPE1");
     54      if (ctype) {
     55        bilevelAstrometry = !strcmp (&ctype[4], "-DIS");
     56      }
     57    }
     58    if (bilevelAstrometry) {
     59      pmAstromReadBilevelMosaic (fpa, phu->header);
     60    }
     61
    4962    while ((chip = pmFPAviewNextChip (view, fpa, 1)) != NULL) {
    5063        psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
     
    5366        // read WCS data from the corresponding header
    5467        pmHDU *hdu = pmFPAviewThisHDU (view, fpa);
     68        if (bilevelAstrometry) {
     69          pmAstromReadBilevelChip (chip, hdu->header);
     70        } else {
     71          pmAstromReadWCS (fpa, chip, hdu->header, pixelScale);
     72        }
    5573
    56         pmAstromReadWCS (fpa, chip, hdu->header, pixelScale);
    5774        if (newFPA) {
    5875            newFPA = false;
Note: See TracChangeset for help on using the changeset viewer.