IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 2, 2008, 9:05:33 AM (18 years ago)
Author:
eugene
Message:

add ZNAXISi if NAXISi is not found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryWCS.c

    r17036 r19306  
    77 *  @author EAM, IfA
    88 *
    9  *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2008-03-18 18:38:14 $
     9 *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2008-09-02 19:05:33 $
    1111 *
    1212 *  Copyright 2006 Institute for Astronomy, University of Hawaii
     
    9494    int Nx = psMetadataLookupS32 (&status1, header, "NAXIS1");
    9595    int Ny = psMetadataLookupS32 (&status2, header, "NAXIS2");
     96
     97    if (!status1 || !status2) {
     98        Nx = psMetadataLookupS32 (&status1, header, "ZNAXIS1");
     99        Ny = psMetadataLookupS32 (&status2, header, "ZNAXIS2");
     100    }
     101
    96102    if (!status1 || !status2) {
    97103        psFree (wcs);
Note: See TracChangeset for help on using the changeset viewer.