def combine_receiver_and_category_weights(rec_weights, cat_weights):
    """
    Combine weights for receiver weighting and category weighting
    """
    weights = {}
    for period, period_info in rec_weights.items():
        weights[period] = {}
        for comp, comp_info in period_info.items():
            for chan_id in comp_info:
                rec_weight = comp_info[chan_id]
                cat_weight = cat_weights[period][comp]
                _weight = {'receiver': rec_weight, 'category': cat_weight}
                _weight['weight'] = rec_weight * cat_weight
                weights[period][chan_id] = _weight
    return weights
