<div dir="ltr">Dear User,<div><br></div><div>I have tried your command lines with a gridded dataset I have. These command lines are running fine. I am getting and proper numeric value output. Please check your dataset extent. Or I would suggest work the same script with another gridded dataset, then maybe you can figure out the problem. Or explain the problem in greater detail on gradsuser.</div>
<div><br></div><div>Regards</div><div>Amulya</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 22, 2013 at 2:32 AM, juan pablo sierra perez <span dir="ltr">&lt;<a href="mailto:elviejojuanpi@hotmail.com" target="_blank">elviejojuanpi@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hello<div><br></div><div>I am writing a script and I want to extract the maximum value of a variable and save it like a single number in a single variable</div><div>the code is showed below:</div><div>
<br></div><div>&#39;mmax=max(max(&#39;var&#39;, lat=-15, lat=20), lon=-90, lon=0)&#39;</div><div>&#39;mmin=min(min(&#39;var&#39;, lat=-15, lat=20), lon=-90, lon=0)&#39;</div><div>dif=mmax-mmin</div><div><br></div><div>the &quot;dif&quot; variable have an error, it says: Non numeric  args ti numeric operation</div>
<div><br></div><div>I have tried defining the variables mmax and mmin but it doesnt work, what can I do?</div><div><br></div><div>Than you very much in advance </div><span class="HOEnZb"><font color="#888888"><div><br></div>
<div>Juan</div>                                               </font></span></div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>