def setMedfile(medfile_value):
    """ Copy medfile to a variable that is global for this file.

    Parameters
    ----------
    medfile_value : string
        name of output file for masked median image

    """
    global medfile
    medfile = medfile_value
