def mag2Jy(info_dict, Mag):
    """Converts a magnitude into flux density in Jy

    Parameters
    -----------
    info_dict: dictionary

    Mag: array or float
        AB or vega magnitude

    Returns
    -------
    fluxJy: array or float
        flux density in Jy

    """

    fluxJy = info_dict["Flux_zero_Jy"] * 10 ** (-0.4 * Mag)

    return fluxJy