Specific Models#

Data from many commonly-used earth system or ocean models wil be handled natively by cf-plot cf-python, with no need to process or coerce the underlying grid or metadata in any special way. Some examples are given below.

NEMO data#

Example 44: NEMO data on a curvilinear T grid#

Making a global and close-up contour plot of NEMO data defined on a curvilinear T grid, shown on a single figure#
fl = cf.read(f"cfplot_data/nemo_eg260916.nc")
f = fl[0].squeeze()

cfp.gopen(rows=2, columns=1, bottom=0.2)
cfp.cscale("precip2_17lev")
cfp.gpos(1)
cfp.con(
    f, colorbar=None, lines=False,
    title=(
        "Total precipitation flux at midnight 1979-02-15 highlighted "
        "over the Tropical Indo-Pacific"
    ))
cfp.gpos(2)
cfp.con(
    f.subspace(
        X=cf.wi(120, 180), Y=cf.wi(-25, 5)),
    lines=False,
)
cfp.gclose()
_images/ref_fig_nemo1.png

WRF data#

Note

For the next version, new examples will be added to cover WRF output.

Example 43: CF-compliant WRF model output data#

Note this example is being revamped, and will appear in future documentation.