<div dir="ltr"><div>Hello,<br><br>You can ftp the file and a clean script to:<br><br>ftp <a target="_blank" href="http://ftp.cgd.ucar.edu">ftp.cgd.ucar.edu</a><br>anonymous<br>your_email<br>cd incoming<br>put data_file<br>put clean_script.ncl<br>quit<br><br>Please send an email to ncl-talk *after* successful file transfer<br><br></div>Happy New Year!<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 20, 2016 at 3:17 PM, Francesco Trotta <span dir="ltr">&lt;<a href="mailto:francesco.trotta4@unibo.it" target="_blank">francesco.trotta4@unibo.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div>Dear Ncl team,</div>
<div>   I&#39;m using NCL - version 6.3.0</div>
<div>   I would like to create a map with curved vector style</div>
<div><br>
</div>
<div>   I’m using vcres@vcGlyphStyle = &quot;CurlyVector&quot; but same regions in the area are empty of vector (attachment1).</div>
<div>   When I use vcres@vcGlyphStyle = “lineArrow” all is ok. (attachment2)</div>
<div><br>
</div>
<div>   How can I solve this problem?</div>
<div><br>
</div>
<div>thanks</div>
<div>Francesco 
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">;=============================<wbr>==============================</span><br>
<br>
</div>
</div>
<div>   wks = gsn_open_wks(typefile,<wbr>namefile)</div>
<div>   setvalues NhlGetWorkspaceObjectId()</div>
<div>       &quot;wsMaximumSize&quot; : 300000000</div>
<div>   end setvalues</div>
<div>   gsn_define_colormap(wks,<wbr>colorsMap)</div>
<div><br>
</div>
<div>   res = True</div>
<div>   ;--- Title attributes ------------------------------<wbr>--------</div>
<div>   if(ltitle) then res@tiMainString = titleplot+&quot; &quot;+inforun</div>
<div>   else res@tiMainString = &quot;&quot; end if</div>
<div>   res@tiMainFont     = 0</div>
<div>   res@tiMainPosition = &quot;Center&quot;</div>
<div>   res@tiMainFontHeightF = 0.011</div>
<div>   res@tiMainOffsetYF = 0.01</div>
<div>   ;--- (gsn) attributes ------------------------------<wbr>--------</div>
<div>   res@gsnDraw         = False</div>
<div>   res@gsnFrame        = False</div>
<div>   res@gsnMaximize     = True</div>
<div>   res@gsnAddCyclic    = False </div>
<div>   res@gsnSpreadColors = True </div>
<div>   res@gsnPaperOrientation = &quot;landscape&quot;</div>
<div>   if(lLeftString) then res@gsnLeftString = LeftString</div>
<div>   else res@gsnLeftString = &quot;&quot; end if</div>
<div>   res@gsnLeftStringFontHeightF = 11</div>
<div>   if(lRightString) then res@gsnRightString = field@units</div>
<div>   else res@gsnRightString = &quot;&quot; end if</div>
<div>   ;--- Map attributes (window) ------------------------------<wbr>----</div>
<div>   res@mpLimitMode = &quot;LatLon&quot;      ; Zoom in on the plot area.</div>
<div>   res@mpMinLatF   = minLatF</div>
<div>   res@mpMaxLatF   = maxLatF</div>
<div>   res@mpMinLonF   = minLonF</div>
<div>   res@mpMaxLonF   = maxLonF</div>
<div>   ;--- Map attributes (land outlines) -------------------      res@mpDataBaseVersion = &quot;HighRes&quot;           ;use GMT coastline</div>
<div>   res@mpOutlineOn       = lmapOutlineOn       ;turn on continental outlines</div>
<div>   res@mpOutlineBoundarySets = &quot;AllBoundaries&quot; ;turn on country boundaries (all the boundaries database in use)</div>
<div>   res@<wbr>mpGeophysicalLineThicknessF = 2.5       ;thickness of outlines</div>
<div>   res@mpGeophysicalLineColor= &quot;Black&quot;         ;color of cont. outlines</div>
<div>   res@mpOutlineDrawOrder    = &quot;PostDraw&quot;      ;draw continental outline last</div>
<div>   res@mpFillOn              = lmapFillOn      ;turn on gray fill for continental background</div>
<div>   res@mpFillDrawOrder       = &quot;PreDraw&quot;       ;draw area fill first</div>
<div>   res@pmTickMarkDisplayMode  = &quot;Always&quot;</div>
<div>   ;--- Map attributes (lat/lon grid lines) -------------------</div>
<div>   res@mpGridAndLimbOn        = False          ;turn on lat/lon lines</div>
<div>   res@mpGridLineDashPattern  = 2              ;... with xxxx lines</div>
<div>   res@mpGridLineColor        = &quot;black&quot;        ;color of the lines</div>
<div>   res@mpGridLatSpacingF      = 10             ;space (in degree) between 2 lines</div>
<div>   res@mpGridLonSpacingF      = 10             ;idem</div>
<div>   res@mpGridLineThicknessF   = 2.0            ;thickness of the lines</div>
<div>   res@mpGridAndLimbDrawOrder = &quot;PostDraw&quot;     ;draw lat/lon lines last</div>
<div>   res@mpLabelFontHeightF     = 0.005          ;label font size</div>
<div>   ;--- contours attributes ------------------------------<wbr>-</div>
<div>   res@cnFillOn              = True            ;areas between levels filled with color</div>
<div>   res@cnFillMode            = &quot;AreaFill&quot;      ;AreaFill</div>
<div>   res@cnLevelSelectionMode  = &quot;ManualLevels&quot;  ;set manual contour levels</div>
<div>   res@cnMinLevelValF        = minLevelVal     ;set max contour level</div>
<div>   res@cnMaxLevelValF        = maxLevelVal     ;set min contour level</div>
<div>   res@cnLevelSpacingF       = levelSpacing</div>
<div>   res@cnLinesOn             = False           ;turn off the contour lines</div>
<div>   res@cnLineLabelsOn        = False           ;turn off the line labels</div>
<div>   res@cnLineLabelFontHeightF= 0.005</div>
<div>   res@cnLineLabelDensityF   = 1               ;label spacing when cnLineLabelPlacementMode != &quot;Constant&quot;</div>
<div>   res@cnLineLabelFontAspectF= 1               ;shape of the line label. &gt; 1 :thinner characters. &lt; 1 :wider</div>
<div>   res@cnLineLabelInterval   = 1</div>
<div>   res@cnInfoLabelOn         = False           ;turn off &quot;CONTOUR FROM X TO X BY X&quot; legend.</div>
<div>   res@cnLabelMasking        = True            ;mask lines where label appear</div>
<div>   ;--- LabelBar attributes ------------------------------<wbr>-</div>
<div>   res@lbLabelBarOn       = llabbarOn</div>
<div>   res@lbLabelsOn         = llabbarLabelsOn</div>
<div>   res@lbTitleString      = labTitleStr+&quot; (&quot;+field@units+&quot;)&quot;</div>
<div>   res@lbTitlePosition    = &quot;Bottom&quot;</div>
<div>   res@pmLabelBarOrthogonalPosF = 0.17   ; position wrt plot​<br>
</div>
<div>   res@lbLabelFontHeightF = 0.015</div>
<div>   res@lbTitleFontHeightF = 0.015</div>
<div>   res@lbLabelStride      = 5       ; Label every 5th entry</div>
<div>   res@lbLabelStrings     = &quot;&quot; + sprintf(labformatStr,fspan(<wbr>minLevelVal,maxLevelVal,<wbr>floattoint((maxLevelVal-<wbr>minLevelVal)/levelSpacing)+1))</div>
<div><br>
</div>
<div>   ;--- (ScalarField) attributes ------------------------------<wbr>-</div>
<div>   res@sfXArray  = lon2d(0:ny-1,0:nx-1) </div>
<div>   res@sfYArray  = lat2d(0:ny-1,0:nx-1)</div>
<div><br>
</div>
<div>   ;--- vectorPlot Resources ------------------------------<wbr>-----</div>
<div>   vcres = True</div>
<div>   ;--- GSN attributes ------------------------------<wbr>-----------</div>
<div>   vcres@gsnDraw         = False</div>
<div>   vcres@gsnFrame        = False</div>
<div>   vcres@gsnMaximize     = True</div>
<div>   vcres@gsnAddCyclic    = False </div>
<div><br>
</div>
<div>   vcres@vcRefAnnoOn     = False        ; draw the reference vector annotation</div>
<div>   vcres@vcRefAnnoFontHeightF = 0.01</div>
<div>   vcres@vcRefMagnitudeF = 0.2           ; add a reference vector</div>
<div>   vcres@vcRefLengthF    = 0.045                ; what the ref length is</div>
<div>   vcres@vcGlyphStyle    = &quot;CurlyVector&quot;        ; style of glyph used to represent the vector</div>
<div>   vcres@vcMinDistanceF  = 0.02           ; reduce the crowding of vector arrows</div>
<div>   vcres@vcLineArrowThicknessF = 2.0  ; change vector thickness   </div>
<div>   vcres@vcVectorDrawOrder = &quot;PostDraw&quot;         ; draw vectors last <br>
</div>
<div><br>
</div>
<div>   vector = gsn_csm_vector(wks,xfield(:,:)<wbr>,yfield(:,:),vcres) ; generate the vectors </div>
<div>   plot = gsn_csm_contour_map_ce(wks,<wbr>field(:,:),res) </div>
<div>   overlay(plot,vector) </div>
<div><br>
</div>
<div>   draw(plot)</div>
<div>   frame(wks)<br>
</div>
<p><br>
</p>
</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>