<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/">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">sgpco2flx4mC1.b1.20171221.001500.nc</a>>; No such file or directory<br><br>fatal:file (f) isn't defined<br>fatal:["Execute.c":8640]:Execute: 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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 "arm_sgp_trend_line_diurnal.<wbr>ncl", and subroutine is "plot_arm_sgp_trend_line_<wbr>diurnal.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>______________________________<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>