[ncl-talk] overlay standardized Geopotential height

Buzan, Jonathan jbuzan at purdue.edu
Wed Jul 7 23:45:30 MDT 2021


Hi Adam,

Yes, I have plotted the PI_Z_rmMean array. I have one set of plots that are the absolute standardized Geopotential heights. The second set are comparisons. I want to overlay the general pattern PI_Z_rmMean onto other plots, which is why I was creating another array with restricted values. To keep the plot from getting messy, I only want to plot 1 contour positive and 1 contour negative.

I think changing:
 res1 at cnLevels =  (/-160.,-80.,80.,160./) ; Diffs
 res1 at cnLevels =  (/-80.,0.,80./) ; Diffs

Would fix that?

Cheers,
-Jonathan



On Jul 8, 2021, at 12:29 AM, Adam Phillips <asphilli at ucar.edu<mailto:asphilli at ucar.edu>> wrote:

Hi Jonathan,
I wouldn't worry about the "Contour from -160 to 160 by 106.7" label so much. I would think that the cnInfoLabelOn  resource would default to False when you are setting ExplicitLevels.  Otherwise, assuming you are setting gsnDraw/gsnFrame to False in each resource list (res and res1) I don't see anything wrong with what you are doing. Did you mean to plot the PI_Z_rmMean array as opposed to your PI_Z_rmMean_contrained array?
Adam

On Wed, Jul 7, 2021 at 8:20 AM Buzan, Jonathan via ncl-talk <ncl-talk at mailman.ucar.edu<mailto:ncl-talk at mailman.ucar.edu>> wrote:
Hi NCL-Talk,

I am attempting to overlay contours of standardized Geopotential height over changes in standardized Geopotential height. All I want to have in the overlay is a zone of positive and a zone of negative values. But I am having trouble understand how this is working. Especially since the contour intervals do not make sense (in the example below).

Cheers,
-Jonathan


Code snippets.
; generate positive and negative zone
PI_Z_rmMean_contrained = PI_Z_rmMean
PI_Z_rmMean_contrained = where(PI_Z_rmMean.ge.80..or.PI_Z_rmMean.lt.-80.,PI_Z_rmMean,PI_Z_rmMean at _FillValue)

     res1 at cnLevelSelectionMode = "ExplicitLevels"
     res1 at cnLevels =  (/-160.,-80.,80.,160./) ; Diffs
     res1 at gsnContourNegLineDashPattern = 1       ; sets negative contours to dash pattern 1
     res1 at cnLineThicknessF = 1.

     plotPI = gsn_csm_contour(wks,PI_Z_rmMean(0,0,:,:),res1)

    plotLGMvsPI = gsn_csm_contour_map(wks,LGM100_vs_PI(0,0,:,:),res)
    overlay(plotLGMvsPI,plotPI)
    plotTemp(0) = plotLGMvsPI
<Screen Shot 2021-07-07 at 4.18.42 PM.png>
_______________________________________________
ncl-talk mailing list
ncl-talk at mailman.ucar.edu<mailto:ncl-talk at mailman.ucar.edu>
List instructions, subscriber options, unsubscribe:
https://mailman.ucar.edu/mailman/listinfo/ncl-talk


--
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/<http://www.cgd.ucar.edu/staff/asphilli/>   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210708/365c0bb7/attachment.html>


More information about the ncl-talk mailing list