STRUCT  AveragePanstarrs
EXTNAME DVO_AVERAGE_PANSTARRS
TYPE    BINTABLE
SIZE    48

# elements of data structure / FITS table

FIELD R,              RA,         double,           RA,                	       	  decimal degrees 
FIELD D,              DEC,        double,           DEC,               	       	  decimal degrees 
FIELD M,              MAG,        float,            primary mag,       	       	  mag
FIELD dM,             MAG_ERR,    float,            error on primary mag,         mag
FIELD Xp,             SIGMA_POS,  short, 	    position scatter,   	  1/100 arcsec
FIELD Xm,             CHISQ_MAG,  short, 	    chisq for primary mag,        [100*log(value)]
FIELD Xg,             CHISQ_GAL,  short,            chisq for galaxy mag          [100*log(value)]
FIELD Nm,             NMEAS,      unsigned short,   number of measures
FIELD Nn,             NMISS,      unsigned short,   number of missings
FIELD code,           code,       unsigned short,   ID code (star; ghost; etc)
FIELD offset,         offset,     int,     	    offset to first measurement
FIELD missing,        missing,    int,     	    offset to first missing obs
FIELD dummy,          dummy,      int,              extra space

# change this table eventually to a temp name and provide a script to fix existing DBs
