Curl on surface of unit sphere

1 次查看(过去 30 天)
Jon
Jon 2018-6-30
I have vectors of longitude and latitude on an approximately uniform grid (actually uniform is impossible) on the surface of a unit circle. This grid does not cover the whole sphere. At each point of this grid I have a local azimuth angle for a vector tangent to the sphere (as defined by the mapping toolbox function "distance") and a magnitude of a value measured in this direction. How would I got about calculating the curl at each grid point?
So that's a somewhat irregular vector of two spherical coordinate angles, a vector of azimuth tangent to the sphere at each coordinate, and the magnitude, and I want to calculate the curl at each coordinate.
When I try to do this approximately by just doing it locally and treating the problem in a flat plane the curl function says U,V must all be size 2x2 or greater. That's trying
if true
[angle,az] = distance(lat1,long1,all_lat,all_long);
x = angle.*cos(az);
y = angle.*sin(az);
u = mag.*cos(az2); %thats the local azimuth of the sphere tangent
v = mag.*sin(az2);
[curlz,cav]= curl(x,y,u,v);
end

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

产品


版本

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by