<div dir="ltr"><pre><br>I am trying to calculate and plot stream function for ionosheric plasma<br>drifts (2D vector field similar to wind field), and I come across this NCL <br>function (uv2sfvpf) which seems to be what I need.<br>But I am not a NCL user and I am using IDL to write my own analysis codes.<br>I wonder if you could point me to the source code behind the "uv2sfcpf"<br>function so that I can modify it for my purpose.<br><br>Rick Brownrigg kindly pointed me to "sph2W.c" and "sp2_util_dp.f" on Github. However these<br></pre><pre>are not the source codes for calculating the stream function.<br><br></pre><pre>I apologize if this is not the right group for posting such a question. But<br></pre><pre>I would appreciate nay help that you might offer.<br></pre><pre>Thanks,</pre><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><div><div>-------------------------------------------------------------------<br>Gang Lu<br></div>High Altitude Observatory<br></div>National Center for Atmospheric Research<br></div>3080 Center Green Drive, Boulder, CO 80301<br></div><div>email: <a href="mailto:ganglu@ucar.edu" target="_blank">ganglu@ucar.edu</a><br></div><div>Phone: 303-497-1554 (office); 303-495-9990 (cell)<br></div><div>Fax: 303-497-1589<br>------------------------------------------------------------------<br></div></div></div></div></div>