<div dir="ltr"><div><div>Hi Zhifeng,<br><br></div>I was able to run your script using 6.3.0, and as with 6.4.0, I get a plot and do not get a SEGV. So I'm not sure what to say at this point. We *might* be able to get some insight by running ncl under gdb, and then performing a stack-trace once the SEGV occurs (let me know offline if you're unsure how to do this). <br><br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 30, 2018 at 10:20 AM, Zhifeng Yang <span dir="ltr"><<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@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">Hi Rick,<div><br></div><div>Yes, you are right. I can run the script on NCL 6.4, but not on NCL 6.3. We are trying to install NCL 6.4 on our computer. However, can you run the script on NCL 6.3? If you can, I am wondering whether you will have the same error. And what caused this error? I narrowed down the error to that specific statement in gsn_code.ncl. However, I can not figure out why that statement caused the error. It's very interesting and may be a potential bug in NCL. I just guess.</div><div><br></div><div>Best,</div><div>Zhifeng</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 30, 2018 at 12:08 PM, Rick Brownrigg <span dir="ltr"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</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"><div>I was able to run your script, which produced the attached plot. It also produced the printed output below. The syntax error related to debugging print statements you perhaps added to gsn_code.ncl (a print statement would not be valid within a create-block), and the error at the end is because I don't have all the file. But otherwise, its working fine with the development version of NCL. Are you able to upgrade to 6.4.0?<br><br></div>Rick<br><br>$ ncl arm_sgp_trend_line_diurnal.ncl <br> Copyright (C) 1995-2017 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.5.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>fatal:syntax error: line 12347 in file ./gsn_code.ncl before or near print <br>print<br>----^<br><br>(0) AAA01<br>(0) NOW WORKING ON : 20171220<br>(0) AAA02<br>(0) AAA03<br>(0) BBB03<br>(0) BBB01<br>(0) CC01<br>(0) CC02<br>(0) CC04<br>(0) CC08<br>(0) CC11<br>(0) CC12<br>(0) CC13<br>(0) DD05<br>(0) DD09<br>(0) DD10<br>(0) GG01<br>(0) GG05<br>(0) GG07<br>(0) GG06<br>(0) GG02<br>(0) GG03<br>(0) DD08<br>(0) DD07<br>(0) DD06<br>(0) DD02<br>(0) CC03<br>(0) BBB02<br>(0) NOW WORKING ON : 20171221<br>(0) AAA02<br>warning:_NclOpenFile: cannot open file <./<a href="http://sgpco2flx4mC1.b1.20171221.001500.nc" target="_blank">sgpco2flx4mC1.b1.20171221.0<wbr>01500.nc</a>>; No such file or directory<br><br>fatal:file (f) isn't defined<br>fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 70 in file arm_sgp_trend_line_diurnal.ncl<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-8409709691791860529h5">On Fri, Apr 27, 2018 at 3:01 PM, Zhifeng Yang <span dir="ltr"><<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@gmail.com</a>></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="m_-8409709691791860529h5"><div dir="ltr"><div><div><div><div><div>Hi all,<br><br></div>I got a segmentation fault error while executing the following statement calling from gsn_code.ncl<br><br> plot_object = create wksname + "_xy" xyPlotClass wks<br> "xyCoordData" : data_object<br><br></div>Here is the exact error.<br><br>Segmentation fault (core dumped)<br><br></div>The NCL version is 6.3.0. I also attached the ncl code and data. The main code is "<a href="http://arm_sgp_trend_line_diurnal.nc" target="_blank">arm_sgp_trend_line_diurnal.nc</a><wbr>l", and subroutine is "plot_arm_sgp_trend_line_diurn<wbr>al.ncl". <br><br>and also the log file using "ncl -x code.ncl" (file name is ncl_x_code.txt)<br><br></div>Best,<br></div>Zhifeng<br><br><div><div><br><br></div></div></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></div>
</div></div></blockquote></div><br></div>