I am generating a topography map in Python using the oceansdb module and Plotly. This map however shows a rough interpretation of the topography and I am wondering how I can smooth the map in between points?
This is the code I have tried:
import plotly.graph_objects as go
import oceansdb
import numpy as np
from scipy.interpolate import griddata
Xa = np.linspace(29.005,29.405,200)
Ya = np.linspace(-93.6683,-93.2683,200)
db = oceansdb.ETOPO()
dcont = db['topography'].extract(lat=Xa, lon=Ya)
depth = dcont['height']
fig = go.Figure(data=[go.Surface(z=depth, x=Xa, y=Ya)])
fig.show()
I have tried scipy.interpolate.griddata to smooth the plot, but nothing changes in the plot.