Hi<br>I have made a script for plotting stream function. The script is as<br><br>'reinit'<br>'set display color white'<br>'clear'<br>'sdfopen D:/ECMWF_Monthly_Mean_data/SP/SPjun.nc'<br>'sdfopen D:/ECMWF_Monthly_Mean_data/wind/<a href="http://windjun.nc">windjun.nc</a>'<br>
count = 1<br>while (count <=5)<br> 'clear'<br> 'set grads off'<br> 'set t 'count<br> 'q time'<br>date=subwrd(result,3)<br>hour=substr(date,1,3)<br>day=substr(date,4,2)<br>month=substr(date,6,3)<br>
year=substr(date,9,10)<br>date_str=hour' 'day'/'month'/'year<br>'clear'<br>'set display color white'<br>'set map 1 1 6'<br>'set line 1 1 1'<br>'set grads off'<br>
'enable print temp'<br>'define one=1+0*lat'<br>'define um=vint(lev,q*u.2,300)'<br>'define vm=vint(lev,q*v.2,300)'<br>'define psi=fish_psi(um,vm)'<br>'define upsi=-muadv(one,psi)'<br>
'define vpsi=-mvadv(one,psi)'<br>'set cint 2'<br>'d psi/1e7'<br>'set gxout vector'<br>'d skip(upsi,4,4);skip(vpsi,4,4)'<br>*'d upsi;vpsi'<br>**'d skip(um,4,4);skip(vm,4,4)'<br>
'draw title 'year'.'month''<br>'draw string 4.5 0.3 Streamfunction for vertically integrated water vapour flux Unit:(kgs`a-1`n) x 10`a7`n'<br>'print'<br>'disable print'<br>'gxyat -x 1024 -y 840 D:/Transport/Streamplot/new'year'.png'<br>
count = count + 1<br>endwhile<br>'clear'<br><br clear="all">But the results are opposite. Means where it should show negative(positive) values it shows positive (negative).<br><br><br>any suggestion.<br><br><br>