<div dir="ltr"><div><div><div><div><div><div><div>I suggest that you look at the NCL examples page;<br><br> <a href="http://www.ncl.ucar.edu/Applications/">http://www.ncl.ucar.edu/Applications/</a><br><br>Then look under "Vectors"<br><br>-----------------------------------<br>Two ways to 'thin' vectors:<br><br></div>(a) As noted by Barry: use NCL array syntax. This hard-wires a specific subset.<br> <span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">plotB<span class="gmail-m_-1399523757590938562gmail-Apple-converted-space"> </span>= gsn_csm_</span><span class="gmail-m_-1399523757590938562gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">vecto</span><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">r(wks,u_new<b>(::4,:</b><wbr><b>:4)</b>,v_new<b>(::4,::4)</b>,vecres)<br></span></div><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"> Generally, this is<br> </span><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">plotB<span class="gmail-m_-1399523757590938562gmail-Apple-converted-space"> </span>= gsn_csm_</span><span class="gmail-m_-1399523757590938562gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">vecto</span><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">r(wks,u_new(::ny,:<wbr>:mx),v_new(::ny,::mx),vecres)<br></span></div><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"> Note that 'ny' need not equal 'mx'<br> </span><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">plotB<span class="gmail-m_-1399523757590938562gmail-Apple-converted-space"> </span>= gsn_csm_</span><span class="gmail-m_-1399523757590938562gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">vecto</span><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">r(wks,u_new(::4,:<wbr>:2),v_new(::4,::2),vecres)<br><br></span></span></div><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">(b) If you click on "Vectors"<br> <a href="http://www.ncl.ucar.edu/Applications/vector.shtml">http://www.ncl.ucar.edu/Applications/vector.shtml</a><br><br></span></span></div><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"> Within the top 'preamble', there is the comment:</span></span><br><p>
Important resources for controlling the length, <b>density,</b> direction, and style of vectors:
</p><p>
<em>[snip]</em></p><p>
</p><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcMinDistanceF"><em>vcMinDistanceF</em></a> - <b>set to small
value to thin the vectors</b>. <%%%%%%%%%%%%%%%%%<br><br></div> <br>Then, click on "resources" at the top of the page and search for "vcMinDistanceF". This will show you all the examples that use this resource.<br><br></div>This is an 'even better' way to thin vectore.<br><div><br><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcMinDistanceF"><em>vcMinDistanceF</em></a><br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/WRF_2d_3.ncl">WRF_2d_3.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/wrf2d.shtml#ex3">WRF 2D data</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/WRF_2d_4.ncl">WRF_2d_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/wrf2d.shtml#ex4">WRF 2D data</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/WRF_lc_7.ncl">WRF_lc_7.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/wrflc.shtml#ex7">WRF lambert conformal projections</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/WRF_lc_8.ncl">WRF_lc_8.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/wrflc.shtml#ex8">WRF lambert conformal projections</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/barb_1.ncl">barb_1.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/barb.shtml#ex1">wind barbs</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/barb_2.ncl">barb_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/barb.shtml#ex2">wind barbs</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/barb_3.ncl">barb_3.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/barb.shtml#ex3">wind barbs</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/ce_4.ncl">ce_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/cylineq.shtml#ex4">cylindrical equidistant projections</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/coamps_2.ncl">coamps_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/coamps.shtml#ex2">COAMPS</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/coamps_3.ncl">coamps_3.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/coamps.shtml#ex3">COAMPS</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/coamps_5.ncl">coamps_5.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/coamps.shtml#ex5">COAMPS</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/coamps_6.ncl">coamps_6.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/coamps.shtml#ex6">COAMPS</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/dataonmap_2.ncl">dataonmap_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml#ex2">Plotting data on a map</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/dataonmap_4.ncl">dataonmap_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml#ex4">Plotting data on a map</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/dataonmap_native_4.ncl">dataonmap_native_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml#ex4">Plotting data on a map</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/dataonmap_nonnative_4.ncl">dataonmap_nonnative_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/plot_data_on_map.shtml#ex4">Plotting data on a map</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/epflux_1.ncl">epflux_1.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/epflux.shtml#ex1">EPflux</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/epflux_2.ncl">epflux_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/epflux.shtml#ex2">EPflux</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/era40_2.ncl">era40_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/era40.shtml#ex2">ERA40 data</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/global_nogaps_vec.ncl">global_nogaps_vec.ncl</a><br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/global_nogaps_vec_con.ncl">global_nogaps_vec_con.ncl</a><br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/global_nogaps_vec_con_panel.ncl">global_nogaps_vec_con_panel.ncl</a><br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/global_nogaps_vec_panel.ncl">global_nogaps_vec_panel.ncl</a><br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/godas_2.ncl">godas_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/godas.shtml#ex2">GODAS</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/godas_4.ncl">godas_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/godas.shtml#ex4">GODAS</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/hycom_con_vec.ncl">hycom_con_vec.ncl</a><br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/ice_2.ncl">ice_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/ice.shtml#ex2">CESM ice model</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/lat2pop_2.ncl">lat2pop_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/lat2pop.shtml#ex2">lat/lon to POP</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/lcmask_3.ncl">lcmask_3.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/lcmask.shtml#ex3">masking lambert conformal</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/lcnative_4.ncl">lcnative_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/lcnative.shtml#ex4">native lambert conformal</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/lcnative_5.ncl">lcnative_5.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/lcnative.shtml#ex5">native lambert conformal</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/lcnative_overlay_5.ncl">lcnative_overlay_5.ncl</a><br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/mjoclivar_16.ncl">mjoclivar_16.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/mjoclivar.shtml#ex16">MJO climate variability</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/newcolor_8.ncl">newcolor_8.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/rgbacolor.shtml#ex8">new 32-bit color capabilities</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/nldas_01.ncl">nldas_01.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/nldas_gldas.shtml#ex01">NLDAS-GLDAS</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/nlom_1.ncl">nlom_1.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/nlom.shtml#ex1">NLOM</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/nlom_vec_con.ncl">nlom_vec_con.ncl</a><br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/polar_7.ncl">polar_7.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/polar.shtml#ex7">polar stereographic projection</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/polar_8.ncl">polar_8.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/polar.shtml#ex8">polar stereographic projection</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/pop2lat_2.ncl">pop2lat_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/pop2lat.shtml#ex2">POP to lat/lon</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/popscal_4.ncl">popscal_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/popscal.shtml#ex4">POP scalars</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/popvec_2.ncl">popvec_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/popvec.shtml#ex2">POP vectors</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/popvec_3.ncl">popvec_3.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/popvec.shtml#ex3">POP vectors</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/popvec_4.ncl">popvec_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/popvec.shtml#ex4">POP vectors</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/roms_5.ncl">roms_5.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/roms.shtml#ex5">ROMS</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/veceff_4.ncl">veceff_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/veceff.shtml#ex4">vector effects</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/vector_3.ncl">vector_3.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/vector.shtml#ex3">vector plots</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/vector_4.ncl">vector_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/vector.shtml#ex4">vector plots</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/vector_5.ncl">vector_5.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/vector.shtml#ex5">vector plots</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/wind_1.ncl">wind_1.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/wind.shtml#ex1">divergent and rotational wind components</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/wind_2.ncl">wind_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/wind.shtml#ex2">divergent and rotational wind components</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/wind_3.ncl">wind_3.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/wind.shtml#ex3">divergent and rotational wind components</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/wind_4.ncl">wind_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/wind.shtml#ex4">divergent and rotational wind components</a>)<br>
<a name="vcMinFracLengthF"></a>
<br><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcMinFracLengthF"><em>vcMinFracLengthF</em></a><br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/newcolor_7.ncl">newcolor_7.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/rgbacolor.shtml#ex7">new 32-bit color capabilities</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/newcolor_8.ncl">newcolor_8.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/rgbacolor.shtml#ex8">new 32-bit color capabilities</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/overlay_6.ncl">overlay_6.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/overlay.shtml#ex6">Overlays</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/unique_2.ncl">unique_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/unique.shtml#ex2">unique plots</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/unique_4.ncl">unique_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/unique.shtml#ex4">unique plots</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/veceff_1.ncl">veceff_1.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/veceff.shtml#ex1">vector effects</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/veceff_2.ncl">veceff_2.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/veceff.shtml#ex2">vector effects</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/veceff_3.ncl">veceff_3.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/veceff.shtml#ex3">vector effects</a>)<br>
<a href="http://www.ncl.ucar.edu/Applications/Scripts/veceff_4.ncl">veceff_4.ncl</a> (<a href="http://www.ncl.ucar.edu/Applications/veceff.shtml#ex4">vector effects</a>)<br>
<a name="vcMinLevelValF"></a>
<br><br><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span></span><div><div><div><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span><div><span class="gmail-m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 14, 2018 at 12:24 AM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Here is how you do it.<div><br></div><div>
<span></span>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= True<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; </span><span class="m_-1399523757590938562gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">vecto</span><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">r only resources</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres@gsnDraw<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= False <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; don't draw</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres@gsnFrame <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= False <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; don't advance frame</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres@vcGlyphStyle <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= "CurlyVector" <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; curly </span><span class="m_-1399523757590938562gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">vecto</span><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">rs</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres@vcRefMagnitudeF<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= 20<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; define </span><span class="m_-1399523757590938562gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">vecto</span><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">r ref mag</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres@vcRefLengthF <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= 0.045 <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; define length of vec ref</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres@gsnRightString <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= " " <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; turn off right string</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres@gsnLeftString<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= " " <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; turn off left string</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres@tiXAxisString<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= " " <span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; turn off axis label</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres@vcRefAnnoOrthogonalPosF = -0.17<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; move ref </span><span class="m_-1399523757590938562gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">vecto</span><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">r into<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>plot</span></p>
<p class="m_-1399523757590938562gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:19px"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>vecres@gsnAddCyclic<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= False<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>; we will manually zoom in.</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>plotB<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= gsn_csm_</span><span class="m_-1399523757590938562gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">vecto</span><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">r(wks,u_new(::4,:<wbr>:4),v_new(::4,::4),vecres)</span></p>
<br></div><div>Then, you can overlay it onto another plot like temperature.</div><div><br></div><div>
<span></span>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">panres = True</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">panres@gsnMaximize = True</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">panres@gsnPanelRight = 0.98</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">panres@gsnPanelLeft<span class="m_-1399523757590938562gmail-Apple-converted-space"> </span>= 0.02</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">panres@gsnPaperOrientation="<wbr>Portrait"</span></p>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">overlay(plot,</span><span class="m_-1399523757590938562gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">plotB</span><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">)</span></p>
<span></span>
<p class="m_-1399523757590938562gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:17px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-1399523757590938562gmail-s1" style="font-variant-ligatures:no-common-ligatures">gsn_panel(wks,plot,(/1,1/),<wbr>panres)</span></p>
<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Feb 14, 2018 at 6:53 AM, Ankita Sharma <span dir="ltr"><<a href="mailto:ankita@iiserb.ac.in" target="_blank">ankita@iiserb.ac.in</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><div class="gmail_default" style="font-family:"comic sans ms",sans-serif;color:rgb(7,55,99)"><span style="font-size:12.8px">How to use "skip 4" in NCL? or How to skip vectors into grids?</span></div></div>
<br></span>______________________________<wbr>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-1399523757590938562gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior 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>US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>