def _product_type(ensemble=False, period='hourly', synoptic=False,
    statistics=False):
    """Construct the product type name from the options."""
    producttype = ''
    if ensemble:
        producttype += 'ensemble_members'
    elif not ensemble:
        producttype += 'reanalysis'
    if period == 'monthly':
        producttype = 'monthly_averaged_' + producttype
        if synoptic:
            producttype += '_by_hour_of_day'
    elif period == 'hourly':
        if ensemble and statistics:
            producttype = ['ensemble_members', 'ensemble_mean',
                'ensemble_spread']
    return producttype
