[ncl-talk] colur table issue
Mary Haley
haley at ucar.edu
Fri Apr 21 09:31:40 MDT 2017
Hi Saurabh,
It's a subtle thing, but what's happening is that the gsn_csm_contour_map
function is spanning the full contour plot, and wrf_contour is not.
If you want the color bar to look like the TRMM one, then when you call
wrf_contour, you need to set:
opts at gsnSpreadColors = True
If you want the color bar to look like the WRF one, then when you call
gsn_csm_contour_map you need to set:
res at gsnSpreadColors = False
It's possible that wrf_contour may give you a warning about
gsnSpreadColors. Let me know if this happens.
--Mary
On Fri, Apr 21, 2017 at 5:23 AM, Saurabh Singh <saurabhsingh123op at gmail.com>
wrote:
>
> NCL version 6.4.0
>
> I am using ncl to plot wrf and TRMM output side by side. My contour
> settings are following for TRMM:
>
> res at cnLevelSelectionMode = "ManualLevels"
> res at cnMinLevelValF = 1. ; set the minimum contour level
> res at cnMaxLevelValF = 30. ; set the maximum contour level
> res at cnLevelSpacingF = 2.
> res at cnFillPalette = "precip2_17lev"
> plot(1) = gsn_csm_contour_map(wks,rain3,res)
>
> and for WRF my contour settings are following:
>
> opts at cnLevelSelectionMode = "ManualLevels"
> opts at cnMinLevelValF = 1. ; set the minimum contour level
> opts at cnMaxLevelValF = 30. ; set the maximum contour level
> opts at cnLevelSpacingF = 2.
> ;opts at cnLevels = cl1
> opts at cnFillPalette = "precip2_17lev"
> contour = wrf_contour(b,wks,full(:,:),opts)
> plot(0) = wrf_map_overlays(b,wks,(/contour/),pltres,mpres)
>
>
> However, in my plots, i see a mismatch between the WRF and TRMM contour
> color table. i.e TRMM has an orange for range(23-25) while WRF [image:
> Inline images 1]has yellow for this range. please find the attached plots.
>
> Regards
>
> --
> With regards
> Saurabh Kumar singh
>
> *P** : * *Please consider the environment before printing this e-mail*
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170421/ab43f1ef/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: st1.000002.png
Type: image/png
Size: 269307 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170421/ab43f1ef/attachment-0001.png
More information about the ncl-talk
mailing list