<div dir="ltr">Thank you...Also there is another function in CDO for computing trend....which is as follows...<div>
<span style="color:rgb(38,50,56);font-family:Roboto,sans-serif;text-align:left;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">cdo trend <a href="http://temp.nc">temp.nc</a> <a href="http://trend1_temp.nc">trend1_temp.nc</a> <a href="http://trend2_temp.nc">trend2_temp.nc</a></span> <br></div><div><br></div><div>out of this trend2 is the slope which we want.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 11, 2018 at 6:40 PM, Andrew Friedman <span dir="ltr"><<a href="mailto:andfried@gmail.com" target="_blank">andfried@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jayakrishnan,<br>
<br>
I don’t think what you’re doing is wrong, but you also can just display the second output, slope (s in your case).<br>
<br>
USAGE: ltrend <input> [<output> [<slope> [<rmse>]]]<br>
<input>: input field. Can be any GrADS expression.<br>
<output>: output field, i.e., fitted trend line. Default=<input>.<br>
<slope>: slope of fitted trend line, i.e., change of <input> per time step.<br>
<rmse>: root mean square error.<br>
<br>
-Andrew<br>
<div><div class="h5"><br>
> On Jun 11, 2018, at 5:56 AM, Jayakrishnan P.R <<a href="mailto:prjayakrishnan@gmail.com">prjayakrishnan@gmail.com</a>> wrote:<br>
> <br>
> Dear Users,<br>
> I would like to calculate the spatial linear trend of temperature using long-term data and plot it using grads <a href="http://ltrend.gs" rel="noreferrer" target="_blank">ltrend.gs</a>. I would like to get a single plot which depicts the spatial trend at each grid point from t=1, t= last. I am doing like this. Kindly correct me if I am wrong.<br>
> <br>
> open <a href="http://temp.nc" rel="noreferrer" target="_blank">temp.nc</a><br>
> <br>
> 'set t 1 last'<br>
> 'ltrend mx2t mx2tl s e'<br>
> 'set t 1'<br>
> 'define a=mx2tl'<br>
> 'set t last'<br>
> 'define b=mx2tl'<br>
> 'set gxout shaded'<br>
> 'd b-a'<br>
> <br>
> The obtained figure for the trend is attached herewith. Kindly help me to check I am right or wrong. <br>
> I am subtracting the last trend with the first trend to obtain a spatial map of the trend. <br>
> Thanks<br>
> Jayakrishnan<br>
> <br>
> <br>
> -- <br>
> Sincerely<br>
> <br>
> ******************************<wbr>********************<br>
> Dr. Jayakrishnan P.R<br>
> Post Doctoral Research Fellow<br>
> Science Technology Building<br>
> School of System Science<br>
> Beijing Normal University<br>
> No. 96 XInjiekouwai Street<br>
> Beijing 100875<br>
> China<br>
> Tel: +86-188 11005715<br>
> <br>
> ******************************<wbr>**********************<br>
> <br>
> <br>
> <br>
> <br>
</div></div>> <trend.png>___________________<wbr>____________________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/<wbr>listinfo/gradsusr</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px">Sincerely</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">**************************************************</div><div style="font-size:12.8px">Dr. Jayakrishnan P.R</div><div style="font-size:12.8px">Post Doctoral Research Fellow</div><div style="font-size:12.8px"><div style="font-size:12.8px"><span style="font-size:12.8px">Science Technology Building</span><br></div><div style="font-size:12.8px">School of System Science</div><div style="font-size:12.8px">Beijing Normal University</div><div style="font-size:12.8px">No. 96 XInjiekouwai Street</div><div style="font-size:12.8px">Beijing 100875</div><div style="font-size:12.8px">China</div></div><div style="font-size:12.8px"><span style="font-size:12.8px">Tel: +86-188 11005715</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px">****************************************************</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><br></div></div></div></div></div></div>
</div>