ruby-netcdf 0.6.6.1 → 0.7.1
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.
- checksums.yaml +15 -0
 - data/.gitignore +8 -0
 - data/.rspec +2 -0
 - data/.travis.yml +3 -0
 - data/ChangeLog +51 -0
 - data/Gemfile +4 -0
 - data/Rakefile +1 -40
 - data/bin/console +14 -0
 - data/bin/setup +7 -0
 - data/demo/demo5-netcdf4.rb +44 -0
 - data/doc/Ref_man.html +340 -239
 - data/doc/Ref_man.rd +91 -0
 - data/doc/Ref_man_jp.html +940 -835
 - data/doc/Ref_man_jp.rd +95 -0
 - data/doc/to_html +3 -3
 - data/extconf.rb +113 -78
 - data/lib/netcdf.rb +89 -73
 - data/lib/version.rb +5 -0
 - data/netcdfraw.c +276 -169
 - data/ruby-netcdf.gemspec +34 -0
 - metadata +92 -97
 
    
        data/ruby-netcdf.gemspec
    ADDED
    
    | 
         @@ -0,0 +1,34 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # coding: utf-8
         
     | 
| 
      
 2 
     | 
    
         
            +
            lib = File.expand_path('../lib', __FILE__)
         
     | 
| 
      
 3 
     | 
    
         
            +
            $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
         
     | 
| 
      
 4 
     | 
    
         
            +
            require 'version'
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            Gem::Specification.new do |spec|
         
     | 
| 
      
 7 
     | 
    
         
            +
              spec.name          = "ruby-netcdf"
         
     | 
| 
      
 8 
     | 
    
         
            +
              spec.version       = Ruby::Netcdf::VERSION
         
     | 
| 
      
 9 
     | 
    
         
            +
              spec.authors           = ["Takeshi Horinouchi", "Tsuyoshi Koshiro",\
         
     | 
| 
      
 10 
     | 
    
         
            +
                "Shigenori Otsuka", "Seiya Nishizawa", "T Sakakima"]
         
     | 
| 
      
 11 
     | 
    
         
            +
              spec.email            = ['eriko@gfd-dennou.org']
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
              #if spec.respond_to?(:metadata)
         
     | 
| 
      
 14 
     | 
    
         
            +
              #  spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
         
     | 
| 
      
 15 
     | 
    
         
            +
              #end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
              spec.summary          = %q{Ruby interface to NetCDF}
         
     | 
| 
      
 18 
     | 
    
         
            +
              spec.description      = %q{RubyNetCDF is the Ruby interface to the NetCDF library built on the NArray library, which is an efficient multi-dimensional numeric array class for Ruby.}
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
              spec.homepage         = 'http://www.gfd-dennou.org/arch/ruby/products/ruby-netcdf/'
         
     | 
| 
      
 21 
     | 
    
         
            +
              spec.licenses         = ["GFD Dennou Club"]
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
              spec.files         = `git ls-files -z`.split("\x0")
         
     | 
| 
      
 24 
     | 
    
         
            +
              spec.test_files    = spec.files.grep(%r{^(test|demo)/})
         
     | 
| 
      
 25 
     | 
    
         
            +
              #spec.bindir        = "exe"
         
     | 
| 
      
 26 
     | 
    
         
            +
              #spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
         
     | 
| 
      
 27 
     | 
    
         
            +
              spec.require_paths = ["lib"]
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
              spec.required_ruby_version = Gem::Requirement.new(">= 1.6")
         
     | 
| 
      
 30 
     | 
    
         
            +
              spec.add_runtime_dependency(%q<narray>, [">= 0"])
         
     | 
| 
      
 31 
     | 
    
         
            +
              spec.add_runtime_dependency(%q<narray_miss>, [">= 0"])
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
              spec.extensions << "extconf.rb"
         
     | 
| 
      
 34 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,16 +1,9 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            --- !ruby/object:Gem::Specification 
     | 
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: ruby-netcdf
         
     | 
| 
       3 
     | 
    
         
            -
            version: !ruby/object:Gem::Version 
     | 
| 
       4 
     | 
    
         
            -
               
     | 
| 
       5 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       6 
     | 
    
         
            -
              segments: 
         
     | 
| 
       7 
     | 
    
         
            -
              - 0
         
     | 
| 
       8 
     | 
    
         
            -
              - 6
         
     | 
| 
       9 
     | 
    
         
            -
              - 6
         
     | 
| 
       10 
     | 
    
         
            -
              - 1
         
     | 
