<div dir="ltr">You might want to look at what some of your vc***** resources are actually doing before using them in this manner. Your comments as to what they do are not all correct.<div><br></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:16px">res@vcMinFracLengthF             =1.0           ; Length of min vector</span><br></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">The above should probably be res@vcMinMagnitudeF.</span></div><div>vcMinFracLengthF, from the documentation:</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13.3333330154419px;line-height:16px">Setting </span><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcMinFracLengthF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333330154419px;line-height:16px" target="_blank"><em style="margin:0px;padding:0px">vcMinFracLengthF</em></a><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13.3333330154419px;line-height:16px"> to the value 1.0 causes all vectors to be drawn with the same length</span><br></div><div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13.3333330154419px;line-height:16px"><br></span></div><div><font color="#000000" face="verdana, sans-serif"><span style="font-size:13.3333330154419px;line-height:16px"><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcMinFracLengthF" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcMinFracLengthF</a></span></font></div><div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13.3333330154419px;line-height:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:13.3333330154419px;line-height:16px"><font face="arial, helvetica, sans-serif">which I&#39;m pretty sure defeats the purpose of plotting data at all.</font></span></div><div><span style="color:rgb(0,0,0);font-size:13.3333330154419px;line-height:16px"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);font-size:13.3333330154419px;line-height:16px"><font face="arial, helvetica, sans-serif">You also set res@vcMinDistanceF = 0.01, which means you&#39;ll likely have every single vector plotted on the domain, and might be what is happening in your first attached image.</font></span></div><div><span style="color:rgb(0,0,0);font-size:13.3333330154419px;line-height:16px"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);font-size:13.3333330154419px;line-height:16px"><font face="arial, helvetica, sans-serif">Since you are setting a handful of resources to values that don&#39;t necessarily make sense, I would suggest setting only ONE resource out of your vector resource settings and seeing what the default plot the NCL produces looks like. This might be much better than what you have changed it to.</font></span></div><div><br></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">res@vcGlyphStyle                 =&quot;CurlyVector&quot;</span><span style="color:rgb(0,0,0);font-size:13.3333330154419px;line-height:16px"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif"><br></span></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif"><b>However</b>, none of what I&#39;ve written above is particularly relevant or really matters because </span><span style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">your entire script in its current form is essentially a waste of code. You MUST actually use the &#39;res&#39; variable (with all your resources settings attached) in your plot! Your line </span></div><div><span style="color:rgb(0,0,0);font-size:13.3333330154419px;line-height:16px"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:16px">plot  = gsn_csm_vector_map(wks,Uwind,</span><span style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:16px">Vwind,True)</span><span style="color:rgb(0,0,0);font-size:13.3333330154419px;line-height:16px"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:16px"><br></span></div><div><font color="#000000" face="HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">needs to have &#39;res&#39; instead of &#39;True&#39; for ANY of the resources to be applied at all! As is, you are plotting the entire globe&#39;s worth of data because none of your map limits, styles, or vector settings are being passed to the plotting function! The second map you sent us plots as nicely as it does because you actually give it &#39;res&#39;, not &#39;True&#39;!</font></div><div><font color="#000000" face="HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><br></font></div><div><font color="#000000" face="HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">Good luck, and reply back to the list if you are still having problems.</font></div><div><font color="#000000" face="HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><br></font></div><div><font color="#000000" face="HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif"><br></font></div><div><font color="#000000" face="HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif">Kyle</font></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div></div>
<br><div class="gmail_quote">On Tue, May 26, 2015 at 12:52 AM, Geeta Geeta <span dir="ltr">&lt;<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div><span>Hi</span></div><div dir="ltr"><span>I have to plot 850hpa Vector wind for a regional domain (0-40N/50-100E). My dataset is FNL reanalysis. I tried following scripts. (png file is attached)</span></div><div dir="ltr">;</div><div dir="ltr">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div><div dir="ltr">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</div><div dir="ltr">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl&quot;</div><div dir="ltr">; Open the file----------</div><div dir="ltr">begin</div><div dir="ltr">a = addfile(&quot;~/Mesomodel/gfs/<a href="http://test.nc" target="_blank">test.nc</a>&quot;,&quot;r&quot;)</div><div dir="ltr">;printVarSummary(a)</div><div dir="ltr">;</div><div dir="ltr">; -----Read data------</div><div dir="ltr">Uwind = a-&gt;UGRD_P0_L100_GLL0(20,:,:); Read the variable to memory</div><div dir="ltr">Vwind = a-&gt;VGRD_P0_L100_GLL0(20,:,:); Read the variable to memory</div><div dir="ltr">Uwind@_FillValue = -999</div><div dir="ltr">Vwind@_FillValue = -999</div><div dir="ltr">printVarSummary(Uwind)</div><div dir="ltr">printVarSummary(Vwind)</div><div dir="ltr">;</div><div dir="ltr">; ----Create Plot-----------------</div><div dir="ltr">wks   = gsn_open_wks(&quot;png&quot;, &quot;wind850&quot;)</div><div dir="ltr">res                             = True</div><div dir="ltr">res@tiMainString                = &quot;WIND 850hPa &quot;</div><div dir="ltr">;pltres                         = True</div><div dir="ltr">;</div><div dir="ltr">;               Map Resources</div><div dir="ltr">mpres                           = True</div><div dir="ltr">res@mpFillOn                    =False</div><div dir="ltr">res@mpOutlineBoundarySets       =&quot;National&quot;</div><div dir="ltr">res@mpGeophysicalLineColor      =&quot;Black&quot;</div><div dir="ltr">res@mpMinLatF                   = 0.0</div><div dir="ltr">res@mpMaxLatF                   = 40.0</div><div dir="ltr">res@mpMinLonF                   = 50.0</div><div dir="ltr">res@mpMaxLonF                   = 100.0</div><div dir="ltr">res@mpDataBaseVersion           =&quot;MediumRes&quot;</div><div dir="ltr">;plot  = gsn_csm_map_ce(wks,res)        ;Draws a map</div><div dir="ltr">;plot  = gsn_csm_vector_map(wks,Uwind,Vwind,True)</div><div dir="ltr">;plot  = gsn_csm_map_ce(wks,True)</div><div dir="ltr">;</div><div dir="ltr">                                                                                                                             </div><div dir="ltr"></div><div dir="ltr">;vecres                           =True</div><div dir="ltr">res@vcMinFracLengthF             =1.0           ; Length of min vector</div><div dir="ltr">res@vcRefMagnitudeF              =3.0           ; Makes Vectors larger</div><div dir="ltr">res@vcRefLengthF                 =0.045         ; ref vec Lengthlarger</div><div dir="ltr">res@vcGlyphStyle                 =&quot;CurlyVector&quot; ; ref vec Lengthlarger</div><div dir="ltr">res@vcMinDistanceF               =0.01          ; ref vec Lengthlarger</div><div dir="ltr">res@vcMonoLineArrowColor         =False         ; ref vec Lengthlarger</div><div dir="ltr"> </div><div dir="ltr">plot  = gsn_csm_vector_map(wks,Uwind,Vwind,True)</div><div dir="ltr">end</div><div dir="ltr"> </div><div dir="ltr">With this script, the problem is it is NOT Plotting the data for the regional domain.  </div><div></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">A little change in the above script (changes given below)</div><div dir="ltr">plot  = gsn_csm_map_ce(wks,res)        ;Draws a map</div><div dir="ltr"><br></div><div dir="ltr">draws a regional map BUT without data. </div><div dir="ltr"><br></div><div dir="ltr">Both figures attatched. </div><div dir="ltr"><br></div><div dir="ltr">Any suggestions............ </div><span class="HOEnZb"><font color="#888888"><div><div>Geeta. </div></div></font></span></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>