def METHOD_NAME(self, data):
    """Rename coords."""
    rename_dict = {}
    if 'lon' in data.dims:
        data = self._adjust_lon_coord(data)
        rename_dict['lon'] = 'x'
    if 'lat' in data.dims:
        rename_dict['lat'] = 'y'
    # Rename the coordinates to x and y
    return data.rename(rename_dict)