| 
       11 
     | 
    
         
            -
              version: 0.6.6.1
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.7.1
         
     | 
| 
       12 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       13 
     | 
    
         
            -
            authors: 
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
       14 
7 
     | 
    
         
             
            - Takeshi Horinouchi
         
     | 
| 
       15 
8 
     | 
    
         
             
            - Tsuyoshi Koshiro
         
     | 
| 
       16 
9 
     | 
    
         
             
            - Shigenori Otsuka
         
     | 
| 
         @@ -19,124 +12,126 @@ authors: 
     | 
|
| 
       19 
12 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       20 
13 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       21 
14 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
             
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
            dependencies: 
         
     | 
| 
       26 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 15 
     | 
    
         
            +
            date: 2015-02-24 00:00:00.000000000 Z
         
     | 
| 
      
 16 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 17 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
       27 
18 
     | 
    
         
             
              name: narray
         
     | 
| 
       28 
     | 
    
         
            -
               
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
                 
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
                  - !ruby/object:Gem::Version 
         
     | 
| 
       34 
     | 
    
         
            -
                    hash: 3
         
     | 
| 
       35 
     | 
    
         
            -
                    segments: 
         
     | 
| 
       36 
     | 
    
         
            -
                    - 0
         
     | 
| 
       37 
     | 
    
         
            -
                    version: "0"
         
     | 
| 
      
 19 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 20 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 21 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 22 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 23 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       38 
24 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       39 
     | 
    
         
            -
              version_requirements: *id001
         
     | 
| 
       40 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       41 
     | 
    
         
            -
              name: narray_miss
         
     | 
| 
       42 
25 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       43 
     | 
    
         
            -
               
     | 
| 
       44 
     | 
    
         
            -
                 
     | 
| 
       45 
     | 
    
         
            -
                 
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
      
 26 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 27 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 28 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 29 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 30 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 31 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 32 
     | 
    
         
            +
              name: narray_miss
         
     | 
| 
      
 33 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 34 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 35 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 36 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 37 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       52 
38 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       53 
     | 
    
         
            -
               
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
      
 39 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 40 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 41 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 42 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 43 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 44 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 45 
     | 
    
         
            +
            description: RubyNetCDF is the Ruby interface to the NetCDF library built on the NArray
         
     | 
| 
      
 46 
     | 
    
         
            +
              library, which is an efficient multi-dimensional numeric array class for Ruby.
         
     | 
| 
      
 47 
     | 
    
         
            +
            email:
         
     | 
| 
       56 
48 
     | 
    
         
             
            - eriko@gfd-dennou.org
         
     | 
| 
       57 
49 
     | 
    
         
             
            executables: []
         
     | 
| 
       58 
     | 
    
         
            -
             
     | 
| 
       59 
     | 
    
         
            -
            extensions: 
         
     | 
| 
      
 50 
     | 
    
         
            +
            extensions:
         
     | 
| 
       60 
51 
     | 
    
         
             
            - extconf.rb
         
     | 
| 
       61 
52 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
            -  
     | 
| 
       65 
     | 
    
         
            -
            -  
     | 
| 
       66 
     | 
    
         
            -
            - LICENSE.txt
         
     | 
| 
      
 53 
     | 
    
         
            +
            files:
         
     | 
| 
      
 54 
     | 
    
         
            +
            - .gitignore
         
     | 
| 
      
 55 
     | 
    
         
            +
            - .rspec
         
     | 
| 
      
 56 
     | 
    
         
            +
            - .travis.yml
         
     | 
| 
       67 
57 
     | 
    
         
             
            - ChangeLog
         
     | 
| 
       68 
     | 
    
         
            -
            -  
     | 
| 
       69 
     | 
    
         
            -
            - ToDo
         
     | 
| 
      
 58 
     | 
    
         
            +
            - Gemfile
         
     | 
| 
       70 
59 
     | 
    
         
             
            - INSTALL
         
     | 
| 
       71 
     | 
    
         
            -
            -  
     | 
| 
       72 
     | 
    
         
            -
            -  
     | 
| 
       73 
     | 
    
         
            -
            -  
     | 
| 
      
 60 
     | 
    
         
            +
            - LICENSE.txt
         
     | 
| 
      
 61 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 62 
     | 
    
         
            +
            - ToDo
         
     | 
| 
      
 63 
     | 
    
         
            +
            - bin/console
         
     | 
| 
      
 64 
     | 
    
         
            +
            - bin/setup
         
     | 
| 
       74 
65 
     | 
    
         
             
            - demo/README
         
     | 
