<div dir="ltr"><div><div><div>Hello,<br></div><br></div>This failed using 6.3.0 (seg fault). It worked with 6.4.0 See attached.<br><br></div><div>I am not sure what changes were made that fixed the issue.<br><br></div><div>Cheers<br></div><div>D<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 9:01 AM, Lech Lobocki <span dir="ltr"><<a href="mailto:llobocki@is.pw.edu.pl" target="_blank">llobocki@is.pw.edu.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Dennis,<br>
<br>
while looking at gsn_csm_vector, please take look at memory
issues, Yesterday<br>
I reported problems that arose between versions 6.1.2 and 6.3.0,
and have<br>
been traced to gsn_csm_vector or gsn_csm_streamline. The code and
the<br>
data file are rather lengthy, I uploaded these two files onto<br>
<a href="ftp://ftp.cgd.ucar.edu" target="_blank">ftp.cgd.ucar.edu</a>
as <a href="mailto:lech.lobocki@is.pw.edu.pl" target="_blank">lech.lobocki@is.pw.edu.pl</a><br>
<br>
In brief:<br>
- the whole script executes with no problems by NCL 6.1.2<br>
- It fails reporting "Segmentation fault" when executed<br>
by 6.3.0 (tried on two machines, a 4GB PC with Fedora 23<br>
and a 32GB server with CentOS 7 - both with a binary<br>
ncl package form fedora/centos repositories.<br>
- commenting out lines #252 and 254 - where gsn_csm_streamline is
called<br>
allows the script to pass.<br>
<br>
Lech<br>
<br>
<br>
W dniu 08.06.2016 o 15:29, Dennis Shea pisze:<br>
</div>
<blockquote type="cite">
<div dir="ltr">In my opinion, there is a bug in gsn_csm_vector. I
will open a ticket.<br>
<br>
Try the following.<br>
<br>
;<br>
; Generate dummy vector data arrays<br>
;<br>
M = 30<br>
N = 30<br>
PI = 3.14159<br>
<br>
V = 10.0 * cos(onedtond((2.0 * PI / M) *
ispan(0,M-1,1),(/N,M/)))<br>
U = 10.0 * cos(onedtond((2.0 * PI / N) *
ispan(0,N-1,1),(/M,N/)))<br>
W = sqrt(U^2 +V^2)<br>
<br>
wks = gsn_open_wks ("x11", "vec_test") <br>
res = True<br>
<br>
res@tiMainString = "Title"<br>
vector = gsn_csm_vector_scalar(wks,U,V,W,res)<br>
<br>
res@lbOrientation = "vertical" ; vertical label bar<br>
vector = gsn_csm_vector_scalar(wks,U,V,W,res)<br>
<br>
delete(res@lbOrientation) ; return to horizontal<br>
<br>
res@vcRefAnnoOrthogonalPosF = -1.0 ; move ref
vector up<br>
vector = gsn_csm_vector_scalar(wks,U,V,W,res)<br>
<br>
res@vcRefAnnoOrthogonalPosF = -0.125 ; move ref
vector up<br>
vector = gsn_csm_vector_scalar(wks,U,V,W,res)<br>
<br>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jun 8, 2016 at 6:54 AM, Kacie
Shourd <span dir="ltr"><<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">You
could also try to move the label bar up closer to the
plot. Try poking around here: <a href="http://www.ncl.ucar.edu/Applications/labelbar.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/labelbar.shtml</a>
<div>Specifically <a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/pm.shtml#pmLabelBarOrthogonalPosF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)" target="_blank"><em style="margin:0px;padding:0px">pmLabelBarOrthogonalPosF</em></a><span style="font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)">
or </span><em style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)"><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/pm.shtml#pmLabelBarOrthogonalPosF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)" target="_blank">pmLabelBarParallelPosF</a>.</em></div>
<div><span style="font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)"><br>
</span></div>
<div><span style="font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)">best</span></div>
<div><span style="font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)">Kacie </span><br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000" size="2"><span><b>From:</b>
<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>
[<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>]
on behalf of Key Tone [<a href="mailto:keytone25@gmail.com" target="_blank">keytone25@gmail.com</a>]<br>
</span><b>Sent:</b> Tuesday, June 07, 2016 10:49
PM<br>
<b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> [ncl-talk] Fwd: help<br>
</font><br>
</div>
<div>
<div>
<div>
<div dir="ltr"><br>
<div class="gmail_quote">----------
Forwarded message ----------<br>
From: <b class="gmail_sendername">Key
Tone</b> <span dir="ltr"><<a href="mailto:keytone25@gmail.com" target="_blank">keytone25@gmail.com</a>></span><br>
Date: Wed, Jun 8, 2016 at 1:33 AM<br>
Subject: Re: [ncl-talk] help<br>
To: Kacie Shourd <<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a>><br>
<br>
<br>
<div dir="ltr">Hmm, even when I adjusted,
it appears the legend still is cut off.
Do you think this may be something more
than just a resizing issue?
<div><br>
</div>
<div>Thanks</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jun
8, 2016 at 1:22 AM, Kacie Shourd <span dir="ltr">
<<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><span style="font-size:13.3333px">Hi! </span>
<div style="font-size:13.3333px"><br>
</div>
<div style="font-size:13.3333px">It
should work if you make
the wks bigger.</div>
<div style="font-size:13.3333px"><br>
</div>
<div style="font-size:13.3333px">try
adding this bit of code:</div>
<div style="font-size:13.3333px"><br>
</div>
<div style="font-size:13.3333px">
<div> wks_type = "x11"</div>
<div> wks_type@wkWidth =
2500</div>
<div> wks_type@wkHeight =
2500</div>
<div> wks =
gsn_open_wks(wks_type,
"cyclone_wind")</div>
<div><br>
</div>
<div>And adjust the
numbers for width and
height as necessary
until the legend is no
longer cut off.</div>
<div><br>
</div>
<div>Best,</div>
<div>Kacie</div>
<div><br>
</div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000" size="2"><b>From:</b>
<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>
[<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>]
on behalf of Key Tone
[<a href="mailto:keytone25@gmail.com" target="_blank">keytone25@gmail.com</a>]<br>
<b>Sent:</b> Tuesday,
June 07, 2016 10:12 PM<br>
<b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b>
[ncl-talk] help<br>
</font><br>
</div>
<div>
<div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div>For the
vector plot,
below, what
should I include
in my code to
get the legend
to show? It
looks cut off: </div>
<div><img src="cid:part18.04060204.04050007@is.pw.edu.pl" alt="Inline
image 1" height="454" width="432"><br>
</div>
<div><br>
</div>
<div>Here is the
code I used to
get this plot:</div>
<div><img src="cid:part19.09030900.01090601@is.pw.edu.pl" alt="Inline
image 2" height="201" width="454"><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<font face="Arial" size="2">PUBLIC
RECORDS NOTICE: In
accordance with NRS Chapter
239, this email and
responses, unless otherwise
made confidential by law,
may be subject to the Nevada
Public Records laws and may
be disclosed to the public
upon request.</font>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
ncl-talk mailing list
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre cols="72">--
-------------------------------------------------------------------------
Lech Łobocki, Ph.D., D.Sc.
Professor,
Department of Environmental Engineering
Warsaw University of Technology
00-653 Warszawa, Nowowiejska 20, Poland
Tel. <a href="tel:%2B48%2822%29%20234-7606" value="+48222347606" target="_blank">+48(22) 234-7606</a>
fax: <a href="tel:%2B48%2822%29%20625-4305" value="+48226254305" target="_blank">+48(22) 625-4305</a>
e: <a href="mailto:lech.lobocki@is.pw.edu.pl" target="_blank">lech.lobocki@is.pw.edu.pl</a>
<a href="http://www.meteo.is.pw.edu.pl/" target="_blank">http://www.meteo.is.pw.edu.pl/</a>
-------------------------------------------------------------------------
</pre>
</font></span></div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>