Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot understand the arguments of pyroms.grid.get_ROMS_grid #52

Open
lj-cug opened this issue Apr 2, 2024 · 1 comment
Open

I cannot understand the arguments of pyroms.grid.get_ROMS_grid #52

lj-cug opened this issue Apr 2, 2024 · 1 comment

Comments

@lj-cug
Copy link

lj-cug commented Apr 2, 2024

For the example, /example/Yellow_Sea/make_YELLOW_grd_v2.py

How can I run the following script:
grd_v1 = pyroms.grid.get_ROMS_grid('YELLOW')
using my own arguments?
What's the meaning of gridid?
I don't understand the hist_file and grid_file. Could you please give me an example?

Thanks
Li Jian

@kshedstrom
Copy link
Collaborator

The ID there, "YELLOW", is a key into the gridid.txt file. The YELLOW chunk there tells the location of the horizontal grid, plus information about the vertical grid structure:

id      = YELLOW
name    = YELLOW
grdfile = /home/romsuser/Yellow_Sea/yellow_sea_grid.nc
N       = 42
grdtype = roms
Vtrans  = 1 
theta_s = 5 
theta_b = 0.4 
Tcline  = 5 

I have always added my domains to the gridid.txt file so that I haven't needed to use the other form:
grd_v1 = pyroms.grid.get_ROMS_grid('GREEN', zeta=zeta, hist_file='path_to_green_hist.nc', grid_file='path_to_green_grid.nc')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants