About output the variables "lon_rho" to the "his" and"avg" ?

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
LiuZHQ
Posts: 46
Joined: Mon Apr 06, 2009 5:12 pm
Location: The Hong Kong University of Sci&Tech

About output the variables "lon_rho" to the "his" and"avg" ?

#1 Unread post by LiuZHQ »

Hi all,
Is there any swith cotrolling outputing the variables "lon_rho", "lat_rho" to every standard output "nc" files, or the "his" and "avg" files?
Thanks and any suggestion will be welcomed.

feroda

Re: About output the variables "lon_rho" to the "his" and"avg" ?

#2 Unread post by feroda »

They will be there in your output netcdf files, unless you define 'NO_WRITE_GRID' in your CPP configuration file.

LiuZHQ
Posts: 46
Joined: Mon Apr 06, 2009 5:12 pm
Location: The Hong Kong University of Sci&Tech

Re: About output the variables "lon_rho" to the "his" and"avg" ?

#3 Unread post by LiuZHQ »

feroda wrote:They will be there in your output netcdf files, unless you define 'NO_WRITE_GRID' in your CPP configuration file.
Hi feroda, thanks for your reply, I re-checked the "avg" and "his" files and found only the "x_rho" and "y_rho" instead of "lon_rho" and "lat_rho" which I needed, and I didn't define the "NO_WRITE_GRID".
by the way, which version are you using?

feroda

Re: About output the variables "lon_rho" to the "his" and"avg" ?

#4 Unread post by feroda »

I always follow the latest version. After each update, I also put my own modified parts into the official code.

I guess your version is close to v2.x. You may want to add several lines to your code if 'lon_rho' is supposed to be output in your case.

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

Re: About output the variables "lon_rho" to the "his" and"avg" ?

#5 Unread post by kate »

Did you tell it you have a "spherical" grid? If spherical is false, it assumes you are on a flat idealized x,y plane. How did you provide the grid in the first place?

LiuZHQ
Posts: 46
Joined: Mon Apr 06, 2009 5:12 pm
Location: The Hong Kong University of Sci&Tech

Re: About output the variables "lon_rho" to the "his" and"avg" ?

#6 Unread post by LiuZHQ »

kate wrote:Did you tell it you have a "spherical" grid? If spherical is false, it assumes you are on a flat idealized x,y plane. How did you provide the grid in the first place?
Hi kate, I tried the including/excluding "spherical" from ".h" file cases and there are still not "lon_rho" in the out files.
I also run the cases using the version 3.0 and 3.2, there was no change.
A little bit strange because of one of my colleagues didn't encounter this problem in her cases, while the others were facing the same problem as mine, I'll double check their .h files too..
Just for testing the visulization software "COVE" from University of Washington.
thanks a lot

LiuZHQ
Posts: 46
Joined: Mon Apr 06, 2009 5:12 pm
Location: The Hong Kong University of Sci&Tech

Re: About output the variables "lon_rho" to the "his" and"avg" ?

#7 Unread post by LiuZHQ »

Hi kate,
you are right, I forgot to difine it in the grid file
now, the "lon_rho" appeared.
thanks very much

Post Reply