IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20662


Ignore:
Timestamp:
Nov 10, 2008, 4:04:13 PM (17 years ago)
Author:
bills
Message:

copy the CTYPE values into the wcs structure

File:
1 edited

Legend:

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

    r19509 r20662  
    77 *  @author EAM, IfA
    88 *
    9  *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2008-09-12 01:05:59 $
     9 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2008-11-11 02:04:13 $
    1111 *
    1212 *  Copyright 2006 Institute for Astronomy, University of Hawaii
     
    272272    wcs->crpix2 = psMetadataLookupF64 (&status, header, "CRPIX2");
    273273    wcs->toSky = psProjectionAlloc (wcs->crval1*PM_RAD_DEG, wcs->crval2*PM_RAD_DEG, PM_RAD_DEG, PM_RAD_DEG, type);
     274
     275    // These aren't needed but having them empty is disconcerting
     276    strncpy(wcs->ctype2, ctype, PM_ASTROM_WCS_TYPE_SIZE-1);
     277    ctype = psMetadataLookupStr (&status, header, "CTYPE1");
     278    strncpy(wcs->ctype1, ctype, PM_ASTROM_WCS_TYPE_SIZE-1);
     279    wcs->ctype1[PM_ASTROM_WCS_TYPE_SIZE-1] = 0;
     280    wcs->ctype2[PM_ASTROM_WCS_TYPE_SIZE-1] = 0;
     281
    274282    // XXX I think this is wrong for linear proj
    275283
Note: See TracChangeset for help on using the changeset viewer.