Difference between revisions of "Grid Generation"

From WikiROMS
Jump to navigationJump to search
Line 7: Line 7:




A GUI-based Matlab program for creating curvilinear orthogonal grids with 4 corners  
A GUI-based Matlab program for creating curvilinear orthogonal grids with 4 corners


http://woodshole.er.usgs.gov/operations/modeling/seagrid/seagrid.html
http://woodshole.er.usgs.gov/operations/modeling/seagrid/seagrid.html


Some useful m-files for working with SEAGRID are
SEAGRID creates Matlab .mat files that can be converted into ROMS grid files using the "seagrid2roms.m"
routine.


* join_cst.m: Turn coastline segments (e.g. from the [http://rimmer.ngdc.noaa.gov/coast/ Coastline Extractor]) into land mask polygons.
Some useful additional m-files for working with SEAGRID are
 
* join_cst.m: Turn coastline segments (e.g. from the [http://rimmer.ngdc.noaa.gov/coast/ Coastline Extractor]) into coastline polygons that will then mask land when used in SEAGRID.
* read_srtm30plus.m: Read SRTM30+ worldwide 30sec (~1km) topography via Web Mapping Service.  
* read_srtm30plus.m: Read SRTM30+ worldwide 30sec (~1km) topography via Web Mapping Service.  



Revision as of 13:32, 3 October 2007

Grid Generation

ROMS uses an Arakawa "C" Grid. The grid can be specified using analytical functions or with a netcdf file. To create a netcdf grid file, there are several grid generation tools.


SEAGRID

A GUI-based Matlab program for creating curvilinear orthogonal grids with 4 corners

http://woodshole.er.usgs.gov/operations/modeling/seagrid/seagrid.html

SEAGRID creates Matlab .mat files that can be converted into ROMS grid files using the "seagrid2roms.m" routine.

Some useful additional m-files for working with SEAGRID are

  • join_cst.m: Turn coastline segments (e.g. from the Coastline Extractor) into coastline polygons that will then mask land when used in SEAGRID.
  • read_srtm30plus.m: Read SRTM30+ worldwide 30sec (~1km) topography via Web Mapping Service.

These tools are part of the RPSstuff Matlab toolbox available via SVN:

 svn co https://svn1.hosted-projects.com/cmgsoft/m_cmg/trunk/RPSstuff  rps_stuff 

GRIDGEN by Pavel Sakov

A C program for creating curvilinear orthogonal grids with an arbitrary number of corners

http://www.marine.csiro.au/~sakov/ (scroll down Pavel's page to the section on "orthogonal grid generation")