Commit 46855252 authored by Kennedy, Joseph H's avatar Kennedy, Joseph H
Browse files

Merge branch 'kevans32/val_v1' into develop

* kevans32/val_v1:
  updated plots for better color schemes
parents 3569029d 31046b4f
......@@ -63,8 +63,8 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
cmap = ["grey98","grey94","grey90","grey86","grey80","grey74","grey68","grey60","grey52","grey44","grey36"]
wkres = Ngl.Resources()
wkres.wkColorMap = "BlueWhiteOrangeRed"
# wkres.wkOrientation = "portrait"
wks_type = "png"
wks_img = str(os.path.join(out_path, 'CESM_cldhgh_ANN'))
......@@ -93,6 +93,7 @@ def make_plot(config, out_path='.'):
# --- for the CESM contour -------
res1 = Ngl.Resources()
res1.cnFillPalette = "percent_11lev"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -111,6 +112,7 @@ def make_plot(config, out_path='.'):
# --- for the data contour -------
res2 = Ngl.Resources()
res2.cnFillPalette = "percent_11lev"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -130,6 +132,7 @@ def make_plot(config, out_path='.'):
# --- for the data contour -------
res3 = Ngl.Resources()
res3.cnFillPalette = "percent_11lev"
res3.nglDraw = False # Don't draw individual plots
res3.nglFrame = False # Don't advance frame.
res3.cnLineLabelsOn = False
......
......@@ -63,9 +63,8 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
#cmap = ["grey98","grey94","grey90","grey86","grey80","grey74","grey68","grey60","grey52","grey44","grey36"]
wkres = Ngl.Resources()
# wkres.wkColorMap = "WhiteBlueGreenYellowRed"
wkres.wkColorMap = "BlueWhiteOrangeRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CESM_cldlow_ANN"))
......@@ -93,6 +92,7 @@ def make_plot(config, out_path='.'):
# --- for the CESM contour -------
res1 = Ngl.Resources()
res1.cnFillPalette = "percent_11lev"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -111,6 +111,7 @@ def make_plot(config, out_path='.'):
# --- for the data contour -------
res2 = Ngl.Resources()
res2.cnFillPalette = "percent_11lev"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -130,6 +131,7 @@ def make_plot(config, out_path='.'):
# --- for the data contour -------
res3 = Ngl.Resources()
res3.cnFillPalette = "percent_11lev"
res3.nglDraw = False # Don't draw individual plots
res3.nglFrame = False # Don't advance frame.
res3.cnLineLabelsOn = False
......
......@@ -63,9 +63,8 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
cmap = ["grey98","grey94","grey90","grey86","grey80","grey74","grey68","grey60","grey52","grey44","grey36"]
wkres = Ngl.Resources()
# wkres.wkColorMap = "WhiteBlueGreenYellowRed"
wkres.wkColorMap = "BlueWhiteOrangeRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CESM_cldtot_ANN"))
......@@ -93,6 +92,7 @@ def make_plot(config, out_path='.'):
# --- for the CESM contour -------
res1 = Ngl.Resources()
res1.cnFillPalette = "percent_11lev"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -111,6 +111,7 @@ def make_plot(config, out_path='.'):
# --- for the data contour -------
res2 = Ngl.Resources()
res2.cnFillPalette = "percent_11lev"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -130,6 +131,7 @@ def make_plot(config, out_path='.'):
# --- for the data contour -------
res3 = Ngl.Resources()
res3.cnFillPalette = "percent_11lev"
res3.nglDraw = False # Don't draw individual plots
res3.nglFrame = False # Don't advance frame.
res3.cnLineLabelsOn = False
......
......@@ -60,7 +60,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
wkres.wkColorMap = "WhiteBlueGreenYellowRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CISMA_js"))
......@@ -89,6 +88,7 @@ def make_plot(config, out_path='.'):
# --- for the file1 contour -------
res1 = Ngl.Resources()
res1.cnFillPalette = "WhiteYellowOrangeRed"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -109,6 +109,7 @@ def make_plot(config, out_path='.'):
# --- for the file2 contour -------
res2 = Ngl.Resources()
res2.cnFillPalette = "WhiteYellowOrangeRed"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -129,6 +130,7 @@ def make_plot(config, out_path='.'):
# --- for diff=file1-file2 contour -------
res22 = Ngl.Resources()
res22.cnFillPalette = "BlueWhiteOrangeRed"
res22.nglDraw = False # Don't draw individual plots
res22.nglFrame = False # Don't advance frame.
res22.cnLineLabelsOn = False
......@@ -138,7 +140,7 @@ def make_plot(config, out_path='.'):
res22.cnFillMode = "RasterFill"
res22.trGridType = "TriangularMesh"
res22.cnLevelSelectionMode = "ExplicitLevels"
res22.cnLevels = (0, 1, 2, 10, 30, 70, 100, 200, 500, 1000, 2000)
res22.cnLevels = (-500,-200,-100,-75,-50,-10,0,10,50,75,100,200,500)
res22.lbLabelBarOn = True # Turn on labelbar.
res22.lbOrientation = "Horizontal" # Verticle labelbar
res22.lbLabelFontHeightF = 0.02 # Make fonts smaller.
......
......@@ -60,7 +60,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
wkres.wkColorMap = "WhiteBlueGreenYellowRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CISMA_pm"))
......@@ -89,6 +88,7 @@ def make_plot(config, out_path='.'):
# --- for the file1 contour -------
res1 = Ngl.Resources()
res1.cnFillPalette = "WhiteYellowOrangeRed"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -109,6 +109,7 @@ def make_plot(config, out_path='.'):
# --- for the file2 contour -------
res2 = Ngl.Resources()
res2.cnFillPalette = "WhiteYellowOrangeRed"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -129,6 +130,7 @@ def make_plot(config, out_path='.'):
# --- for diff=file1-file2 contour -------
res22 = Ngl.Resources()
res22.cnFillPalette = "BlueWhiteOrangeRed"
res22.nglDraw = False # Don't draw individual plots
res22.nglFrame = False # Don't advance frame.
res22.cnLineLabelsOn = False
......@@ -138,7 +140,7 @@ def make_plot(config, out_path='.'):
res22.cnFillMode = "RasterFill"
res22.trGridType = "TriangularMesh"
res22.cnLevelSelectionMode = "ExplicitLevels"
res22.cnLevels = (0, 1, 2, 10, 30, 70, 100, 200, 500, 1000, 2000)
res22.cnLevels = (-500,-200,-100,-75,-50,-10,0,10,50,75,100,200,500)
res22.lbLabelBarOn = True # Turn on labelbar.
res22.lbOrientation = "Horizontal" # Verticle labelbar
res22.lbLabelFontHeightF = 0.02 # Make fonts smaller.
......
......@@ -81,7 +81,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
wkres.wkColorMap = "WhiteBlueGreenYellowRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CISMA_RACMO23"))
......@@ -110,6 +109,7 @@ def make_plot(config, out_path='.'):
# --- for the file1 contour -------
res1 = Ngl.Resources()
res1.cnFillPalette = "BlueWhiteOrangeRed"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -132,6 +132,7 @@ def make_plot(config, out_path='.'):
# --- for the file2 contour -------
res2 = Ngl.Resources()
res2.cnFillPalette = "BlueWhiteOrangeRed"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -154,6 +155,7 @@ def make_plot(config, out_path='.'):
# --- for diff=file1-file2 contour -------
res22 = Ngl.Resources()
res22.cnFillPalette = "BlueWhiteOrangeRed"
res22.nglDraw = False # Don't draw individual plots
res22.nglFrame = False # Don't advance frame.
res22.cnLineLabelsOn = False
......
......@@ -46,7 +46,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
wkres.wkColorMap = "WhiteBlueGreenYellowRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CISMA_temp"))
......@@ -75,6 +74,7 @@ def make_plot(config, out_path='.'):
# --- for the file1 contour -------
res1 = Ngl.Resources()
res1.cnFillPalette = "WhiteBlue"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -95,6 +95,7 @@ def make_plot(config, out_path='.'):
# --- for the file2 contour -------
res2 = Ngl.Resources()
res2.cnFillPalette = "WhiteBlue"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -115,6 +116,7 @@ def make_plot(config, out_path='.'):
# --- for diff=file1-file2 contour -------
res22 = Ngl.Resources()
res22.cnFillPalette = "BlueWhiteOrangeRed"
res22.nglDraw = False # Don't draw individual plots
res22.nglFrame = False # Don't advance frame.
res22.cnLineLabelsOn = False
......
......@@ -59,7 +59,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
wkres.wkColorMap = "WhiteBlueGreenYellowRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CISMA_velnorm"))
......@@ -88,6 +87,7 @@ def make_plot(config, out_path='.'):
# --- for the file1 contour -------
res1 = Ngl.Resources()
res1.cnFillPalette = "WhiteYellowOrangeRed"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -108,6 +108,7 @@ def make_plot(config, out_path='.'):
# --- for the file2 contour -------
res2 = Ngl.Resources()
res2.cnFillPalette = "WhiteYellowOrangeRed"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -128,6 +129,7 @@ def make_plot(config, out_path='.'):
# --- for diff=file1-file2 contour -------
res22 = Ngl.Resources()
res22.cnFillPalette = "BlueWhiteOrangeRed"
res22.nglDraw = False # Don't draw individual plots
res22.nglFrame = False # Don't advance frame.
res22.cnLineLabelsOn = False
......@@ -137,7 +139,7 @@ def make_plot(config, out_path='.'):
res22.cnFillMode = "RasterFill"
res22.trGridType = "TriangularMesh"
res22.cnLevelSelectionMode = "ExplicitLevels"
res22.cnLevels = (0, 1, 2, 10, 30, 70, 100, 200, 500, 1000, 2000)
res22.cnLevels = (-500,-200,-100,-75,-50,-10,0,10,50,75,100,200,500)
res22.lbLabelBarOn = True # Turn on labelbar.
res22.lbOrientation = "Horizontal" # Verticle labelbar
res22.lbLabelFontHeightF = 0.02 # Make fonts smaller.
......
......@@ -60,7 +60,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
wkres.wkColorMap = "WhiteBlueGreenYellowRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CISMA_zach"))
......@@ -89,6 +88,7 @@ def make_plot(config, out_path='.'):
# --- for the file1 contour -------
res1 = Ngl.Resources()
res1.cnFillPalette = "WhiteYellowOrangeRed"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -109,6 +109,7 @@ def make_plot(config, out_path='.'):
# --- for the file2 contour -------
res2 = Ngl.Resources()
res2.cnFillPalette = "WhiteYellowOrangeRed"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -129,6 +130,7 @@ def make_plot(config, out_path='.'):
# --- for diff=file1-file2 contour -------
res22 = Ngl.Resources()
res22.cnFillPalette = "BlueWhiteOrangeRed"
res22.nglDraw = False # Don't draw individual plots
res22.nglFrame = False # Don't advance frame.
res22.cnLineLabelsOn = False
......@@ -138,7 +140,7 @@ def make_plot(config, out_path='.'):
res22.cnFillMode = "RasterFill"
res22.trGridType = "TriangularMesh"
res22.cnLevelSelectionMode = "ExplicitLevels"
res22.cnLevels = (0, 1, 2, 10, 30, 70, 100, 200, 500, 1000, 2000)
res22.cnLevels = (-500,-200,-100,-75,-50,-10,0,10,50,75,100,200,500)
res22.lbLabelBarOn = True # Turn on labelbar.
res22.lbOrientation = "Horizontal" # Verticle labelbar
res22.lbLabelFontHeightF = 0.02 # Make fonts smaller.
......
......@@ -90,8 +90,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
# wkres.wkColorMap = "matlab_jet"
wkres.wkColorMap = "BlueWhiteOrangeRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CESM_RACMO23_albedo_JJA"))
......@@ -119,6 +117,7 @@ def make_plot(config, out_path='.'):
# --- for the albedo contour of CESM -------
res1 = Ngl.Resources()
res1.cnFillPalette = "WhiteYellowOrangeRed"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -136,6 +135,7 @@ def make_plot(config, out_path='.'):
# --- for the albedo contour of RACMO -------
res2 = Ngl.Resources()
res2.cnFillPalette = "WhiteYellowOrangeRed"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -154,6 +154,7 @@ def make_plot(config, out_path='.'):
# --- for the albedo contour of CESM-RACMO -------
res3 = Ngl.Resources()
res3.cnFillPalette = "BlueWhiteOrangeRed"
res3.nglDraw = False # Don't draw individual plots
res3.nglFrame = False # Don't advance frame.
res3.cnLineLabelsOn = False
......@@ -162,7 +163,7 @@ def make_plot(config, out_path='.'):
res3.cnLineLabelsOn = False
res3.cnFillMode = "RasterFill"
res3.cnLevelSelectionMode = "ExplicitLevels"
res3.cnLevels = [-0.2, -0.1, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6]
res3.cnLevels = [-0.6, -0.5, -0.4, -0.3, -0.2, -0.1, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6]
res3.lbLabelBarOn = True # Turn on labelbar.
res3.lbOrientation = "Vertical" # Verticle labelbar
res3.lbLabelFontHeightF = 0.04 # Make fonts smaller.
......
......@@ -90,8 +90,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
# wkres.wkColorMap = "matlab_jet"
wkres.wkColorMap = "BlueWhiteOrangeRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CESM_RACMO23_latf_JJA"))
......@@ -119,6 +117,7 @@ def make_plot(config, out_path='.'):
# --- for the latf contour of CESM -------
res1 = Ngl.Resources()
res1.cnFillPalette = "WhiteBlue"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -127,7 +126,7 @@ def make_plot(config, out_path='.'):
res1.cnLineLabelsOn = False
res1.cnFillMode = "RasterFill"
res1.cnLevelSelectionMode = "ExplicitLevels"
res1.cnLevels = np.arange(-30, 10, 5)
res1.cnLevels = np.arange(-30, 0, 5)
res1.lbLabelBarOn = True # Turn on labelbar.
res1.lbLabelFontHeightF = 0.04
# res1.pmLabelBarOrthogonalPosF = -0.05
......@@ -137,6 +136,7 @@ def make_plot(config, out_path='.'):
# --- for the latf contour of RACMO -------
res2 = Ngl.Resources()
res2.cnFillPalette = "WhiteBlue"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -145,7 +145,7 @@ def make_plot(config, out_path='.'):
res2.cnLineLabelsOn = False
res2.cnFillMode = "RasterFill"
res2.cnLevelSelectionMode = "ExplicitLevels"
res2.cnLevels = np.arange(-30, 10, 5)
res2.cnLevels = np.arange(-30, 0, 5)
res2.lbLabelBarOn = True # Turn on labelbar.
res2.lbOrientation = "Vertical" # Verticle labelbar
res2.lbLabelFontHeightF = 0.04 # Make fonts smaller.
......@@ -155,6 +155,7 @@ def make_plot(config, out_path='.'):
# --- for the latf contour of CESM-RACMO -------
res3 = Ngl.Resources()
res3.cnFillPalette = "BlueWhiteOrangeRed"
res3.nglDraw = False # Don't draw individual plots
res3.nglFrame = False # Don't advance frame.
res3.cnLineLabelsOn = False
......@@ -163,7 +164,7 @@ def make_plot(config, out_path='.'):
res3.cnLineLabelsOn = False
res3.cnFillMode = "RasterFill"
res3.cnLevelSelectionMode = "ExplicitLevels"
res3.cnLevels = np.arange(-30, 20, 5)
res3.cnLevels = np.arange(-30, 30, 5)
res3.lbLabelBarOn = True # Turn on labelbar.
res3.lbOrientation = "Vertical" # Verticle labelbar
res3.lbLabelFontHeightF = 0.03 # Make fonts smaller.
......
......@@ -88,8 +88,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
# wkres.wkColorMap = "matlab_jet"
wkres.wkColorMap = "BlueWhiteOrangeRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CESM_RACMO23_lwsd_JJA"))
......@@ -117,6 +115,7 @@ def make_plot(config, out_path='.'):
# --- for the lwsd contour of CESM -------
res1 = Ngl.Resources()
res1.cnFillPalette = "WhiteYellowOrangeRed"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -135,6 +134,7 @@ def make_plot(config, out_path='.'):
# --- for the lwsd contour of RACMO -------
res2 = Ngl.Resources()
res2.cnFillPalette = "WhiteYellowOrangeRed"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -156,6 +156,7 @@ def make_plot(config, out_path='.'):
# --- for the lwsd contour of CESM-RACMO -------
res3 = Ngl.Resources()
res3.cnFillPalette = "BlueWhiteOrangeRed"
res3.nglDraw = False # Don't draw individual plots
res3.nglFrame = False # Don't advance frame.
res3.cnLineLabelsOn = False
......
......@@ -96,9 +96,8 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
cmap = ["grey98","grey94","grey90","grey86","grey80","grey74","grey68","grey60","grey52","grey44","grey36"]
wkres = Ngl.Resources()
# wkres.wkColorMap = "matlab_jet"
wkres.wkColorMap = "BlueWhiteOrangeRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CESM_RACMO23_lwsn_JJA"))
......@@ -126,6 +125,7 @@ def make_plot(config, out_path='.'):
# --- for the lwsn contour of CESM -------
res1 = Ngl.Resources()
res1.cnFillPalette = "WhiteBlue"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -144,6 +144,7 @@ def make_plot(config, out_path='.'):
# --- for the lwsn contour of RACMO -------
res2 = Ngl.Resources()
res2.cnFillPalette = "WhiteBlue"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -165,6 +166,7 @@ def make_plot(config, out_path='.'):
# --- for the lwsn contour of CESM-RACMO -------
res3 = Ngl.Resources()
res3.cnFillPalette = "BlueWhiteOrangeRed"
res3.nglDraw = False # Don't draw individual plots
res3.nglFrame = False # Don't advance frame.
res3.cnLineLabelsOn = False
......
......@@ -106,8 +106,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
# wkres.wkColorMap = "matlab_jet"
wkres.wkColorMap = "BlueWhiteOrangeRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CESM_RACMO23_rnet_JJA"))
......@@ -135,6 +133,7 @@ def make_plot(config, out_path='.'):
# --- for the rnet contour of CESM -------
res1 = Ngl.Resources()
res1.cnFillPalette = "BlueWhiteOrangeRed"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -143,7 +142,8 @@ def make_plot(config, out_path='.'):
res1.cnLineLabelsOn = False
res1.cnFillMode = "RasterFill"
res1.cnLevelSelectionMode = "ExplicitLevels"
res1.cnLevels = np.arange(-20, 100, 20)
# res1.cnLevels = np.arange(-20, 100, 20)
res1.cnLevels = np.arange(-100, 100, 20)
res1.lbLabelBarOn = True # Turn on labelbar.
res1.lbLabelFontHeightF = 0.04
# res1.pmLabelBarOrthogonalPosF = -0.05
......@@ -153,6 +153,7 @@ def make_plot(config, out_path='.'):
# --- for the rnet contour of RACMO -------
res2 = Ngl.Resources()
res2.cnFillPalette = "BlueWhiteOrangeRed"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -161,7 +162,8 @@ def make_plot(config, out_path='.'):
res2.cnLineLabelsOn = False
res2.cnFillMode = "RasterFill"
res2.cnLevelSelectionMode = "ExplicitLevels"
res2.cnLevels = np.arange(-20, 100, 20)
# res2.cnLevels = np.arange(-20, 100, 20)
res2.cnLevels = np.arange(-100, 100, 20)
res2.lbLabelBarOn = True # Turn on labelbar.
res2.lbOrientation = "Vertical" # Verticle labelbar
# res2.pmLabelBarHeightF = 0.5 # Change height of labelbar
......@@ -174,6 +176,7 @@ def make_plot(config, out_path='.'):
# --- for the rnet contour of CESM-RACMO -------
res3 = Ngl.Resources()
res3.cnFillPalette = "BlueWhiteOrangeRed"
res3.nglDraw = False # Don't draw individual plots
res3.nglFrame = False # Don't advance frame.
res3.cnLineLabelsOn = False
......@@ -182,7 +185,8 @@ def make_plot(config, out_path='.'):
res3.cnLineLabelsOn = False
res3.cnFillMode = "RasterFill"
res3.cnLevelSelectionMode = "ExplicitLevels"
res3.cnLevels = np.arange(-80, 40, 20)
# res3.cnLevels = np.arange(-80, 40, 20)
res3.cnLevels = np.arange(-80, 80, 20)
res3.lbLabelBarOn = True # Turn on labelbar.
res3.lbOrientation = "Vertical" # Verticle labelbar
res3.lbLabelFontHeightF = 0.04 # Make fonts smaller.
......
......@@ -93,8 +93,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
# wkres.wkColorMap = "matlab_jet"
wkres.wkColorMap = "BlueWhiteOrangeRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CESM_RACMO23_senf_JJA"))
......@@ -122,6 +120,7 @@ def make_plot(config, out_path='.'):
# --- for the senf contour of CESM -------
res1 = Ngl.Resources()
res1.cnFillPalette = "BlueWhiteOrangeRed"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -139,6 +138,7 @@ def make_plot(config, out_path='.'):
# --- for the senf contour of RACMO -------
res2 = Ngl.Resources()
res2.cnFillPalette = "BlueWhiteOrangeRed"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -157,6 +157,7 @@ def make_plot(config, out_path='.'):
# --- for the senf contour of CESM-RACMO -------
res3 = Ngl.Resources()
res3.cnFillPalette = "BlueWhiteOrangeRed"
res3.nglDraw = False # Don't draw individual plots
res3.nglFrame = False # Don't advance frame.
res3.cnLineLabelsOn = False
......
......@@ -89,8 +89,6 @@ def make_plot(config, out_path='.'):
# ------- PLOT --------
# Open a workstation for drawing the plots
wkres = Ngl.Resources()
# wkres.wkColorMap = "matlab_jet"
wkres.wkColorMap = "BlueWhiteOrangeRed"
# wkres.wkOrientation = "portrait" # "portrait" or "landscape"
wks_type = "png"
wks_img = str(os.path.join(out_path, "CESM_RACMO23_swsd_JJA"))
......@@ -118,6 +116,7 @@ def make_plot(config, out_path='.'):
# --- for the swsd contour of CESM -------
res1 = Ngl.Resources()
res1.cnFillPalette = "WhiteYellowOrangeRed"
res1.nglDraw = False # Don't draw individual plots
res1.nglFrame = False # Don't advance frame.
res1.cnLineLabelsOn = False
......@@ -136,6 +135,7 @@ def make_plot(config, out_path='.'):
# --- for the swsd contour of RACMO -------
res2 = Ngl.Resources()
res2.cnFillPalette = "WhiteYellowOrangeRed"
res2.nglDraw = False # Don't draw individual plots
res2.nglFrame = False # Don't advance frame.
res2.cnLineLabelsOn = False
......@@ -154,6 +154,7 @@ def make_plot(config, out_path='.'):