def _getRefYear(file_name):
    """ Read reference year from given file name

    Arguments:
        file_name {str} -- Name of file with DWD reference weather data

    Returns:
        int -- Reference year
    """
    return int(file_name.split('_')[0][-4:])