What’s rb-GRIB

rb-GRIB is a class library to handle GRIB file.

rb-GRIB home-page

The URL of the rb-GRIB home-page is:

http://ruby.gfd-dennou.org/products/rb-grib/

Requires

Install

# gem install rb-grib

Copying

See the file LICENSE.txt.

Usage

To use this library, put the following in your script.

require 'numru/grib'

Example

require 'numru/grib'
include NumRu

filename = "test.grib"
grib = Grib.open(filename)
varnames = grib.var_names # => Array
varnames.each do |vname|
   var = grib.var(vname) # => GribVar
   dimnames = var.dim_names # => Array
   ary = var.get # => NArray
end
grib.close

The Author

Feel free to send comments and bug reports to the author. The author’s e-mail addess is

seiya@gfd-dennou.org