[Wrf-users] How to have a more continuous colourbar with ticks that don't become overloaded?
Maxime Colin
m.colin at unsw.edu.au
Tue May 9 19:01:31 MDT 2017
Hi all,
I'm trying to get a map with visually smoother colours. I think it would be nice to increase by a large number the levels used in the gsn_csm_contour function. But at the same time, I still want about 10 ticks maximum on the colourbar. Is there any simple way to do this?
Attached is the map I'm working on (1), and the smoother type of map I'd like to produce with NCL (2).
You can find below an extract of my script.
Thank you very much,
Maxime
-------
; PLOT NUMBER A2
delete(wks)
delete(res)
wks = gsn_open_wks(type,"./movies/plot_olr_big_array_" + data_dir_for_plots + "_num_day_" + num_day_s + "_num_output_" + num_output_s + "_v1")
gsn_define_colormap(wks,"NCV_blu_red")
res = True
res at cnFillOn = True
res at gsnSpreadColors = True
res at cnLineLabelsOn = False
res at lbOrientation = "Vertical"
res at cnLevelSelectionMode = "ManualLevels" ;"AutomaticLevels"
res at cnMaxLevelValF = 280.
res at cnMinLevelValF = 100.
res at cnLevelSpacingF = 20.
res at gsnMaximize = True
res at tiYAxisString = "y (km)"
res at tiXAxisString = "x (km)"
res at tiMainString = "OLR, num_day=" + num_day + ", num_output=" + num_output
res at gsnMaximize = True
plot = gsn_csm_contour(wks,olr_big_array(length_single_file*(num_day-1)+num_output,:,:),res)
-------
Maxime Colin
---------------------------------------------
PhD candidate
Climate Change Research Centre & ARC Centre of Excellence for Climate System Science, UNSW, Australia
and Laboratoire de Météorologie Dynamique, UPMC, France
http://www.ccrc.unsw.edu.au/ccrc-team/students/maxime-colin
http://www.climatescience.org.au/staff/profile/mcolin
---------------------------------------------
+61 (0)421 620 779 / +33 (0)6 25 57 81 93
m.colin at unsw.edu.au / colinmaxime at hotmail.fr<https://www.normalesup.org/phare/squirrelmail/src/compose.php?send_to=maxime.colin%40normalesup.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20170510/096033c6/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot_olr_big_array_0181_1km_res_201km_domain_SST_302K_3D_Smag_turb_num_day_12_num_output_00_v1.png
Type: image/png
Size: 172338 bytes
Desc: plot_olr_big_array_0181_1km_res_201km_domain_SST_302K_3D_Smag_turb_num_day_12_num_output_00_v1.png
Url : http://mailman.ucar.edu/pipermail/wrf-users/attachments/20170510/096033c6/attachment-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OLR_Simu0138_wrfout_2007-06-21_output1.jpg
Type: image/jpeg
Size: 58074 bytes
Desc: OLR_Simu0138_wrfout_2007-06-21_output1.jpg
Url : http://mailman.ucar.edu/pipermail/wrf-users/attachments/20170510/096033c6/attachment-0001.jpg
More information about the Wrf-users
mailing list