def format_index_raw(data):
tz_raw = data.columns[<NUM_LIT:3>]<EOL>timezone = TZ_MAP.get(tz_raw, tz_raw)<EOL>year = data.Year.apply(str)<EOL>jday = data.DOY.apply(lambda x: '<STR_LIT>'.format(x))<EOL>time = data[tz_raw].apply(lambda x: '<STR_LIT>'.format(x))<EOL>index = pd.to_datetime(year + jday + time, format="<STR_LIT>")<EOL>data = data.set_index(index)<EOL>data = data.tz_localize(timezone)<EOL>return data<EOL>
Create DatetimeIndex for the Dataframe localized to the timezone provided
    as the label of the third column.

    Parameters
    ----------
    data: Dataframe
        Must contain columns 'Year' and 'DOY'. Timezone must be found as the
        label of the third (time) column.

    Returns
    -------
    data: Dataframe
        The data with a Datetime index localized to the provided timezone.