File: README.rdoc

package info (click to toggle)
ruby-grib 0.4.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 448 kB
  • sloc: ansic: 708; ruby: 708; makefile: 4
file content (57 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
= 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

* Ruby (http://www.ruby-lang.org/)
* NumRu-NArray (https://github.com/seiya/numru-narray) or NArray (https://masa16.github.io/narray/index.html)
* NArrayMiss (http://ruby.gfd-dennou.org/products/narray_miss/)
* GRIB API (http://www.ecmwf.int/products/data/software/grib_api.html)


= 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