def get_raster(raster_list, y):
    """
    Ensure we pull the appropriate raster for the given year and don't assume a 1:1 relationship
    between items in raster_list and years.
    :param raster_list:
    :param y:
    :return:
    """
    raster = [r for r in raster_list if str(y) in r]

    if len(raster) > 0:

        # Here I'm assuming:
        # 1.  that each file will contain a unique year, and
        # 2.  there is only 1 year in the filename
        return raster[-1]

    else:

        return None