IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15057


Ignore:
Timestamp:
Sep 27, 2007, 2:42:17 PM (19 years ago)
Author:
eugene
Message:

handle errors with missing WCS

File:
1 edited

Legend:

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

    r13836 r15057  
    6969        pmHDU *hdu = pmFPAviewThisHDU (view, fpa);
    7070        if (bilevelAstrometry) {
    71           pmAstromReadBilevelChip (chip, hdu->header);
     71            if (!pmAstromReadBilevelChip (chip, hdu->header)) {
     72                psWarning("Could not get WCS information from header for chip %d, skipping", view->chip);
     73                continue;
     74            }
    7275        } else {
    73           pmAstromReadWCS (fpa, chip, hdu->header, pixelScale);
     76            if (!pmAstromReadWCS (fpa, chip, hdu->header, pixelScale)) {
     77                psWarning("Could not get WCS information from header for chip %d, skipping", view->chip);
     78                continue;
     79            }
    7480        }
    7581
Note: See TracChangeset for help on using the changeset viewer.