File: grib.rb

package info (click to toggle)
ruby-grib 0.4.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 444 kB
  • sloc: ansic: 708; ruby: 708; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require "narray_miss"
require "date"
require "numru/grib/setenv.rb"
require "numru/grib/version.rb"
require "numru/grib.so"
require "numru/grib/grib.rb"

if defined?(NumRu::NArray)
  unless NumRu::Grib::SUPPORT_BIGMEM
    $stderr.print <<EOM
rb-grib was compiled with NArray but NumRu::NArray is used.
Check and use consistent narray!
EOM
    raise LoadError, "failed to load rb-grib"
  end
else
  if NumRu::Grib::SUPPORT_BIGMEM
    $stderr.print <<EOM
rb-grib was compiled with NumRu::NArray but NArray is used.
Check and use consistent narray!
EOM
    raise LoadError, "failed to load rb-grib"
  end
end