write x,y coordinates instead of lat/lon into output files

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
xupeng66
Posts: 79
Joined: Sat Mar 06, 2010 3:38 pm
Location: University of Washington

write x,y coordinates instead of lat/lon into output files

#1 Unread post by xupeng66 »

Hi All,

I found that the coordinates in the output netcdf files (e.g., ocean_his.nc) of my simulation are lat/lon despite that I only defined the x/y coordinates of each grid points in the grid file. The lat/lon coordinate variables in the output files are all zero matrices. I am wondering if the there is a switch or setting in ocean.in that can change the lat/lon coordinates in the output files to x/y?

Thanks!

Guangyu

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

Re: write x,y coordinates instead of lat/lon into output fil

#2 Unread post by kate »

There's a switch, all right, but it's in the grid file, not ocean.in. It is called "spherical" and is true for lat/lon grids, false for x/y grids.

xupeng66
Posts: 79
Joined: Sat Mar 06, 2010 3:38 pm
Location: University of Washington

Re: write x,y coordinates instead of lat/lon into output fil

#3 Unread post by xupeng66 »

Got it. Thanks a lot!

Post Reply