def add_fformat_metadata(info, fformat, obj_info):
    """Add metadata to *info* dict based on the file format *fformat*"""
    if fformat not in ['NetCDF4', 'HDF5', 'TIFF']:
        info['format'] = 'raster'
        info['data_processing_level'] = '2'
        info['product_name'] = obj_info['product_name']
    elif fformat == 'TIFF':
        info['format'] = 'GeoTIFF'
        info['data_processing_level'] = '2'
        info['product_name'] = obj_info['product_name']
    elif fformat == 'NetCDF4':
        info['format'] = 'CF'
        info['data_processing_level'] = '1b'
        info['product_name'] = 'dump'
    elif fformat == 'HDF5':
        info['format'] = 'PPS'
        info['data_processing_level'] = '3'
        info['product_name'] = 'cloudproduct'
    return info
