def get_filetypes2wildcards(filetypes):
    """Returns OrderedDict of filetypes to wildcards

    The filetypes that are provided in the filetypes parameter are checked for
    availability. Only available filetypes are inluded in the return ODict.

    Parameters
    ----------
    filetypes: Iterable of strings
    \tFiletype list

    """

    def is_available(filetype):
        return filetype not in FILETYPE_AVAILABILITY or \
               FILETYPE_AVAILABILITY[filetype]

    available_filetypes = filter(is_available, filetypes)

    return OrderedDict((ft, FILETYPE2WILDCARD[ft])
                       for ft in available_filetypes)