<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>recline automatically strips out all _FillValue. <br><br>Sent from my iPhone</div><div><br>On Oct 6, 2017, at 1:50 AM, Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com">barry.h.lynn@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hello:<div><br></div><div>I'd like to use regline, and I don't always know how many points might be in the data. For example, if I want to look at 10 points, but one of them is missing, then when I calculate the slope of the line it will include a missing value.</div><div><br></div><div>I am wondering how I might skip a missing value, and only calculate the line for present 9 points.</div><div><br></div><div>Thanks,</div><div><br></div><div>Barry</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 6, 2017 at 7:08 AM, saurabh rathore <span dir="ltr"><<a href="mailto:rohitsrb2020@gmail.com" target="_blank">rohitsrb2020@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 class="gmail_default" style="color:rgb(0,0,0)">Thank you Kevin for your help in modifying my script.</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">regards, saurabh<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Oct 6, 2017 at 10:05 AM, Kevin Hallock <span dir="ltr"><<a href="mailto:hallock@ucar.edu" target="_blank">hallock@ucar.edu</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="h5"><div style="word-wrap:break-word">Hi Saurabh,<div><br></div><div>I have attached a modified version of your script, “depth_trend_line_mod.ncl”. One major change is that it now checks the output of the regline_stats() function to make sure the result is not a missing value.</div><div><br></div><div>The issue I found was that during the first iteration of your loop (i=0), the value returned by regline_stats() contained a missing value and did not have the “b95” attribute.</div><div><br></div><div>Also, I chose to explicitly declare temp (“temp = new(1, double)”) before the loop, instead of implicitly declaring it inside the loop (“temp = regline_stats(time,ts(i,:))”). When regline_stats() experiences an error, the value returned is a float instead of a double, which causes issues in later iterations of the loop (with an error such as “fatal:["NclVar.c":1390]:Assig<wbr>nment type mismatch, right hand side can't be coerced to type of left hand side”).</div><div><br></div><div>I hope this helps!</div><span class="m_7042604466134437378HOEnZb"><font color="#888888"><div>Kevin</div><div></div></font></span></div><br></div></div><div style="word-wrap:break-word"><div></div><div><div><blockquote type="cite"><div><div class="h5"><div>On Oct 4, 2017, at 1:15 AM, saurabh rathore <<a href="mailto:rohitsrb2020@gmail.com" target="_blank">rohitsrb2020@gmail.com</a>> wrote:</div><br class="m_7042604466134437378m_5770455449707754104Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr"><div class="gmail_default">Dear NCL users,</div><div class="gmail_default"><br></div><div class="gmail_default">I am trying to save the regression coefficient value from a 2d variable which is in depth and time and also its 95% confidence interval i.e. b95 in regliine_stat function. I want to save the upper and lower bound value of b95 but somehow the function is not working. Please help me out for this. I am attaching the data file and the code that I am using.</div><div class="gmail_default"><br></div><div class="gmail_default">regards, saurabh<br clear="all"></div><br>-- <br><div class="m_7042604466134437378m_5770455449707754104gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><font size="4" color="#0000ff"><b><br></b></font></div><div><font size="4" color="#0000ff"><b><br></b></font></div><font size="4" color="#0000ff" face="times new roman, serif"><b>REGARDS</b></font><div><font size="4" color="#0000ff" face="times new roman, serif"><b><br></b></font><div><font size="4" color="#0000ff" face="times new roman, serif"><b>Saurabh Rathore</b></font></div><div><font size="4" color="#0000ff" face="times new roman, serif"><b>Research Scholar (PhD.)</b></font></div><div><font size="4" color="#0000ff" face="times new roman, serif"><b>Centre For Oceans, Rivers, Atmosphere & Land Science Technology</b></font></div><div><font size="4" color="#0000ff" face="times new roman, serif"><b>Indian Institute Of Technology, Kharagpur</b></font></div><div><font size="4" color="#0000ff" face="times new roman, serif"><b>contact :- 91- 8345984434</b></font></div></div></div></div></div></div>
</div>
</div></div><span id="m_7042604466134437378m_5770455449707754104cid:847AB46E-0301-4ACA-8418-A4DED593987C@scd.ucar.edu"><depth_trend_line.ncl></span><span id="m_7042604466134437378m_5770455449707754104cid:62A53A51-9067-4C41-B009-A8CE1902E03D@scd.ucar.edu"><<a href="http://heat_gd1.nc" target="_blank">heat_gd<wbr>1.nc</a>></span>_________________________<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" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br></div></blockquote></div><br></div></div><br></blockquote></div><span class=""><br><br clear="all"><br>-- <br><div class="m_7042604466134437378gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><font color="#0000ff" size="4"><b><br></b></font></div><div><font color="#0000ff" size="4"><b><br></b></font></div><font color="#0000ff" size="4" face="times new roman, serif"><b>REGARDS</b></font><div><font color="#0000ff" size="4" face="times new roman, serif"><b><br></b></font><div><font color="#0000ff" size="4" face="times new roman, serif"><b>Saurabh Rathore</b></font></div><div><font color="#0000ff" size="4" face="times new roman, serif"><b>Research Scholar (PhD.)</b></font></div><div><font color="#0000ff" size="4" face="times new roman, serif"><b>Centre For Oceans, Rivers, Atmosphere & Land Science Technology</b></font></div><div><font color="#0000ff" size="4" face="times new roman, serif"><b>Indian Institute Of Technology, Kharagpur</b></font></div><div><font color="#0000ff" size="4" face="times new roman, serif"><b>contact :- 91- 8345984434</b></font></div></div></div></div></div></div>
</span></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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>ncl-talk mailing list</span><br><span><a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a></span><br><span>List instructions, subscriber options, unsubscribe:</span><br><span><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></span><br></div></blockquote></body></html>