def rename_coords_to_lon_and_lat(ds):
    """ Rename Dataset spatial coord names to:
        lat, lon
    """
    if 'latitude' in ds.coords:
        ds = ds.rename({'latitude': 'lat'})
    if 'longitude' in ds.coords:
        ds = ds.rename({'longitude': 'lon'})
    elif 'long' in ds.coords:
        ds = ds.rename({'long': 'lon'})

    if 'z' in ds.coords:
        ds = ds.drop('z').squeeze()

    return ds