|
Hi Feng, You could redefine your coordinate axes so their units are not longitude and latitude, for the purposes of this calculation. Then the order of the integral and derivitive can be interchanged and you should get the result you want. Ansley FENG HE wrote: Hi Ansley Thank you for your reply. Right now, I understand the curvature of earth gives the difficulty for this problem. I would like to know what is the right way to calculate the streamfunction using Kessler's script (../fu_2002/msg00155.html) Mathematically, the solution (Psi = Int{y0:y}u dy - Int{x_0:x}v(x,y_0) dx) is perfect, but in Ferret, because it could not support swapping integral and differential, I could not reproduce v using -d(Psi)/dx Best regards Feng He Center for Climate Research Atmospheric and Oceanic Sciences University of Wisconsin - Madison ----- Original Message ----- From: Ansley Manke <Ansley.B.Manke@noaa.gov> Date: Friday, March 17, 2006 10:02 am Subject: Re: [ferret_users] Why does ferret fail to support swapping integral and differential? To: FENG HE <fenghe@wisc.edu> Cc: oar.pmel.ferret_users@noaa.gov |