gphys 1.4.3.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. data/.ChangeLog.until201303 +2156 -0
  2. data/.gitignore +7 -1
  3. data/Rakefile +36 -1
  4. data/bin/gpview +75 -58
  5. data/{dim_op.c → ext/numru/gphys/dim_op.c} +4 -1
  6. data/{ext_coord.c → ext/numru/gphys/ext_coord.c} +35 -17
  7. data/{ext_init.c → ext/numru/gphys/ext_init.c} +0 -0
  8. data/ext/numru/gphys/extconf.rb +43 -0
  9. data/{interpo.c → ext/numru/gphys/interpo.c} +35 -30
  10. data/{multibitIO.c → ext/numru/gphys/multibitIO.c} +19 -15
  11. data/gphys-bigmem.gemspec +44 -0
  12. data/gphys.gemspec +4 -4
  13. data/lib/numru/dclext.rb +55 -0
  14. data/lib/numru/derivative.rb +6 -5
  15. data/lib/numru/ganalysis/met.rb +27 -10
  16. data/lib/numru/ganalysis/qg.rb +4 -3
  17. data/lib/numru/ganalysis/sph_harmonic_iso_g.rb +290 -0
  18. data/lib/numru/ggraph.rb +81 -2
  19. data/lib/numru/gphys/derivative.rb +3 -2
  20. data/lib/numru/gphys/gpcommon.rb +7 -1
  21. data/lib/numru/gphys/gphys_fft.rb +3 -3
  22. data/lib/numru/gphys/gphys_hdfeos5_io.rb +14 -13
  23. data/lib/numru/gphys/grib.rb +18 -7
  24. data/lib/numru/gphys/gtool3.rb +53 -52
  25. data/lib/numru/gphys/interpolate.rb +3 -2
  26. data/lib/numru/gphys/varraycomposite.rb +1 -1
  27. data/lib/numru/gphys/varraynetcdf.rb +38 -0
  28. data/lib/numru/gphys/version.rb +2 -1
  29. data/test/test_axis.rb +1 -5
  30. data/test/test_fitting.rb +0 -1
  31. data/test/test_gphys.rb +9 -5
  32. data/test/test_met_z.rb +1 -2
  33. data/test/test_sigma_coord.rb +0 -1
  34. metadata +36 -19
  35. checksums.yaml +0 -15
  36. data/.rspec +0 -2
  37. data/.travis.yml +0 -3
  38. data/ChangeLog +0 -7007
  39. data/extconf.rb +0 -51
  40. data/spec/gphys_spec.rb +0 -11
  41. data/spec/spec_helper.rb +0 -2
data/extconf.rb DELETED
@@ -1,51 +0,0 @@
1
- require "rubygems" unless defined?(Gem)
2
- require "mkmf"
3
- $extout_prefix = '/numru'
4
- alias __install_dirs install_dirs
5
- def install_dirs
6
- dirs = __install_dirs
7
- dirs.assoc("RUBYARCHDIR")[1].sub!(/target_prefix/,'extout_prefix')
8
- dirs
9
- end
10
-
11
- if Gem.respond_to?(:find_files)
12
- require "rbconfig"
13
- so = RbConfig::CONFIG["DLEXT"]
14
- narray_include = File.expand_path(File.dirname(Gem.find_files("narray.h")[0]))
15
- narray_lib = File.expand_path(File.dirname(Gem.find_files("narray." + so)[0]))
16
- else
17
- gem_home=(`gem environment GEM_HOME`).chomp
18
- narray_dir = Dir.glob("#{gem_home}/gems/narray-*").sort[-1]
19
- if narray_dir
20
- narray_include = narray_lib = narray_dir
21
- else
22
- narray_include = narray_lib = [ $sitearchdir, $vendorarchdir]
23
- end
24
- end
25
- dir_config('narray', narray_include, narray_lib)
26
-
27
- if ( ! ( have_header("narray.h") && have_header("narray_config.h") ) ) then
28
- print <<EOS
29
- ** configure error **
30
- Header narray.h or narray_config.h is not found. If you have these files in
31
- /narraydir/include, try the following:
32
-
33
- % ruby extconf.rb --with-narray-include=/narraydir/include
34
-
35
- EOS
36
- exit(-1)
37
- end
38
-
39
- if /cygwin|mingw/ =~ RUBY_PLATFORM
40
- unless have_library("narray")
41
- print <<-EOS
42
- ** configure error **
43
- libnarray.a is not found.
44
- % ruby extconf.rb --with-narray-lib=/narraydir/lib
45
-
46
- EOS
47
- exit(-1)
48
- end
49
- end
50
-
51
- create_makefile("gphys_ext")
data/spec/gphys_spec.rb DELETED
@@ -1,11 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Gphys do
4
- it 'has a version number' do
5
- expect(Gphys::VERSION).not_to be nil
6
- end
7
-
8
- it 'does something useful' do
9
- expect(false).to eq(true)
10
- end
11
- end
data/spec/spec_helper.rb DELETED
@@ -1,2 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
- require 'gphys'