#ifndef TS_PM_H
#define TS_PM_H

/* A pm-lite calibrated survey object */
typedef struct tsPmObj
{
  int run;                      /* Run Id */
  int camCol;                   /* Camera column */
  int rerun;                    /* Rerun number */
  int field;                    /* Field Id */
  int id;			/* Object ID, unique within its field
				   (1 indexed) */
  int objc_type;		/* Object type (star, galaxy, etc) */
  int objc_flags;		/* Flags */
  int objc_flags2;		/* More flags */
  float mag[5];                 /* PSF magnitude for stars, model mag else */
  float magErr[5];              /* Error in magnitude */
  float rowv;		        /* Row-component of object's velocity
				   (pixels/frame) */
  float rowvErr;	        /* Error in row-component of object's velocity
				   (pixels/frame) */
  float colv;		        /* Column-component of object's velocity
				   (pixels/frame) */
  float colvErr;	        /* Error in col-component of object's velocity
				   (pixels/frame) */
  double mu;			/* Great circle longitude (r', degrees) */
  double nu;			/* Great circle latitude (r', degrees) */
  double ra;			/* J2000 right ascension (r', degrees) */
  double dec;			/* J2000 declination (r', degrees) */
  double l;			/* Galactic longitude (lII, r', degrees) */
  double b;			/* Galactic latgitude (bII, r', degrees) */
  int status;			/* Object status within the survey */
  int primTarget;		/* Primary target bit mask (science samples) */
  float reddening[5];           /* Reddening in each filter (luptitudes) */
  int   properMotionMatch;	/* match to USNOA2.0 catalog
				 * (0=no match, 1= good match) */
  float properMotionDelta;	/* distance to USNOA2.0 catalog match (asec)*/
  float properMotion;		/* proper motion arcsec/century */
  float properMotionAngle;      /* Direction of proper motion (degrees,
				 * postive north thru east) */
  float usnoBlue;               /* Blue magnitude of matching USNOA2.0 object*/
  float usnoRed;                /* Red magnitude of matching USNOA2.0 object*/
  double mjd;                   /* MJD of observation */
} TS_PM_OBJ; /* pragma SCHEMA */

#endif
