def add_resize(vstruct, sfraction=1.0):
    """resize data array
    for example array of shape (16,16,16) with sfraction 0.5
    -> shape (8,8,8)

    sfraction : float
        resize data by fraction
    """
    vstruct['transforms'].append({'type': 'resize', 'sfraction': sfraction})
