Skip to content

Commit 5676a5a

Browse files
Temporary fix for possible cf-plot bug to NH original recipe 16
1 parent 4b255e1 commit 5676a5a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/source/recipes/plot_16_recipe.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
# 2. Read the field in:
2020
# Here I've used sample data ggap.nc (and later pressure=850),
2121
# but you could use tas_A1.nc (with time=15)
22-
f = cf.read("~/cfplot_data/ggap.nc")[0]
22+
PATH = "~/git-repos/cf-plot/cfplot/test/cfplot_data"
23+
f = cf.read(f"{PATH}/ggap.nc")[0]
2324

2425
# %%
2526
# 3. Create the file with subplots:
@@ -36,7 +37,9 @@
3637
# However you could also use other such as "rotated", "ortho" or
3738
# "merc", "ukcp", "osgb", or "EuroPP"
3839
# https://ncas-cms.github.io/cf-plot/build/user_guide.html#appendixc
39-
projtypes = ["cyl", "npstere", "spstere", "moll", "lcc", "robin"]
40+
# TODO SB update second 'cyl' to 'lcc', replaced for now due to possible bug,
41+
# see: https://github.com/NCAS-CMS/cf-plot/issues/75
42+
projtypes = ["cyl", "npstere", "spstere", "moll", "cyl", "robin"]
4043

4144
# %%
4245
# 5. We then use a for loop to cycle through all the different projection

0 commit comments

Comments
 (0)