team-ocean / veros

The versatile ocean simulator, in pure Python, powered by JAX.
https://veros.readthedocs.io
MIT License
326 stars 55 forks source link

Changing grid resolution and a closed ITF in global_4deg setup #396

Open Sougata18 opened 1 year ago

Sougata18 commented 1 year ago

How to change the grid resolution of global_flexible setup ?

Also while plotting some of the variables from the '4deg.snapshot.nc' output file from global_4deg setup I got a closed ITF ( Indonesian Throughflow) . How to open ITF channel so that I can include the throughflow in my output files.

Thanks!

dionhaefner commented 1 year ago

How to change the grid resolution of global_flexible setup ?

Just change the number of grid cells (nx, ny, nz).

Also while plotting some of the variables from the '4deg.snapshot.nc' output file from global_4deg setup I got a closed ITF ( Indonesian Throughflow) . How to open ITF channel so that I can include the throughflow in my output files.

You will have to find the index of the grid cells that you want to convert to water and change vs.kbot to something larger than 0 (corresponding to the desired depth index of the cell) in set_topography. There are many ways to do this and no unique recipe. You can look at how this is done in the 1 degree case for the Aleutian islands, for example.