<div dir="ltr"><div>The problem is that you did not specify time correctly. See attached script and plot.</div><div><br></div><div></div><div>Please next time send a cleaner code, for example, there was a part which needed a shapefile. I turned it off ...</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 20, 2018 at 9:35 PM, Kunal Bali <span dir="ltr"><<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@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"><img class="m_7647522974892141691mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/ea62cbf8b054bbd56cc5a526ddd93f1c62584647.png?u=2827700" width="0" height="0"><div>sorry for the late reply. <br></div><div><br></div><div>please find the data and script in the attached file. <br></div><div><br></div><div><br></div>thanks for sharing your thoughts.<span class=""><br clear="all"><div><div><div dir="ltr" class="m_7647522974892141691gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>---<br></div><div><font size="2"><span>Kunal Bali<br></span></font></div><br><div><br></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br><div class="m_7647522974892141691mt-signature">
<a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality1&" class="m_7647522974892141691mt-signature-logo" style="text-decoration:none" target="_blank"> <img src="https://s3.amazonaws.com/mailtrack-signature/sent_with_mailtrack.png" alt="Mailtrack" width="16" height="14"> </a> <font style="color:#777">Sent with <a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality1&" class="m_7647522974892141691mt-install" target="_blank">Mailtrack</a> </font>
</div></div></span></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Tue, Jun 19, 2018 at 9:10 PM Rashed Mahmood <<a href="mailto:rashidcomsis@gmail.com" target="_blank">rashidcomsis@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>It would be easier to diagnose if there is more information, especially a clean script and the data file, if possible.</div><div><br></div><div>However, from the variable summary, I am wondering why min/max are equal to missing values? <b>vmax : 1e+15 vmin : -1e+15</b></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 19, 2018 at 2:15 AM, Kunal Bali <span dir="ltr"><<a href="mailto:kunal.bali9@gmail.com" target="_blank">kunal.bali9@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"><img class="m_7647522974892141691m_-5264536847094941135m_-2752945344646428820mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/d0c20a1f437ae5251387ffb2645d9ce81d0162db.png?u=2827700" width="0" height="0"><div></div><div>I tried to calculate the trend using <br></div><div><br></div><div> ts = var_a(lat|:,lon|:,time|:)<br> time = ts&time <br> rc = regCoef(time,ts)</div><div> printVarSummary(<span class="m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr_ m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr_288 m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr-alert m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr_spell m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr_inline_cards m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr_disable_anim_appear m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-ContextualSpelling m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-ins-del m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-multiReplace" id="m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-288">rc</span>)<br> printMinMax(<span class="m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr_ m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr_289 m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr-alert m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr_spell m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr_inline_cards m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-gr_disable_anim_appear m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-ContextualSpelling m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-ins-del m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-multiReplace" id="m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail-289">rc</span>,0) (<a href="https://www.ncl.ucar.edu/Applications/Scripts/regress_2.ncl" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/Scripts/regress_<wbr>2.ncl</a>)<br><br></div><div><br></div><div>Script run perfectly and able to generate the plot but the values are not coming correctly. <br></div><div><br></div><div>Summary of the file is<br></div><div><br>Variable: var_a<br>Type: float<br>Total Size: 231552 bytes<br> 57888 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 18] x [lat | 67] x [lon | 48]<br>Coordinates: <br> time: [22200..8964600]<br> lat: [ 5.. 38]<br> lon: [68.125..97.5]<br>Number Of Attributes: 8<br> standard_name : fractional_area_of_land_<wbr>snowcover<br> long_name : fractional_area_of_land_<wbr>snowcover<br> units : 1<br> _FillValue : 1e+15<br> missing_value : 1e+15<br> fmissing_value : 1e+15<br> vmax : 1e+15<br> vmin : -1e+15<br><br>Variable: rc<br>Type: double<br>Total Size: 25728 bytes<br> 3216 values<br>Number of Dimensions: 2<br>Dimensions and sizes: [67] x [48]<br>Coordinates: <br>Number Of Attributes: 5<br> _FillValue : 999999986991104<br><span style="color:rgb(0,0,255)"><b> nptxy : <ARRAY of 3216 elements><br> rstd : <ARRAY of 3216 elements><br> yintercept : <ARRAY of 3216 elements><br> tval : <ARRAY of 3216 elements></b></span><br><b><span style="color:rgb(255,0,0)">(0) <span style="color:rgb(0,0,0)">min=-2.29406853917466<span style="color:rgb(255,0,0)">e-08 </span> max=7.240543557223994<span style="color:rgb(255,0,0)">e-08</span></span></span><br></b></div><div><br></div><div><br></div><div><br></div><div>please provide some information on that.<br></div><div><div><div dir="ltr" class="m_7647522974892141691m_-5264536847094941135m_-2752945344646428820gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>---<br></div><div><font size="2"><span>Kunal Bali<br></span></font></div><div><font size="2"><span><br></span></font></div><div><b><br></b></div><div><br></div><div><p style="margin:0px;border-collapse:collapse;font-family:Tahoma,Verdana;font-size:12px"><font color="#1F497D"><br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="m_7647522974892141691m_-5264536847094941135m_-2752945344646428820mt-signature">
<a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality1&" class="m_7647522974892141691m_-5264536847094941135m_-2752945344646428820mt-signature-logo" style="text-decoration:none" target="_blank">
<img src="https://s3.amazonaws.com/mailtrack-signature/sent_with_mailtrack.png" alt="Mailtrack" width="16" height="14">
</a>
<font style="color:#777">Sent with
<a href="https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality1&" class="m_7647522974892141691m_-5264536847094941135m_-2752945344646428820mt-install" target="_blank">Mailtrack</a>
</font>
</div></div>
<br>______________________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>