| 
      
 66 
     | 
    
         
            +
            - demo/demo1-create-alt.rb
         
     | 
| 
       75 
67 
     | 
    
         
             
            - demo/demo1-create.rb
         
     | 
| 
       76 
     | 
    
         
            -
            - demo/demo4-copy.rb
         
     | 
| 
       77 
68 
     | 
    
         
             
            - demo/demo2-graphic.rb
         
     | 
| 
       78 
     | 
    
         
            -
            - demo/ 
     | 
| 
       79 
     | 
    
         
            -
            -  
     | 
| 
      
 69 
     | 
    
         
            +
            - demo/demo3-ncepclim.rb
         
     | 
| 
      
 70 
     | 
    
         
            +
            - demo/demo4-copy.rb
         
     | 
| 
      
 71 
     | 
    
         
            +
            - demo/demo5-netcdf4.rb
         
     | 
| 
      
 72 
     | 
    
         
            +
            - doc/README_JP.txt
         
     | 
| 
      
 73 
     | 
    
         
            +
            - doc/Ref_man.html
         
     | 
| 
       80 
74 
     | 
    
         
             
            - doc/Ref_man.rd
         
     | 
| 
       81 
75 
     | 
    
         
             
            - doc/Ref_man_jp.html
         
     | 
| 
      
 76 
     | 
    
         
            +
            - doc/Ref_man_jp.rd
         
     | 
| 
       82 
77 
     | 
    
         
             
            - doc/to_html
         
     | 
| 
       83 
     | 
    
         
            -
            -  
     | 
| 
       84 
     | 
    
         
            -
            -  
     | 
| 
       85 
     | 
    
         
            -
            -  
     | 
| 
       86 
     | 
    
         
            -
            -  
     | 
| 
      
 78 
     | 
    
         
            +
            - extconf.rb
         
     | 
| 
      
 79 
     | 
    
         
            +
            - lib/netcdf.rb
         
     | 
| 
      
 80 
     | 
    
         
            +
            - lib/netcdf_miss.rb
         
     | 
| 
      
 81 
     | 
    
         
            +
            - lib/version.rb
         
     | 
| 
      
 82 
     | 
    
         
            +
            - netcdfraw.c
         
     | 
| 
      
 83 
     | 
    
         
            +
            - ruby-netcdf.gemspec
         
     | 
| 
      
 84 
     | 
    
         
            +
            - test/aref_aset.rb
         
     | 
| 
       87 
85 
     | 
    
         
             
            - test/char_var.rb
         
     | 
| 
       88 
86 
     | 
    
         
             
            - test/clone.rb
         
     | 
| 
      
 87 
     | 
    
         
            +
            - test/create_tmp.rb
         
     | 
| 
       89 
88 
     | 
    
         
             
            - test/def_var_with_dim.rb
         
     | 
| 
       90 
     | 
    
         
            -
            - test/aref_aset.rb
         
     | 
| 
       91 
     | 
    
         
            -
            - test/type.rb
         
     | 
| 
       92 
     | 
    
         
            -
            - test/test.rb
         
     | 
| 
       93 
89 
     | 
    
         
             
            - test/factor_offset.rb
         
     | 
| 
       94 
     | 
    
         
            -
            - test/test.cdl
         
     | 
| 
       95 
90 
     | 
    
         
             
            - test/putatt.cdl
         
     | 
| 
       96 
     | 
    
         
            -
             
     | 
| 
      
 91 
     | 
    
         
            +
            - test/putatt.rb
         
     | 
| 
      
 92 
     | 
    
         
            +
            - test/test.cdl
         
     | 
| 
      
 93 
     | 
    
         
            +
            - test/test.rb
         
     | 
| 
      
 94 
     | 
    
         
            +
            - test/type.rb
         
     | 
| 
       97 
95 
     | 
    
         
             
            homepage: http://www.gfd-dennou.org/arch/ruby/products/ruby-netcdf/
         
     | 
| 
       98 
     | 
    
         
            -
            licenses: 
     | 
| 
      
 96 
     | 
    
         
            +
            licenses:
         
     | 
| 
       99 
97 
     | 
    
         
             
            - GFD Dennou Club
         
     | 
| 
      
 98 
     | 
    
         
            +
            metadata: {}
         
     | 
| 
       100 
99 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       101 
100 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       102 
     | 
    
         
            -
             
     | 
| 
       103 
     | 
    
         
            -
            require_paths: 
         
     | 
| 
      
 101 
     | 
    
         
            +
            require_paths:
         
     | 
| 
       104 
