STRUCT  Image_Elixir
EXTNAME DVO_IMAGE_ELIXIR
TYPE 	BINTABLE
SIZE 	240

# elements of the image structure

SUBSTRUCT coords,           COORDS,               CoordsDisk,    astrometric data
SUBFIELD  crval1,           CRVAL1,               double,   	 coordinate at reference pixel
SUBFIELD  crval2,           CRVAL2,               double,  	 coordinate at reference pixel
SUBFIELD  crpix1,           CRPIX1,               float,   	 coordinate of reference pixel
SUBFIELD  crpix2,           CRPIX2,               float,   	 coordinate of reference pixel
SUBFIELD  cdelt1,           CDELT1,               float,   	 degrees per pixel
SUBFIELD  cdelt2,           CDELT2,               float,    	 degrees per pixel
SUBFIELD  pc1_1,            PC1_1,                float,    	 rotation matrix
SUBFIELD  pc1_2,            PC1_2,                float,    	 rotation matrix
SUBFIELD  pc2_1,            PC2_1,                float,    	 rotation matrix
SUBFIELD  pc2_2,            PC2_2,                float,    	 rotation matrix
SUBFIELD  polyterms,        POLYTERMS,            float[7][2],	 higher order warping terms
SUBFIELD  ctype,            CTYPE,                char[15],      coordinate type
SUBFIELD  Npolyterms,       NPOLYTERMS,           char,     	 order of polynomial

FIELD 	  tzero,            TZERO,                e_time,         readout time (row 0)
FIELD 	  nstar,            NSTAR,                unsigned int,   number of stars on image
FIELD 	  secz,             SECZ,                 short,      	  airmass,                   milliairmass
FIELD 	  NX,               NX,                   short,      	  image width
FIELD 	  NY,               NY,                   short,      	  image height
FIELD 	  apmifit,          APMIFIT,              short,      	  aperture correction,       millimag
FIELD 	  dapmifit,         DAPMIFIT,             short,      	  apmifit error,             millimag
FIELD 	  source,           SOURCE,               short,      	  identifier for CCD,
FIELD 	  Mcal,             MCAL,                 short,      	  calibration mag,           millimag
FIELD 	  dMcal,            DMCAL,                short,      	  error on Mcal,             millimag
FIELD 	  Xm,               XM,                   short,      	  image chisq,               10*log(value)
FIELD 	  name,             NAME,                 char[32],       name of original image 
FIELD 	  detection_limit,  DETECTION_LIMIT,      unsigned char,  detection limit,           10*mag
FIELD 	  saturation_limit, SATURATION_LIMIT,     unsigned char,  saturation limit,          10*mag
FIELD 	  cerror,           CERROR,               unsigned char,  astrometric error,         50*arcsec
FIELD 	  fwhm_x,           FWHM_X,               unsigned char,  PSF x width,               25*arcsec
FIELD 	  fwhm_y,           FWHM_Y,               unsigned char,  PSF y width,               25*arcsec
FIELD 	  trate,            TRATE,                unsigned char,  scan rate,                 100 usec/pixel
FIELD 	  exptime,          EXPTIME,              float,          exposure time,             seconds
FIELD 	  code,             CODE,                 char,           image quality flag
FIELD 	  ccdnum,           CCDNUM,               unsigned char,  CCD ID number
FIELD 	  dummy,            DUMMY,                char[20],       unused

FIELD 	  nLinkAstrom,      NLINK_ASTROM,         short,      	  mean number of matched measurements for astrometry
FIELD 	  nLinkPhotom,      NLINK_PHOTOM,         short,      	  mean number of matched measurements for astrometry
FIELD 	  dummy3,           DUMMY3,               short,      	  place holder for byte boundaries

FIELD 	  dXpixSys,         XPIX_SYS_ERR,         float,      	  systematic astrometry error in X
FIELD 	  dYpixSys,         YPIX_SYS_ERR,         float,      	  systematic astrometry error in Y

FIELD 	  dMagSys,          MAG_SYS_ERR,          float,      	  systematic photometry error
FIELD 	  nFitAstrom,       N_FIT_ASTROM,         short,      	  number of stars used for astrometry cal
FIELD 	  nFitPhotom,       N_FIT_PHOTOM,         short,      	  number of stars used for photometry cal

FIELD 	  photom_map_id,    PHOTOM_MAP_ID,        unsigned int,   reference to 2D zero point map
FIELD 	  astrom_map_id,    ASTROM_MAP_ID,        unsigned int,   reference to 2D astrometry map
# nFitPhotom lands on the old location of Mxxxx, which was used to mean nFitPhotom in some cases
