<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Huh???</div><div><br></div><div>Using the original and Barry's suggestion [fixed typo] you get the attached.</div><div><br></div><div>There are many more example here ... Please examine carefully.<br></div><div><a href="http://www.ncl.ucar.edu/Applications/HiResPrc.shtml"><b>http://www.ncl.ucar.edu/Applications/HiResPrc.shtml</b></a></div><div><br></div><div>==========================<br></div><div> in1 = addfile("<a href="http://precip.gpcp.mon.mean.nc">precip.gpcp.mon.mean.nc</a>","r")<br> ann1=in1->precip(0,:,:)<br> printVarSummary(ann1)<br> printMinMax(ann1,0)<br>;************************************<br>;create plot<br>;************************************<br> wks = gsn_open_wks("png","test") ; send graphics to PNG file<br> res = True<br> res@cnFillOn = True ; turn on color<br> plot = gsn_csm_contour_map(wks,ann1,res)<br><br>; Barry :ynn's suggestion<br><br> res@cnLevelSelectionMode = "ExplicitLevels"<br> res@cnLevels = (/ 1,5, 10., 15. \<br> , 20, 30,40,50,60/)<br><br> res@cnFillColors = (/"White","White","AntiqueWhite","AntiqueWhite3", \<br> "chartreuse", \<br> "chartreuse3","ForestGreen", \<br> "Yellow","Orange","Red","HotPink3","HotPink1","HotPink","Violet"/)<br> plot = gsn_csm_contour_map(wks,ann1,res)<br><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 10:23 AM S Br <<a href="mailto:sbr.climate@gmail.com">sbr.climate@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Rick,<div>Please find herewith attached the datafile (it is a small file).</div><div>My NCL is 6.4.0.</div><div>My Linux PC is:</div><div>Linux tree17sbr 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux<br></div><div><br></div><div>Thanks.</div><div>S.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 4:35 PM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I doubt it has to do with the version and OS you are using. Are you able to send me your datafile (you can send it directly to me)?</div><div><br></div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 9:23 AM S Br <<a href="mailto:sbr.climate@gmail.com" target="_blank">sbr.climate@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Barry,<div>I tried as you suggested. It still doesn't work. It just plot the contour but doesn't fill with colours.</div><div>I don't know if it is something with the NCL version and the Linux PC I am using.</div><div><br></div><div>Best,</div><div>S.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 1:08 PM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Please try something like this (you can change the intervals). You can also use "ispan" to span intervals and just specify the color table you want to use (without explicitly nameing them).<div><br></div><div>
<p class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>opts_Prec@cnLevelSelectionMode = "</span><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(224,228,9)">Exp</span><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-s1" style="font-variant-ligatures:no-common-ligatures">licitLevels"</span></p>
<p class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>opts_Prec@cnFillOn <span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>= True</span></p>
<p class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>opts_Prec@cnLevels <span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>= (/ 1,5, 10., 15., \</span></p>
<p class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>20, 30,40,50,60/)</span></p>
<p class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>opts_Prec@cnFillColors <span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>= (/"White","White","AntiqueWhite","AntiqueWhite3", \</span></p>
<p class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>"chartreuse", \</span></p>
<p class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>"chartreuse3","ForestGreen", \</span></p>
<p class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:18px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0)"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-Apple-converted-space"> </span>"Yellow","Orange","Red","HotPink3","HotPink1","HotPink","Violet"/)</span></p><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 12:15 PM S Br <<a href="mailto:sbr.climate@gmail.com" target="_blank">sbr.climate@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Barry,</div><div>Thanks for your suggestion. Please find here attached the map. It does plot the contour but couldn't fill with colours.</div><div><br></div><div>Best,</div><div>S.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 10:11 AM Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>Could you please provide the map it is producing.</div><div><br></div><div>Also you should check the min and max of your data.</div><div><br></div><div>printMinMax(Var_name,False)</div><div><br></div><div>and see if they make sense.</div><div><br></div><div>Thank you</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 11:52 AM S Br <<a href="mailto:sbr.climate@gmail.com" target="_blank">sbr.climate@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear User,<div>I am writing a simple script to see the contours filled with colour (res@cnFillOn = True) but it doesn't show any colours. It shows only the contours and colour bar. What could be the probable region?</div><div>I am using NCL V 6.4.0</div><div>My Linux version is:</div><div>Linux tree17sbr 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux<br></div><div><br></div><div>Thanks.</div><div>S</div><div><br></div><div><div>begin</div><div><br></div><div> in1 = addfile("<a href="http://precip.gpcp.mon.mean.nc" target="_blank">precip.gpcp.mon.mean.nc</a>","r")</div><div> ann1=in1->precip(0,:,:)<br></div><div>;************************************</div><div>;create plot</div><div>;************************************</div><div> wks = gsn_open_wks("png","test") ; send graphics to PNG file</div><div> res = True<br></div><div> res@cnFillOn = True ; turn on color</div><div> plot = gsn_csm_contour_map(wks,ann1,res)<br></div><div><br></div><div>end</div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail-m_974965293425853081gmail-m_-8645548090156078907gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>
</blockquote></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-7363410029400177802gmail-m_-8944802305179978001gmail-m_51717523374711394gmail-m_4525724967045064226gmail_signature"><div dir="ltr"><div><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Associate Scientist, Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br><br></div></div></div></div></div>
</blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>