convert spherical coordinate to cartesian

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
fdaryabor
Posts: 78
Joined: Wed Jan 02, 2008 3:15 pm
Location: University of Copenhagen

convert spherical coordinate to cartesian

#1 Unread post by fdaryabor »

Hi Everybody
I want convert dimension of variables for example variable of 'u' recognized by dimension of 'time', 's_rho', 'eta_rho' and 'xi_u' to 'time','depth','lon_rho' and 'lat_rho',could you please help me.
Best Regards
F.Daryabor

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: convert spherical coordinate to cartesian

#2 Unread post by kate »

You will have to interpolate and maybe extrapolate a little onto a cubic sort of grid. There's more than one way to do it. I've got an old, old code that does part of the job called roms2v5d, but I'm sure there are better ways now. The RNT package for Matlab is one way to go.

fdaryabor
Posts: 78
Joined: Wed Jan 02, 2008 3:15 pm
Location: University of Copenhagen

Re: convert spherical coordinate to cartesian

#3 Unread post by fdaryabor »

Hi
Tanks so much Kate
I have following data by following metrics, I need script or command for convert them to same metrics.
size(u) size(v) lon_rho lat_rho
104x102 103x103 104x103 104x103
could you please guide me.
Best Regards
F.Daryabor

Post Reply