In this example we work through the following steps:
1. Import the cf package.
import cf
2. Read a field from disk and find a summary of its contents.
f = cf.read('cru_1D_yearly.nc')
f
print f
3. Import the cfplot package.
%matplotlib inline
import cfplot as cfp
4. Make a lineplot of the field.
cfp.lineplot(f)
5. Read in a second field and find a summary of its contents.
g = cf.read('cru_1D_monthly.nc')
g
print g
6. Make a lineplot of the field.
cfp.lineplot(g)
7. Regrid the first field to the grid of the second and summarize the resulting field.
h = f.regridc(g, axes='T', method='bilinear')
h
print h
8. Make a lineplot of the resulting field.
cfp.lineplot(h)