<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Would probably help to see the data. I’ve used this function a lot, with bigger domains than yours and not had issue. However the function will duplicate domains, so if you’re on a laptop with very limited RAM it may struggle. <div class=""><br class=""><div class="">You could save your plotting data to a small netcdf and send it to the list, based on the summary, the netcdf should be small than 1 MB. </div><div class=""><br class=""></div><div class=""><div class="">ncout= addfile(“ncl_talk_streamline_data.ncl”,”c”)</div><div class=""><font face="InputMono-Regular" class="">ncout->Uwavghist = Uwavghist</font></div><div class=""><font face="InputMono-Regular" class="">ncout-></font>V<span style="font-family: InputMono-Regular;" class="">wavghist = Vwavghist</span></div><div class=""><font face="InputMono-Regular" class="">ncout->windwavghist = </font><span style="font-family: Menlo;" class="">windwavghist</span></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">the ftp server is also an option if the output ends up too big. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Alan</div><div class=""><br class=""></div><div class=""><font face="InputMono-Regular" class=""><br class=""></font></div><div class=""><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">##############################<br class="">Alan Brammer,<div class="">Post-Doc Researcher</div><div class=""><br class=""></div><div class="">Department of Atmospheric and Environmental Sciences,<br class="">University at Albany, State University of New York, Albany, NY, 12222<div class=""><a href="mailto:abrammer@albany.edu" class="">abrammer@albany.edu</a><br class="">##############################</div></div></div></span></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 6 Jul 2017, at 14:05, Meina Wang <<a href="mailto:mnawang@ucdavis.edu" class="">mnawang@ucdavis.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_default" style="font-family: arial, helvetica, sans-serif;">Dear Mary,</div><div class="gmail_default" style="font-family: arial, helvetica, sans-serif;"><br class=""></div><div class="gmail_default"><font face="arial, helvetica, sans-serif" style="" class="">Thank you very much for your reply, and for running the test case! The variable is</font><font face="arial, helvetica, sans-serif" style="font-family: arial, helvetica, sans-serif; font-size: 12px;" class=""> not a very large one, and I also tried to do the vector </font><font face="arial, helvetica, sans-serif" style="font-family: arial, helvetica, sans-serif;" class=""><span style="font-size: 12px;" class="">plot using "</span></font><span style="color: rgb(34, 34, 34); font-family: Menlo; font-size: 12px;" class="">vcres@vcGlyphStyle </span><span style="color: rgb(34, 34, 34); font-family: Menlo; font-size: 12px;" class="">= "CurlyVector"</span><font face="arial, helvetica, sans-serif" style="font-family: arial, helvetica, sans-serif;" class=""><span style="font-size: 12px;" class="">" but also got the "</span></font><span style="color: rgb(34, 34, 34); font-family: Menlo; font-size: 12px;" class="">Segmentation fault</span><span style="font-family: arial, helvetica, sans-serif; font-size: 12px;" class="">". The </span><font face="arial, helvetica, sans-serif" style="font-family: arial, helvetica, sans-serif;" class=""><span style="font-size: 12px;" class="">only option that works is the </span></font><span style="color: rgb(34, 34, 34); font-family: Menlo; font-size: 12px;" class="">vcres@vcGlyphStyle </span><span style="color: rgb(34, 34, 34); font-family: Menlo; font-size: 12px;" class="">= "WindBarb".<span class="Apple-converted-space"> </span></span><span style="color: rgb(34, 34, 34); font-size: 12px;" class=""><font face="arial, helvetica, sans-serif" class="">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" class=""><span style="font-size: 12px;" class="">suspicious.</span></font></div><div class="gmail_default" style="font-family: arial, helvetica, sans-serif;"><br class=""></div><div class="gmail_default" style="font-family: arial, helvetica, sans-serif;">Output from printVarSummary(Uwavghist):</div><div class="gmail_default"><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class="">Variable: Uwavghist</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class="">Type: float</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class="">Total Size: 76800 bytes</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> 19200 values</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class="">Number of Dimensions: 2</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class="">Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space: pre;">        </span>[lat | 120] x [lon | 160]</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class="">Coordinates: </div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> lat: [30.0625..44.9375]</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> lon: [-132.9375..-113.0625]</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class="">Number Of Attributes: 1</div><p style="font-family: Menlo; margin: 0px; font-size: 12px;" class=""></p><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> _FillValue :<span class="gmail-Apple-tab-span" style="white-space: pre;">        </span>9.96921e+36</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 12px;" class=""><font face="arial, helvetica, sans-serif" class="">My resources setting:</font></div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres = True</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@gsnMaximize = True</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@mpOutlineOn = True</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@mpDataBaseVersion = "MediumRes" ; slightly better outlines</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@mpLandFillColor = "gray91"</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class="">;---Data is regional</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@gsnAddCyclic = False</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class="">;---Change the streamline levels</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@stLevelSpacingF = 30.</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@stLevelPalette = "ncl_default" ; "MPL_Spectral"</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@stLineThicknessF = 5.0 ; default is 1.0</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@stLevelSelectionMode = "ManualLevels"</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@stMinLevelValF = 1</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@stMaxLevelValF = 15.</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@stLevelSpacingF = 1.</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@mpMinLonF = min(lon) ; select a subregion</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@mpMaxLonF = max(lon)</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@mpMinLatF = min(lat)</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@mpMaxLatF = max(lat)</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> mpres@pmTickMarkDisplayMode = "Always" ; more detailed tickmarks</div><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class="">printVarSummary(Uwavghist)</div><p style="margin: 0px; font-size: 12px;" class=""></p><div style="margin: 0px; font-size: 12px; font-family: Menlo;" class=""> plot4 = gsn_csm_vector_scalar_map_ce(wks, Uwavghist,Vwavghist,windwavghist,mpres)</div><div style="font-family: Menlo; margin: 0px; font-size: 12px;" class=""><br class=""></div><div style="margin: 0px; font-size: 12px;" class=""><font face="arial, helvetica, sans-serif" class="">Best regards,</font></div><div style="margin: 0px; font-size: 12px;" class=""><font face="arial, helvetica, sans-serif" class="">Meina</font></div><p style="margin: 0px;" class=""><span style="font-family: Menlo; font-size: 12px;" class=""> </span></p></div></div><div class="gmail_extra" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class="gmail_quote">On Thu, Jul 6, 2017 at 8:58 AM, Mary Haley<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:haley@ucar.edu" target="_blank" class="">haley@ucar.edu</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr" class=""><div class="gmail_default" style="font-size: small;">Hi Meina,</div><div class="gmail_default" style="font-size: small;"><br class=""></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 class=""></div><div class="gmail_default" style="font-size: small;">It's always important to look at your data when NCL isn't plotting it correctly, and we recommend using "printVarSummary" for this.</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">How big are U and V? Please insert a "printVarSummary" command and let us know what it reports:</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">printVarSummary(U)</div><div class="gmail_default" style="font-size: small;"><br class=""></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're setting.</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">I verified that a small test code works just fine, which I've attached here, along with the data file.</div><div class="gmail_default" style="font-size: small;"><br class=""></div><div class="gmail_default" style="font-size: small;">--Mary</div><div class="gmail_default" style="font-size: small;"><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="h5">On Wed, Jul 5, 2017 at 6:14 PM, Meina Wang<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:mnawang@ucdavis.edu" target="_blank" class="">mnawang@ucdavis.edu</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div class=""><div class="h5"><div dir="ltr" class=""><div class="gmail_default" style="font-family: arial, helvetica, sans-serif;"><div class="gmail_default" style="font-size: 13px;">Dear All,</div><div class="gmail_default" style="font-size: 13px;"><br class=""></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="" class="">I wanted to use the function "<span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.1" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.1" class="">gsn</span></span>_<span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.2" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.2" class="">csm</span></span>_streamline_scalar_map<wbr class="">" to plot wind streamline using U and V, with color-coded <span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.3" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.3" class="">scaler</span></span> field <span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.4" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.4" class="">sqrt</span></span>(<wbr class="">U^2+V^2), but got "segmentation fault". I then switched to function "</font><span style="font-family: Menlo; font-size: 12px;" class=""><span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.5" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.5" class="">gsn</span></span>_<span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.6" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.6" class="">csm</span></span>_vector_scalar_map_<span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.7" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.7" class="">ce</span></span>"<wbr class=""> </span><font face="arial, helvetica, sans-serif" class=""><span style="font-size: 12px;" class="">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'm wondering if any of you recently ran into the same "</span></font>segmentation fault" 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 class=""></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;" class="">I'm using the <span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.8" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.8" class="">NCL</span></span> version </font><span style="font-family: Menlo; font-size: 12px;" class="">6.4.0. </span><font face="arial, helvetica, sans-serif" class=""><span style="font-size: 12px;" class="">and ran on Linux machine with </span><span style="font-size: 12px;" class=""><span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.9" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.9" class="">gcc</span></span> (<span id="m_4288852623629533841m_-2976305417731282082gmail-m_-5901914290479514070:29e.10" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.10" class="">Ubuntu</span></span> 4.8.4-2ubuntu<wbr class="">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 class=""></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" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.11" class="">Meina</span></span></div></div><span class="m_4288852623629533841HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div class="m_4288852623629533841m_-2976305417731282082gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><font size="2" face="arial, helvetica, sans-serif" style="background-color: rgb(255, 255, 255);" class=""><span id="m_4288852623629533841m_-2976305417731282082:2ay.12" class="">Meina</span><span class="Apple-converted-space"> </span>Wang</font><div class=""><font size="2" face="arial, helvetica, sans-serif" style="background-color: rgb(255, 255, 255);" class="">PhD candidate in Atmospheric Science</font></div><div class=""><font size="2" face="arial, helvetica, sans-serif" style="background-color: rgb(255, 255, 255);" class="">Department of Land, Air and Water Resources</font></div><div class=""><font size="2" face="arial, helvetica, sans-serif" style="background-color: rgb(255, 255, 255);" class="">University of California, Davis</font></div><div class=""><font size="2" face="arial, helvetica, sans-serif" style="background-color: rgb(255, 255, 255);" class="">Davis, CA 95616</font></div></div></div></div></div></font></span></div><br class=""></div></div>______________________________<wbr class="">_________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailma<wbr class="">n/listinfo/ncl-talk</a><br class=""><br class=""></blockquote></div><br class=""></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><font size="2" face="arial, helvetica, sans-serif" style="background-color: rgb(255, 255, 255);" class="">Meina Wang</font><div class=""><font size="2" face="arial, helvetica, sans-serif" style="background-color: rgb(255, 255, 255);" class="">PhD candidate in Atmospheric Science</font></div><div class=""><font size="2" face="arial, helvetica, sans-serif" style="background-color: rgb(255, 255, 255);" class="">Department of Land, Air and Water Resources</font></div><div class=""><font size="2" face="arial, helvetica, sans-serif" style="background-color: rgb(255, 255, 255);" class="">University of California, Davis</font></div><div class=""><font size="2" face="arial, helvetica, sans-serif" style="background-color: rgb(255, 255, 255);" class="">Davis, CA 95616</font></div></div></div></div></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">ncl-talk mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:ncl-talk@ucar.edu" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">ncl-talk@ucar.edu</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">List instructions, subscriber options, unsubscribe:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div><br class=""></div></div></div></body></html>