BUNDLE_SIZE	S32	1000       # Number of exposures to bundle together
# BUNDLE_AGE      ?      "2 hours"? # I'd like this to be a way to tell if we can just skip ahead, since the bundle is "old" Don't know how, though.

DECISION.ENGINE METADATA           # Definition of the rules to determine if a given exposure is good or not.
    RULE MULTI
    RULE METADATA
        COLNAME STR FWHM_MAJOR
	MINIMUM F32 0.0
	MAXIMUM F32 5.0
    END
    RULE METADATA
    	COLNAME STR FWHM_MINOR
	MINIMUM F32 0.0
	MAXIMUM F32 5.0
    END
#    TYPE VAL COLNAME      MINIMUM        MAXIMUM
#    RULE VAL FWHM_MAJOR   0.0            5.0
#    RULE VAL FWHM_MINOR   0.0            5.0
END

STATS.COLUMNS METADATA             # Column definitions for what goes into a bundle
    COLUMN MULTI
    TYPE   VAL TABLE            ENTRY             DATATYPE       COLNAME
    COLUMN VAL rawExp           exp_name          PS_DATA_STRING EXPNAME             # Exposure name
    COLUMN VAL rawExp           dateobs           PS_DATA_TIME   DATEOBS             # Date of observation
    COLUMN VAL rawExp           filter            PS_DATA_STRING FILTER              # Filter used
    COLUMN VAL rawExp           comment           PS_DATA_STRING COMMENT             # Obs comment
    COLUMN VAL rawExp           ra  	          PS_DATA_F64 	 RA                  # Right ascension
    COLUMN VAL rawExp           decl 	          PS_DATA_F64    DEC                 # Declination
    COLUMN VAL rawExp           exp_time          PS_DATA_F32    EXPTIME	     # Exposure time

    COLUMN VAL camProcessedExp  zpt_obs           PS_DATA_F32    ZEROPOINT	     
    COLUMN VAL camProcessedExp  zpt_stdev         PS_DATA_F32    ZEROPOINT_STDEV     
    COLUMN VAL camProcessedExp  zpt_lq            PS_DATA_F32    ZEROPOINT_LQ	     
    COLUMN VAL camProcessedExp  zpt_uq            PS_DATA_F32    ZEROPOINT_UQ	     

    COLUMN VAL camProcessedExp  fwhm_major        PS_DATA_F32    FWHM_MAJOR	     
    COLUMN VAL camProcessedExp  fwhm_major_lq     PS_DATA_F32    FWHM_MAJOR_LQ	     
    COLUMN VAL camProcessedExp  fwhm_major_uq     PS_DATA_F32    FWHM_MAJOR_UQ	     
    COLUMN VAL camProcessedExp  fwhm_minor        PS_DATA_F32    FWHM_MINOR	     
    COLUMN VAL camProcessedExp  fwhm_minor_lq     PS_DATA_F32    FWHM_MINOR_LQ	     
    COLUMN VAL camProcessedExp  fwhm_minor_uq     PS_DATA_F32    FWHM_MINOR_UQ	     

    COLUMN VAL camProcessedExp  iq_fwhm_major     PS_DATA_F32    IQ_FWHM_MAJOR	     
    COLUMN VAL camProcessedExp  iq_fwhm_major_err PS_DATA_F32    IQ_FWHM_MAJOR_ERR   
    COLUMN VAL camProcessedExp  iq_fwhm_minor     PS_DATA_F32    IQ_FWHM_MINOR	     
    COLUMN VAL camProcessedExp  iq_fwhm_minor_err PS_DATA_F32    IQ_FWHM_MINOR_ERR   

    COLUMN VAL camProcessedExp  iq_m2             PS_DATA_F32    IQ_M2		     
    COLUMN VAL camProcessedExp  iq_m2_err         PS_DATA_F32    IQ_M2_ERR	     
    COLUMN VAL camProcessedExp  iq_m2_lq          PS_DATA_F32    IQ_M2_LQ	     
    COLUMN VAL camProcessedExp  iq_m2_uq          PS_DATA_F32    IQ_M2_UQ	     

    COLUMN VAL camProcessedExp  iq_m2c            PS_DATA_F32    IQ_M2C		     
    COLUMN VAL camProcessedExp  iq_m2c_err        PS_DATA_F32    IQ_M2C_ERR	     
    COLUMN VAL camProcessedExp  iq_m2c_lq         PS_DATA_F32    IQ_M2C_LQ	     
    COLUMN VAL camProcessedExp  iq_m2c_uq         PS_DATA_F32    IQ_M2C_UQ	     

    COLUMN VAL camProcessedExp  iq_m2s            PS_DATA_F32    IQ_M2S		     
    COLUMN VAL camProcessedExp  iq_m2s_err        PS_DATA_F32    IQ_M2S_ERR	     
    COLUMN VAL camProcessedExp  iq_m2s_lq         PS_DATA_F32    IQ_M2S_LQ	     
    COLUMN VAL camProcessedExp  iq_m2s_uq         PS_DATA_F32    IQ_M2S_UQ	     

    COLUMN VAL camProcessedExp  iq_m3             PS_DATA_F32    IQ_M3		     
    COLUMN VAL camProcessedExp  iq_m3_err         PS_DATA_F32    IQ_M3_ERR	     
    COLUMN VAL camProcessedExp  iq_m3_lq          PS_DATA_F32    IQ_M3_LQ	     
    COLUMN VAL camProcessedExp  iq_m3_uq          PS_DATA_F32    IQ_M3_UQ	     

    COLUMN VAL camProcessedExp  iq_m4             PS_DATA_F32    IQ_M4		     
    COLUMN VAL camProcessedExp  iq_m4_err         PS_DATA_F32    IQ_M4_ERR	     
    COLUMN VAL camProcessedExp  iq_m4_lq          PS_DATA_F32    IQ_M4_LQ	     
    COLUMN VAL camProcessedExp  iq_m4_uq          PS_DATA_F32    IQ_M4_UQ	     
END

