[gradsusr] Function

Guilherme Martins jgmsantos at gmail.com
Thu Apr 8 09:23:20 EDT 2010


Hi users,

I need help.

I did this script below to calculate potential temperature but I don't know
how to call inside my script.

tempc = variable from my file and 700 level I want theta.

Thanks,

Guilherme.

'open se_g1.ctl'
'set gxout shaded'

gtheta(tempc,700)

function gtheta(temp,niv)
theta1 = (temp+273.15)*pow(1000/niv,0.286)
return(theta1)


-- 
-----------------------------------------------------------
José Guilherme Martins dos Santos
Grupo de Modelagem da Atmosfera e Interfaces - GMAI
Divisão de Modelagem e Desenvolvimento - DMD
Centro de Previsão de Tempo e Estudos Climáticos - INPE
Rodovia Presidente Dutra, km 39 - CEP 12630-000
Cachoeira Paulista, SP, Brasil
Telefone(CP): +55 12 3186 8502
Celular(SJC): +55 12 91678770 / +55 12 81528580
E-mail: guilherme.martins at cptec.inpe.br
E-mail alternativo: jgmsantos at gmail.com
Homepage: http://guilhermemartins.hd1.com.br/
-----------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100408/b41446d3/attachment-0003.html 


More information about the gradsusr mailing list