def scale_flux(dataset, V):
    """
    Parameters
    ----------
    dataset : `~h5py.File.dataset`
        h5py dataset of the form ``archive[target]``.
    V : float
        V magnitude of the target of interest.
    """
    template_vmag = dataset.attrs['V'][0]
    magnitude_scaling = 10**(0.4 * (template_vmag - V))
    return magnitude_scaling