Question about bathmetry data.mat file for seagrid

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
yuri
Posts: 1
Joined: Thu Jan 21, 2010 5:02 pm
Location: Institute of LowTemperature Science, Hokkaido Univ

Question about bathmetry data.mat file for seagrid

#1 Post by yuri » Wed Mar 03, 2010 7:00 am

Hi
I am a beginner in ROMS. I am trying to make grid data using seagrid.
The bathmerty data is need to be loaded in seagrid as .mat file.
However, My data file is netcdf and it contains loguitude, latitude and depth data. Seagrid needs xbaty, ybathy and zbathy data in .mat format.
How can I make .mat data from my netcdf depth data?
Is there any library or file in subversion?

leonjld
Posts: 51
Joined: Fri Feb 27, 2004 6:30 pm
Location: NOAA/NESDIS/STAR

Re: Question about bathmetry data.mat file for seagrid

#2 Post by leonjld » Thu Mar 04, 2010 1:59 am

1. read longitude, latitude, and bathymetry vectors from netcdf into matlab workspace,
2. rename the variables to xbathy, ybathy and zbathy, respectively, and
3. save them into data.mat.

Post Reply