All,<br><br>&nbsp; See examples below for computing chi/psi with fish() on Windows. <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Arlindo<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">See Hai Ooi</b> &lt;<a href="mailto:axl419@yahoo.com">axl419@yahoo.com</a>&gt;<br>
Date: Feb 3, 2008 5:16 PM<br>Subject: Re: building psichig.exe using pgf90 or g77 FORTRAN compiler<br>To: Arlindo da Silva &lt;<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>&gt;<br><br><br>Dear Mr Arlindo,<br>
<br> &nbsp; &nbsp; It works. &nbsp;Please see the attached <a href="http://ps.gs" target="_blank">ps.gs</a><br>(modified short version of your utFish.gs) and the<br>last output of velocity potential in VP.doc.<br><br> &nbsp; &nbsp; Thank you very much indeed.<br>
<div class="Ih2E3d"><br> &nbsp; &nbsp; Best regards.<br><br>Ooi<br><br><br><br>--- Arlindo da Silva &lt;<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>&gt; wrote:<br><br></div><div class="Ih2E3d">&gt; Hi,<br>&gt;<br>
&gt; Look under<br>&gt;<br>&gt; <a href="http://opengrads.org/pre-rel/win32/" target="_blank">http://opengrads.org/pre-rel/win32/</a><br>&gt;<br>&gt; file grads-1.9.0-rc1.win32_gex.zip. Unzip, and<br>&gt; replace the win32/gex folder<br>
&gt; in your original PCGrADS with then one here. Also,<br>&gt; copy utFish.gs included<br>&gt; under lib/ here to your lib folder.<br>&gt;<br>&gt; Start grads and type utFish. It shoudl work. Also,<br>&gt; read the script<br>
&gt; carefully.<br>&gt;<br>&gt; Let me know if this works.<br>&gt;<br>&gt; arlindo<br><br></div><div><div></div><div class="Wj3C7c">Send instant messages to your online friends <a href="http://uk.messenger.yahoo.com" target="_blank">http://uk.messenger.yahoo.com</a> </div>
</div><br>*<br> &nbsp;&#39;reinit&#39;<br>*<br> &nbsp;&#39;sdfopen c:\cdc2\uvw\uwnd.1997.nc&#39;<br> &nbsp;&#39;sdfopen c:\cdc2\uvw\vwnd.1997.nc&#39;<br>*<br> &nbsp;&#39;set lev 200&#39;<br>*<br> &nbsp; vars = &#39;(uwnd,vwnd.2)&#39;<br>*<br> &nbsp; &#39;set gxout shaded&#39;<br>
*<br>* Vorticity and divervenge: enlarge x-domain to avoid grid undefs<br>* ---------------------------------------------------------------<br> &nbsp;xyrange()<br> &nbsp;xmin = _xmin - 1; &nbsp;xmax = _xmax + 1<br> &nbsp;&#39;set x &#39; xmin &#39; &#39; xmax<br>
 &nbsp;&#39;vort = hcurl&#39;vars<br> &nbsp;&#39;div &nbsp;= hdivg&#39;vars<br><br>* Reset x domain so that it is not x-wrapped<br>* ------------------------------------------<br> &nbsp;xmin = _xmin; &nbsp;xmax = _xmax<br> &nbsp;&#39;set x &#39; xmin &#39; &#39; xmax<br>
<br>* Display vorticity/divergence<br>* ----------------------------<br> &nbsp;&#39;d vort&#39;; &#39;draw title Vorticity&#39;<br> &nbsp;clear()<br> &nbsp;&#39;d div&#39;; &nbsp;&#39;draw title Divergence&#39;<br> &nbsp;clear()<br>*<br>* Stream function<br>
* ---------------<br> &nbsp;&#39;psi = fish(vort)&#39;<br> &nbsp;&#39;d psi&#39;<br> &nbsp;&#39;draw title Stream Function&#39;<br> &nbsp;clear()<br>*<br>* Velocity Potential<br>* ------------------<br> &nbsp;&#39;chi = fish(div)&#39;<br> &nbsp;&#39;set gxout shaded&#39;<br>
 &nbsp;&#39;d chi&#39;<br> &nbsp;&#39;draw title Velocity Potential&#39;<br>*<br>function xyrange()<br><br> &nbsp; &nbsp; &nbsp;&#39;q file&#39;<br> &nbsp; &nbsp; &nbsp;tmp = sublin ( result, 5 )<br> &nbsp; &nbsp; &nbsp;_xmin = 1<br> &nbsp; &nbsp; &nbsp;_xmax = subwrd(tmp,3)<br> &nbsp; &nbsp; &nbsp;_ymin = 1<br>
 &nbsp; &nbsp; &nbsp;_ymax = subwrd(tmp,6)<br><br>return<br><br>function clear()<br><br> &nbsp;say &#39;Hit &lt;CR&gt; to continue...&#39;; pull ans; &#39;clear&#39;<br><br>return<br><br></div><br><br clear="all"><br>-- <br>Arlindo da Silva<br>
<a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>