Hi,
i have some question about matlab package and seagrid package,as follows:
1) how to use the matlab package? And,what is the use of matlab package?
2) how to create a bathmetry file?
3) when i have a seagrid file, how to conversion it to netcdf format? by roms_cdl? how to do? please reply detailed
thanks a lot!
The problem about matlab package and seagrid package
-
- Posts: 6
- Joined: Mon May 11, 2009 3:52 pm
- Location: IIT Kharagpur
Re: The problem about matlab package and seagrid package
hi
just you do these things
i have used seagrid matlab program in windows
you download the seagrid matlab software and put it in matlab path.
you must add the mexcdf tools for your suitable matlab version
for extracting coastline data for your region, go through this path
https://www.myroms.org/wiki/index.php/seagrid
for getting bathymetry data, go through this path
http://www.ngdc.noaa.gov/mgg/gdas/gd_designagrid.html
after getting the data, you load data in matlab by using the commands
load filename
for coast line
lat=filename(:,1)
lon=filename(:,2)
save filename lat lon (you put whatever your interest file name for saving)
it create the coastline.mat file
it is the coast line input data for seagrid
for bathymetry
xbathy=filename(:,1)
ybathy=filename(:,2)
zbathy=filename(:,3)
save filename xbathy ybathy zbathy (you put whatever your interest filename for saving)
it creates the bathy.mat file
it is the bathymetry input data for seagrid
next you follow the seagrid tutorial
save seagrid
next onecommand is there it is
seagrid2roms
it will generate roms input gridfile in the nc format
ok bye
have a nice day
just you do these things
i have used seagrid matlab program in windows
you download the seagrid matlab software and put it in matlab path.
you must add the mexcdf tools for your suitable matlab version
for extracting coastline data for your region, go through this path
https://www.myroms.org/wiki/index.php/seagrid
for getting bathymetry data, go through this path
http://www.ngdc.noaa.gov/mgg/gdas/gd_designagrid.html
after getting the data, you load data in matlab by using the commands
load filename
for coast line
lat=filename(:,1)
lon=filename(:,2)
save filename lat lon (you put whatever your interest file name for saving)
it create the coastline.mat file
it is the coast line input data for seagrid
for bathymetry
xbathy=filename(:,1)
ybathy=filename(:,2)
zbathy=filename(:,3)
save filename xbathy ybathy zbathy (you put whatever your interest filename for saving)
it creates the bathy.mat file
it is the bathymetry input data for seagrid
next you follow the seagrid tutorial
save seagrid
next onecommand is there it is
seagrid2roms
it will generate roms input gridfile in the nc format
ok bye
have a nice day
-
- Posts: 16
- Joined: Wed Jan 11, 2017 3:25 pm
- Location: k.n.toosi University of Technology
Re: The problem about matlab package and seagrid package
hello. i download seagrid but it is not a software to install. it is just a folder that there are alot of .m file in it. i am Amateur in seagrid and matlab. please explain me how should start with seagrid? the beginnig step?
i just install matlab R2009a. what should i do next?
i just install matlab R2009a. what should i do next?
-
- Posts: 16
- Joined: Wed Jan 11, 2017 3:25 pm
- Location: k.n.toosi University of Technology
Re: The problem about matlab package and seagrid package
this is everything that i download for seagrid. is it true and enogh? but there is not any application in it to install.
- Attachments
-
- seagrid-master.zip
- (2.4 MiB) Downloaded 371 times
Re: The problem about matlab package and seagrid package
Please don't double post like this. If we're going to answer, we'll answer the first. I'm not going to answer this because I don't use Matlab.
-
- Posts: 16
- Joined: Wed Jan 11, 2017 3:25 pm
- Location: k.n.toosi University of Technology
Re: The problem about matlab package and seagrid package
ok kate.so tell me how can i download seagrid?
Re: The problem about matlab package and seagrid package
There are other places where to learn matlab, and that is probably a good place to start.