102 
     | 
    
         
             
            - lib
         
     | 
| 
       105 
     | 
    
         
            -
            required_ruby_version: !ruby/object:Gem::Requirement 
     | 
| 
       106 
     | 
    
         
            -
               
     | 
| 
       107 
     | 
    
         
            -
               
     | 
| 
       108 
     | 
    
         
            -
             
     | 
| 
       109 
     | 
    
         
            -
             
     | 
| 
       110 
     | 
    
         
            -
             
     | 
| 
       111 
     | 
    
         
            -
             
     | 
| 
       112 
     | 
    
         
            -
             
     | 
| 
       113 
     | 
    
         
            -
             
     | 
| 
       114 
     | 
    
         
            -
                  version:  
     | 
| 
       115 
     | 
    
         
            -
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
       116 
     | 
    
         
            -
              none: false
         
     | 
| 
       117 
     | 
    
         
            -
              requirements: 
         
     | 
| 
       118 
     | 
    
         
            -
              - - ">="
         
     | 
| 
       119 
     | 
    
         
            -
                - !ruby/object:Gem::Version 
         
     | 
| 
       120 
     | 
    
         
            -
                  hash: 3
         
     | 
| 
       121 
     | 
    
         
            -
                  segments: 
         
     | 
| 
       122 
     | 
    
         
            -
                  - 0
         
     | 
| 
       123 
     | 
    
         
            -
                  version: "0"
         
     | 
| 
      
 103 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 104 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 105 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 106 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 107 
     | 
    
         
            +
                  version: '1.6'
         
     | 
| 
      
 108 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 109 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 110 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 111 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 112 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       124 
113 
     | 
    
         
             
            requirements: []
         
     | 
| 
       125 
     | 
    
         
            -
             
     | 
| 
       126 
114 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       127 
     | 
    
         
            -
            rubygems_version:  
     | 
| 
      
 115 
     | 
    
         
            +
            rubygems_version: 2.4.6
         
     | 
| 
       128 
116 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       129 
     | 
    
         
            -
            specification_version:  
     | 
| 
      
 117 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
       130 
118 
     | 
    
         
             
            summary: Ruby interface to NetCDF
         
     | 
| 
       131 
     | 
    
         
            -
            test_files: 
     | 
| 
       132 
     | 
    
         
            -
            -  
     | 
| 
       133 
     | 
    
         
            -
            -  
     | 
| 
      
 119 
     | 
    
         
            +
            test_files:
         
     | 
| 
      
 120 
     | 
    
         
            +
            - demo/README
         
     | 
| 
      
 121 
     | 
    
         
            +
            - demo/demo1-create-alt.rb
         
     | 
| 
      
 122 
     | 
    
         
            +
            - demo/demo1-create.rb
         
     | 
| 
      
 123 
     | 
    
         
            +
            - demo/demo2-graphic.rb
         
     | 
| 
      
 124 
     | 
    
         
            +
            - demo/demo3-ncepclim.rb
         
     | 
| 
      
 125 
     | 
    
         
            +
            - demo/demo4-copy.rb
         
     | 
| 
      
 126 
     | 
    
         
            +
            - demo/demo5-netcdf4.rb
         
     | 
| 
      
 127 
     | 
    
         
            +
            - test/aref_aset.rb
         
     | 
| 
       134 
128 
     | 
    
         
             
            - test/char_var.rb
         
     | 
| 
       135 
129 
     | 
    
         
             
            - test/clone.rb
         
     | 
| 
      
 130 
     | 
    
         
            +
            - test/create_tmp.rb
         
     | 
| 
       136 
131 
     | 
    
         
             
            - test/def_var_with_dim.rb
         
     | 
| 
       137 
     | 
    
         
            -
            - test/aref_aset.rb
         
     | 
| 
       138 
     | 
    
         
            -
            - test/type.rb
         
     | 
| 
       139 
     | 
    
         
            -
            - test/test.rb
         
     | 
| 
       140 
132 
     | 
    
         
             
            - test/factor_offset.rb
         
     | 
| 
       141 
     | 
    
         
            -
            - test/test.cdl
         
     | 
| 
       142 
133 
     | 
    
         
             
            - test/putatt.cdl
         
     | 
| 
      
 134 
     | 
    
         
            +
            - test/putatt.rb
         
     | 
| 
      
 135 
     | 
    
         
            +
            - test/test.cdl
         
     | 
| 
      
 136 
     | 
    
         
            +
            - test/test.rb
         
     | 
| 
      
 137 
     | 
    
         
            +
            - test/type.rb
         
     |