hdf5 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b76ea3b42ccf86604529277254fa03b47a96f8e6
4
- data.tar.gz: 7985f052f51e4009b073ea45c7afdcc8c7ac3528
3
+ metadata.gz: 2befee7acbf6e2e264a2d69b952b05f76f96d0ce
4
+ data.tar.gz: 87178ddd83a7643fc28581c4b59a1bc4ee4e1523
5
5
  SHA512:
6
- metadata.gz: add84fdaf00b547fcee48c08e8f9071628a3727317aa0f5ace801242f6138ee027d9c63d310889d2128a8b94459517cedbf8c1871e31a4a6e5d041bf1afd4c09
7
- data.tar.gz: 729113fd282183c52306c6589763d011a4ac58e09da8273070db5024c552d397676fb49cff31893c8dda3daa3566011ab20cce7035c91b77e63be16dc9cc22df
6
+ metadata.gz: 06d14090eb43ee3ebc37007968261cfb6590f11a33685251fc0710dfa9e94257791952490b03f092cab6b04e514ba2dd598b8dd0124f464ac90968745dbc2328
7
+ data.tar.gz: 0e49116c3d162a22617fddc323592e247a27527b174291e4ce9db82f26bb1b8f7743100aada9adfb7f06e8eda00b012aaae72625de56500e1502414e72ae47f9
@@ -0,0 +1,52 @@
1
+
2
+ Hdf5
3
+ ====
4
+
5
+ This is a Ruby module for reading and manipulating HDF5 (Hierarchical Data Format)
6
+ files. At the current time (July 2014) it is capable of basic reading operations.
7
+ However, its use of the FFI library means that extending its capabilities is easy
8
+ and quick.
9
+
10
+ Installation
11
+ ------------
12
+
13
+ Make sure you have libhdf5 installed on your system, then simply execute:
14
+
15
+ gem install hdf5
16
+
17
+ Examples
18
+ --------
19
+
20
+ Basic usage:
21
+
22
+ require 'hdf5'
23
+ file = Hdf5::H5File.new('filename.hdf5')
24
+ dataset = file.dataset('/path/to/dataset')
25
+ narray = dataset.narray_all
26
+ file.close
27
+
28
+ Extended example:
29
+
30
+
31
+ require 'hdf5'
32
+
33
+ file = Hdf5::H5File.new('test/field.dat.h5') # Open an existing file readonly
34
+
35
+ ds = file.dataset('/field/phi/0000000000') # Open a dataset
36
+ p ds.narray_type # Print the Ruby/NArray type of the dataset (if possible)
37
+
38
+ p dt = ds.datatype # Access the datatype
39
+ p dt.nmembers # Print the number of members of the datatype
40
+
41
+ p dsp = ds.dataspace # Access the dataspace
42
+ p dsp.ndims # Number of dimensions in dataspace
43
+ p dsp.dims # Array of dimension sizes
44
+ p dsp.maxdims # Array of max dimension sizes
45
+
46
+ p na = ds.narray_all # Read the whole dataset into an narray
47
+
48
+ p na2 = ds.narray_simple_read([0,0,0], [0,0,0]) # Read one element of the dataset into an narray
49
+
50
+ p na3 = ds.narray_simple_read([1,0,0], [3,-1,-1]) # Read a section of the dataset into an narray
51
+
52
+ file.close # Close the file
File without changes
@@ -1,6 +1,51 @@
1
1
  = hdf5
2
2
 
3
- Description goes here.
3
+ This is a Ruby module for reading and manipulating HDF5 (Hierarchical Data Format)
4
+ files. At the current time (July 2014) it is capable of basic reading operations.
5
+ However, its use of the FFI library means that extending its capabilities is easy
6
+ and quick. For a basic example see the test/test_hdf5.rb file on github.
7
+
8
+ == Installation
9
+
10
+ Make sure you have libhdf5 installed on your system, then simply execute:
11
+
12
+ gem install hdf5
13
+
14
+ == Examples
15
+
16
+ Basic usage:
17
+
18
+ require 'hdf5'
19
+ file = Hdf5::H5File.new('filename.hdf5')
20
+ dataset = file.dataset('/path/to/dataset')
21
+ narray = dataset.narray_all
22
+ file.close
23
+
24
+ Extended example:
25
+
26
+
27
+ require 'hdf5'
28
+
29
+ file = Hdf5::H5File.new('test/field.dat.h5') # Open an existing file readonly
30
+
31
+ ds = file.dataset('/field/phi/0000000000') # Open a dataset
32
+ p ds.narray_type # Print the Ruby/NArray type of the dataset (if possible)
33
+
34
+ p dt = ds.datatype # Access the datatype
35
+ p dt.nmembers # Print the number of members of the datatype
36
+
37
+ p dsp = ds.dataspace # Access the dataspace
38
+ p dsp.ndims # Number of dimensions in dataspace
39
+ p dsp.dims # Array of dimension sizes
40
+ p dsp.maxdims # Array of max dimension sizes
41
+
42
+ p na = ds.narray_all # Read the whole dataset into an narray
43
+
44
+ p na2 = ds.narray_simple_read([0,0,0], [0,0,0]) # Read one element of the dataset into an narray
45
+
46
+ p na3 = ds.narray_simple_read([1,0,0], [3,-1,-1]) # Read a section of the dataset into an narray
47
+
48
+ file.close # Close the file
4
49
 
5
50
  == Contributing to hdf5
6
51
 
@@ -0,0 +1,19 @@
1
+ = hdf5
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to hdf5
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
+ * Fork the project.
10
+ * Start a feature/bugfix branch.
11
+ * Commit and push until you are happy with your contribution.
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2014 Edmund Highcock. See LICENSE.txt for
18
+ further details.
19
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -2,12 +2,12 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: hdf5 0.3.3 ruby lib
5
+ # stub: hdf5 0.3.4 ruby lib
6
6
  # stub: ext/hdf5/extconf.rb
7
7
 
8
8
  Gem::Specification.new do |s|
9
9
  s.name = "hdf5"
10
- s.version = "0.3.3"
10
+ s.version = "0.3.4"
11
11
 
12
12
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
13
13
  s.require_paths = ["lib"]
@@ -18,12 +18,16 @@ Gem::Specification.new do |s|
18
18
  s.extensions = ["ext/hdf5/extconf.rb"]
19
19
  s.extra_rdoc_files = [
20
20
  "LICENSE.txt",
21
- "README.rdoc"
21
+ "README.md",
22
+ "README.md.orig",
23
+ "README.rdoc",
24
+ "README.rdoc.orig"
22
25
  ]
23
26
  s.files = [
24
27
  ".document",
25
28
  "Gemfile",
26
29
  "LICENSE.txt",
30
+ "README.md",
27
31
  "README.rdoc",
28
32
  "Rakefile",
29
33
  "VERSION",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hdf5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Highcock
@@ -144,12 +144,18 @@ extensions:
144
144
  - ext/hdf5/extconf.rb
145
145
  extra_rdoc_files:
146
146
  - LICENSE.txt
147
+ - README.md
148
+ - README.md.orig
147
149
  - README.rdoc
150
+ - README.rdoc.orig
148
151
  files:
149
152
  - ".document"
150
153
  - Gemfile
151
154
  - LICENSE.txt
155
+ - README.md
156
+ - README.md.orig
152
157
  - README.rdoc
158
+ - README.rdoc.orig
153
159
  - Rakefile
154
160
  - VERSION
155
161
  - ext/hdf5/extconf.rb