Hej Joao,<br><br>I think the problem is that the log-function is defined within the grads-commands, but not within the script-commands, ie. you can use it in a script within two apostrophes but not without.<br><br>Try this:<br>
'd log('pres')'<br>logpp=subwrd(result,4)<br><br>result is a script variable which contains the output from the grads-command. it looks like:<br>Result value = 4.60517<br> The subwrd picks the 4th word of "result"<br>
<br>Regards till Johannes!<br><br>Cheers,<br>Heiner<br><br><div class="gmail_quote">2010/4/6 Joćo Teixeira <span dir="ltr"><<a href="mailto:a38978@ua.pt">a38978@ua.pt</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there<br>
<br>
I've been trying to use the mathematical function, log( ), in one of my scripts, but GrADS always tells me that the function doesn't exist. Have any of you know how to use this mathematical function in the scripting language?<br>
In attachment I send the script.<br>
<br>
Cheers<br><font color="#888888">
Joćo Teixeira<br>
</font><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><br clear="all"><br>-- <br>Heiner Körnich <br>Dept. of Meteorology Tel: +46 8 164333<br>Stockholms University, SE-106 91 Stockholm, Sweden<br>Email: <a href="mailto:heiner@misu.su.se">heiner@misu.su.se</a> <a href="http://www.misu.su.se/~heiner/">www.misu.su.se/~heiner/</a><br>