<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Dear Mary,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default"><font face="arial, helvetica, sans-serif" style="color:rgb(0,0,0)">Thank you very much for your reply, and for running the test case! The variable is</font><font face="arial, helvetica, sans-serif" style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px"> not a very large one, and I also tried to do the vector </font><font color="#000000" face="arial, helvetica, sans-serif" style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><span style="font-size:12px">plot using &quot;</span></font><span style="color:rgb(34,34,34);font-family:Menlo;font-size:12px">vcres@vcGlyphStyle </span><span style="color:rgb(34,34,34);font-family:Menlo;font-size:12px">= &quot;CurlyVector&quot;</span><font color="#000000" face="arial, helvetica, sans-serif" style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><span style="font-size:12px">&quot; but also got the &quot;</span></font><span style="color:rgb(34,34,34);font-family:Menlo;font-size:12px">Segmentation fault</span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12px">&quot;. The </span><font color="#000000" face="arial, helvetica, sans-serif" style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><span style="font-size:12px">only option that works is the </span></font><span style="color:rgb(34,34,34);font-family:Menlo;font-size:12px">vcres@vcGlyphStyle </span><span style="color:rgb(34,34,34);font-family:Menlo;font-size:12px">= &quot;WindBarb&quot;. </span><span style="color:rgb(34,34,34);font-size:12px"><font face="arial, helvetica, sans-serif">Please see below for the printVarSummary info and the resources setting.  Thank you very much again for your help, and please let me know if you spot anything </font></span><font face="arial, helvetica, sans-serif"><span style="font-size:12px">suspicious.</span></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">Output from printVarSummary(Uwavghist):</div><div class="gmail_default"><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">Variable: Uwavghist</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">Type: float</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">Total Size: 76800 bytes</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">            19200 values</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">Number of Dimensions: 2</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>[lat | 120] x [lon | 160]</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">Coordinates: </p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">            lat: [30.0625..44.9375]</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">            lon: [-132.9375..-113.0625]</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">Number Of Attributes: 1</p><p style="color:rgb(0,0,0);font-family:Menlo;margin:0px;font-size:12px">









</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo">  _FillValue :<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>9.96921e+36</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px;font-family:Menlo"><br></p><p style="color:rgb(0,0,0);margin:0px;font-size:12px"><font face="arial, helvetica, sans-serif">My resources setting:</font></p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres                       = True</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@gsnMaximize           = True</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@mpOutlineOn           = True</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@mpDataBaseVersion     = &quot;MediumRes&quot;   ; slightly better outlines</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@mpLandFillColor = &quot;gray91&quot;</p><p style="margin:0px;font-size:12px;font-family:Menlo">;---Data is regional</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@gsnAddCyclic          = False</p><p style="margin:0px;font-size:12px;font-family:Menlo">;---Change the streamline levels</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@stLevelSpacingF       = 30.</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@stLevelPalette        = &quot;ncl_default&quot; ; &quot;MPL_Spectral&quot;</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@stLineThicknessF      = 5.0         ; default is 1.0</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@stLevelSelectionMode  = &quot;ManualLevels&quot;</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@stMinLevelValF        = 1</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@stMaxLevelValF        = 15.</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@stLevelSpacingF       = 1.</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@mpMinLonF            =  min(lon)               ; select a subregion</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@mpMaxLonF            =  max(lon)</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@mpMinLatF            =   min(lat)</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@mpMaxLatF            =  max(lat)</p><p style="margin:0px;font-size:12px;font-family:Menlo">  mpres@pmTickMarkDisplayMode = &quot;Always&quot;    ; more detailed tickmarks</p><p style="margin:0px;font-size:12px;font-family:Menlo">printVarSummary(Uwavghist)</p><p style="color:rgb(0,0,0);margin:0px;font-size:12px">






















