[ncl-talk] overlay standardized Geopotential height
Adam Phillips
asphilli at ucar.edu
Wed Jul 7 16:29:08 MDT 2021
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> 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@
> _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
> _______________________________________________
> ncl-talk mailing list
> 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/ 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/20210707/0acccd3d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2021-07-07 at 4.18.42 PM.png
Type: image/png
Size: 548611 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210707/0acccd3d/attachment-0001.png>
More information about the ncl-talk
mailing list