import xray
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
ds = xray.open_mfdataset('/DATA/*/*Temp.nc')
ds_variable=ds['Temp']
yearlymean=ds_variable.resample('1MS', dim='time', how='mean')
clim = yearlymean.groupby('time.month').mean('time')
anom = yearlymean - clim
meananom=anom.groupby('time').mean()
meananom.to_pandas().plot(kind='bar')
plt.show()
print "indexes:", meananom.indexes
print "values:", meananom.values
print "time (3 cases):", meananom.time[1:4]
ax.xaxis.set_major_formatter(matplotlib.dates.DateFormatter('%m %d %Y'))
--
You received this message because you are subscribed to the Google Groups "PyData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydata+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.