def theta_from_theta_v(data, units, notation=None, return_full_df=True,
    inplace_units=True):
    """Calculates thermodynamic temperature from virtual temperature measurements

    :math:`theta_v \\approx theta (1 + 0.61 q)`

    Parameters
    ----------
    data: pandas.dataframe
        dataset
    units: dict
        units dictionary
    notation: pymicra.Notation

    Returns
    -------
    pandas.DataFrame or Series
        virtual temperature
    """
    from . import algs
    defs = algs.get_notation(notation)
    data = data.copy()
    theta = data[defs.virtual_temp] / (1.0 + 0.61 * data[defs.
        specific_humidity])
    theta_unit = units[defs.virtual_temp]
    if return_full_df:
        data.loc[:, (defs.thermodyn_temp)] = theta
        out = data
    else:
        out = theta
    if inplace_units:
        units.update({defs.thermodyn_temp: theta_unit})
    else:
        out = out, theta_unit
    return out
