IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 10, 2006, 8:30:07 AM (20 years ago)
Author:
magnier
Message:

support for multi-level WCS, higher-order WCS

File:
1 edited

Legend:

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

    r10603 r10612  
    77*  @author EAM, IfA
    88*
    9 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-12-10 02:06:47 $
     9*  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2006-12-10 18:30:07 $
    1111*
    1212*  Copyright 2006 Institute for Astronomy, University of Hawaii
     
    1515#ifndef PM_ASTROMETRY_WCS_H
    1616#define PM_ASTROMETRY_WCS_H
     17
     18#define PM_ASTROM_WCS_TYPE_SIZE 80
     19typedef struct
     20{
     21    char ctype1[PM_ASTROM_WCS_TYPE_SIZE];
     22    char ctype2[PM_ASTROM_WCS_TYPE_SIZE];
     23    double crval1, crval2;
     24    double crpix1, crpix2;
     25    double cdelt1, cdelt2;
     26    psProjection *toSky;
     27    psPlaneTransform *trans;
     28}
     29pmAstromWCS;
     30
     31pmAstromWCS *pmAstromWCSAlloc (int nXorder, int nYorder);
     32bool pmAstromWCStoSky (psSphere *sky, pmAstromWCS *wcs, psPlane *chip);
     33bool pmAstromWCStoChip (psPlane *chip, pmAstromWCS *wcs, psSphere *sky);
     34pmAstromWCS *pmAstromWCSfromHeader (psMetadata *header);
    1735
    1836bool pmAstromReadWCS (pmFPA *fpa, pmChip *chip, psMetadata *header, double plateScale, bool isMosaic);
     
    2543bool psPlaneDistortIsIdentity (psPlaneDistort *distort);
    2644
    27 # define PS_DEG_RAD 57.295779513082322
    28 # define PS_RAD_DEG  0.017453292519943
     45# define PM_DEG_RAD 57.295779513082322
     46# define PM_RAD_DEG  0.017453292519943
    2947
    3048#endif // PM_ASTROMETRY_WCS_H
     49
     50/*
     51 * the wcs->trans component defines a polynomial which converts (x-crpix1),(y-crpix2) to
     52 * L,M in degrees
     53 */
Note: See TracChangeset for help on using the changeset viewer.