Re: cnSpanFillPalette in wrf_contour?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Jan 17 2014 - 14:23:18 MST

This has to do with the wrf_* codes.
This should be sent to wrfhelp@ucar.edu [cc'd here]

On 1/17/14, 1:40 PM, A.J. Eiserloh wrote:
> Hi all,
>
> Would anyone happen to know if there is any possible way or workaround to
> use the cnSpanFillPalette resource in wrf_contour() plots? I have NCLv6.1.1
> All my attempts so far have failed. I just want to set contour levels from
> 0 to 30 and have the colormap span those values for my plot. First, I tried
> setting cnLevelSelectionMode to "ManualLevels" and doing it that way but
> that did not work. Second, I tried just individually assigning the colors
> to each level, and that still did not work. From the looks of my bar, it
> seems that it first spans the colormap to the first 15 or 16 boxes or
> levels, then it tries to repeat the colormap over and over. Here is a look
> at my resources for my wrf_contour() plot:
>
>
> opts_ws = opts_xy
> opts_ws@pmLabelBarOrthogonalPosF = -0.185
>
> opts_ws@lbAutoManage = False
> opts_ws@lbLabelOffsetF = 0.02
> opts_ws@lbBoxMinorExtentF = 0.11
> opts_ws@lbLabelFontHeightF = 0.01
> opts_ws@lbTitleFontHeightF = 0.01
> opts_ws@lbTitleExtentF = 0.005
> opts_ws@pmLabelBarOrthogonalPosF = -0.3
> ; opts_ws@lbBoxCount = 64
> opts_ws@lbAutoManage = False
>
> opts_ws@lbTitleOffsetF = -0.7
> opts_ws@lbTitlePosition = "Bottom"
>
> ; opts_ws@cnLevelSelectionMode = "ManualLevels"
> opts_ws@ContourParameters = (/0,30,(30./64.)/)
> ; opts_ws@cnMaxLevelCount = 64
> ; opts_ws@cnMinLevelValF = 0.
> ; opts_ws@cnMaxLevelValF = 30.
> opts_ws@cnFillOn = True
> opts_ws@cnMonoLineColor = True
> opts_ws@cnLineColor = -1
> ; opts_ws@cnSpanFillPalette = True
> opts_ws@cnFillPalette = "matlab_jet" ;64 colors
> ; opts_ws@cnFillColors = ispan(2,65,64)
>
>
> Thanks,
> -A.J.
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jan 17 14:23:24 2014

This archive was generated by hypermail 2.1.8 : Sun Jan 19 2014 - 21:56:35 MST