analytical coriolis with netcdf bathymetry

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
stef
Posts: 192
Joined: Tue Mar 13, 2007 6:38 pm
Location: Independent researcher
Contact:

analytical coriolis with netcdf bathymetry

#1 Unread post by stef »

Hello!

We use a grid generated with 'Roms Tools', and we changed the code in the m-files to have constant, user defined coriolis acceleration. Everytime we make a run with different f we have to generate a new grid, although the rest is the same as before.

Is there an easy way to analytically define f while using a netcdf-grid file for bathymetry?

Thanks in advance,
--Stefan

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

#2 Unread post by kate »

This shouldn't be too hard. You want it to call get_grid, then ana_grid, where ana_grid only sets the coriolis (ana_cor, perhaps). Search for where get_grid is called and call the ana routine there. Copy ana_grid to your new routine and change it to only set f, putting this file in User/Functionals or wherever you put such stuff. If you come up with a new ana_ name, you will have to tell analytical.F about it.

To be really complete, a new ana_ name will require a new value in the ANANAME array, currently dimensioned 37, where there is a literal 37 in three different files.

stef
Posts: 192
Joined: Tue Mar 13, 2007 6:38 pm
Location: Independent researcher
Contact:

#3 Unread post by stef »

Thanks for the guidance! I'll try that.
--stefan

Post Reply