Skip to content

Instantly share code, notes, and snippets.

@raphaeldussin
Last active December 8, 2020 01:18
Show Gist options
  • Save raphaeldussin/e903d94c603792c65424f9a23e3d2184 to your computer and use it in GitHub Desktop.
Save raphaeldussin/e903d94c603792c65424f9a23e3d2184 to your computer and use it in GitHub Desktop.
plotting a ROMS velocity section with xarray
import matplotlib.pyplot as plt
import cmocean
plt.figure(figsize=[10,8])
CCS2['v'].isel(time=12, yq=500).plot(x='lon_v', y='z_v',
vmin=-0.25, vmax=0.25,
cmap=cmocean.cm.balance,
subplot_kws={'facecolor': 'grey'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment