Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis task for line plot of zonal means #451

Open
kevinrosa opened this issue Aug 1, 2018 · 0 comments
Open

Analysis task for line plot of zonal means #451

kevinrosa opened this issue Aug 1, 2018 · 0 comments

Comments

@kevinrosa
Copy link
Contributor

This is a reminder about adding the ability to plot zonal means of fields such as SST, EKE, etc.

If the field has already been remapped by MPAS-Analysis, this task is trivial:

# open remapped MPAS:
fname = 'clim/mpas/remapped/eke_oQU15_to_0.5x0.5degree/mpaso_ANN_000101_000112_climo.nc'
qu15 = xr.open_dataset(fname)

# open remapped observations:
fname = 'clim/obs/remapped/eke_0.25x0.25degree_to_0.5x0.5degree_ANN.nc'
obs = xr.open_dataset(fname)

plt.plot(obs.latitude, obs.eke.mean(dim='longitude').squeeze(),'k')
plt.plot(qu15.lat, qu15.eke.mean(dim='lon').squeeze(), 'r')

plt.gca().legend(('Observations','QU15'))
plt.xlabel('Latitude ($^o$ N)')
plt.ylabel('EKE (cm$^2$/s$^2$)')

eke_zonal_mean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants