def get_shapefile_record_name_from_location(shapefile_record_names_df, location):
    """
    Get the shapefile record name for the location given.

    Args:
        shapefile_record_names_df (pandas DataFrame) : dataframe of shapefile record names and the associated locations
        location (str)                               : name of the location

    Returns:
        str: Record name for the location as listed in the shapefiles used.
    """
    return shapefile_record_names_df.loc[shapefile_record_names_df['location'] == location].record_name.values[0]