Closed bluesteven closed 5 months ago
@bluesteven : I can't tell from your error message what is going on. The step that errored out is within xarray, so it is possibly some problem with the Sv data.
What do you get by using ds_Sv["Sv"].isel(channel=0).plot(x="ping_time")
?
This command should plot the Sv data of the first channel.
You can also try using matplotlib
just to see if the Sv data would plot without the whistles and bells added by xarray that uses the dimensions.
import matplotlib.pyplot as plt
plt.imshow(ds_Sv["Sv"].isel(channel=0).values) # .values returns a numpy array
Also FYI - we are considering retiring the epviz
subpackage (see #1276).
The visualize
package will be removed as of the upcoming v0.9.0 release. I'll close this after that.
Closed via #1336.
source codes is as following:
I get these information and error