</p><p style="margin:0px;font-size:12px;font-family:Menlo">  plot4 = gsn_csm_vector_scalar_map_ce(wks, Uwavghist,Vwavghist,windwavghist,mpres)</p><p style="color:rgb(0,0,0);font-family:Menlo;margin:0px;font-size:12px"><br></p><p style="color:rgb(0,0,0);margin:0px;font-size:12px"><font face="arial, helvetica, sans-serif">Best regards,</font></p><p style="color:rgb(0,0,0);margin:0px;font-size:12px"><font face="arial, helvetica, sans-serif">Meina</font></p><p style="margin:0px"><span style="font-family:Menlo;font-size:12px"> </span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 6, 2017 at 8:58 AM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</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"><div class="gmail_default" style="font-size:small">Hi Meina,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">One thing that might cause gsn_csm_streamline_scalar_map to seg fault is if you are trying to plot really large data arrays.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It&#39;s always important to look at your data when NCL isn&#39;t plotting it correctly, and we recommend using &quot;printVarSummary&quot; for this.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">How big are U and V? Please insert a &quot;printVarSummary&quot; command and let us know what it reports:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">printVarSummary(U)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Also, it would help to see how you are calling gsn_csm_streamline_scalar_map, and what resources you&#39;re setting.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I verified that a small test code works just fine, which I&#39;ve attached here, along with the data file.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Jul 5, 2017 at 6:14 PM, Meina Wang <span dir="ltr">&lt;<a href="mailto:mnawang@ucdavis.edu" target="_blank">mnawang@ucdavis.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)"><div class="gmail_default" style="font-size:13px">Dear All,</div><div class="gmail_default" style="font-size:13px"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px;color:rgb(34,34,34)"><font face="arial, helvetica, sans-serif" style="color:rgb(0,0,0)">I wanted to use the function &quot;<span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.1"><span id="m_4288852623629533841m_-2976305417731282082:2ay.1">gsn</span></span>_<span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.2"><span id="m_4288852623629533841m_-2976305417731282082:2ay.2">csm</span></span>_streamline_scalar_map<wbr>&quot; to plot wind streamline using U and V, with color-coded <span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.3"><span id="m_4288852623629533841m_-2976305417731282082:2ay.3">scaler</span></span> field <span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.4"><span id="m_4288852623629533841m_-2976305417731282082:2ay.4">sqrt</span></span>(<wbr>U^2+V^2), but got &quot;segmentation fault&quot;.  I then switched to function &quot;</font><span style="font-family:Menlo;font-size:12px"><span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.5"><span id="m_4288852623629533841m_-2976305417731282082:2ay.5">gsn</span></span>_<span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.6"><span id="m_4288852623629533841m_-2976305417731282082:2ay.6">csm</span></span>_vector_scalar_map_<span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.7"><span id="m_4288852623629533841m_-2976305417731282082:2ay.7">ce</span></span>&quot;<wbr> </span><font face="arial, helvetica, sans-serif"><span style="font-size:12px">to do wind barb plot instead using the same data and it worked well.  I have previously used the streamline function and had no problem at all, so I&#39;m wondering if any of you recently ran into the same &quot;</span></font>segmentation fault&quot; issue as I did.  Is it the internal code of the function crashed?  Thank you.</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px;color:rgb(34,34,34)"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px;color:rgb(34,34,34)">P.S. <font face="arial, helvetica, sans-serif" style="font-family:arial,helvetica,sans-serif;color:rgb(0,0,0)">I&#39;m using the <span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.8"><span id="m_4288852623629533841m_-2976305417731282082:2ay.8">NCL</span></span> version </font><span style="font-family:Menlo;color:rgb(0,0,0);font-size:12px">6.4.0. </span><font face="arial, helvetica, sans-serif"><span style="color:rgb(0,0,0);font-size:12px">and ran on Linux machine with </span><span style="font-size:12px;color:rgb(0,0,0)"><span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.9"><span id="m_4288852623629533841m_-2976305417731282082:2ay.9">gcc</span></span> (<span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.10"><span id="m_4288852623629533841m_-2976305417731282082:2ay.10">Ubuntu</span></span> 4.8.4-2ubuntu<wbr>1~14.04.3) 4.8.4</span></font></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px;color:rgb(34,34,34)"><br></div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px;color:rgb(34,34,34)">Best,</div><div class="gmail_default" style="font-family:arial,sans-serif;font-size:13px;color:rgb(34,34,34)"><span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.11"><span id="m_4288852623629533841m_-2976305417731282082:2ay.11">Meina</span></span></div></div><span class="m_4288852623629533841HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_4288852623629533841m_-2976305417731282082gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif"><span id="m_4288852623629533841m_-2976305417731282082:2ay.12">Meina</span> Wang</font><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">PhD candidate in Atmospheric Science</font></div><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">Department of Land, Air and Water Resources</font></div><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">University of California, Davis</font></div><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">Davis, CA 95616</font></div></div></div></div></div>
</font></span></div>
<br></div></div>______________________________<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></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">Meina Wang</font><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">PhD candidate in Atmospheric Science</font></div><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">Department of Land, Air and Water Resources</font></div><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">University of California, Davis</font></div><div><font size="2" color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">Davis, CA 95616</font></div></div></div></div></div>
</div>