def get_unit_info(units):
    """Read in split file name and return data variable type (runoff, AET, etc)

        :param units:                Name of file
        :type units:                 list

        :return:                     str; Name of variable

        """

    if units[0] == "q":
        data_type = "Runoff"
    elif units[0] == "avgchflow":
        data_type = "Streamflow"
    elif units[0] == "aet":
        data_type = "Actual ET"
    elif units[0] == "pet":
        data_type = "Potential ET"
    else:
        data_type = "unknown"

    return data_type