IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14858


Ignore:
Timestamp:
Sep 14, 2007, 5:54:24 PM (19 years ago)
Author:
Paul Price
Message:

Lack of astrometry should produce a warning, not an error.

File:
1 edited

Legend:

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

    r14857 r14858  
    189189            } else {
    190190                if (!pmAstromReadWCS(outFPA, outCell->parent, hdu->header, 1.0)) {
    191                     psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry from input FPA.");
    192                     psFree(stack);
    193                     psFree(outRO);
    194                     return false;
    195                 }
    196                 if (!outHDU->header) {
    197                     outHDU->header = psMetadataAlloc();
    198                 }
    199                 if (!pmAstromWriteWCS(outHDU->header, outFPA, outCell->parent, WCS_TOLERANCE)) {
    200                     psError(PS_ERR_UNKNOWN, false, "Unable to write WCS astrometry to output FPA.");
    201                     psFree(stack);
    202                     psFree(outRO);
    203                     return false;
     191                    psErrorClear();
     192                    psWarning("Unable to read WCS astrometry from input FPA.");
     193                } else {
     194                    if (!outHDU->header) {
     195                        outHDU->header = psMetadataAlloc();
     196                    }
     197                    if (!pmAstromWriteWCS(outHDU->header, outFPA, outCell->parent, WCS_TOLERANCE)) {
     198                        psErrorClear();
     199                        psWarning("Unable to write WCS astrometry to output FPA.");
     200                    }
    204201                }
    205202            }
Note: See TracChangeset for help on using the changeset viewer.