Skip to content

jason-tilley/gridutils-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 

Repository files navigation

##gridutils

gridutils provides C library functions and command line utilities for working with curvilinear grids. gridutils has been developed and used mainly for grids generated by gridgen, but can be used to handle arbitrary 2D structured quadrilateral simply connected multi-corner grids. The recent addition (from v. 1.02) of kd-tree based mappings makes it now possible to map non-simply-connected grids, such as tri-polar ORCA grids.

Contains the following utilities:

  • getbound - extracts the bounding polygon
  • getnodes - validates and converts grids between double density, center and corner formats
  • gridbathy - interpolates scattered data onto the grid
  • insertgrid - inserts nodes from one grid into another at a specified location in index space
  • setbathy - given a three-column data file (X Y Z), sets Z values in specified index range to the specified value
  • subgrid - extracts nodes for a subgrid specified by index range
  • xy2ij - converts point coordinates between physical and index spaces

To build the interpolation utility gridbathy one needs to install nn, a Natural Neighbours interpolation library and csa, a cubic spline approximation library. Apart from that gridutils does not depend on other codes.

Checkout gridutils by running git clone https://github.com/sakov/gridutils-c or svn checkout https://github.com/sakov/gridutils-c

About

Utilities for curvilinear multi-corner grids

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 89.8%
  • Shell 5.3%
  • MATLAB 4.5%
  • Other 0.4%