def _parse(filename):
    """Parse reference data filename to extract land cover and year."""
    basename = filename.split('.')[0]
    land_cover, year = basename.split('_')
    year = int(year)
    return land_cover, year