carray-netcdf 1.0.11 → 1.0.12
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 +4 -4
- data/carray-netcdf.gemspec +1 -1
- data/lib/io/netcdf.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ae506a17e58538a11564ba75d4f10183c591a932964624a57e19972831df541
|
4
|
+
data.tar.gz: 65343b392e545fc4b569fc4f9294cbf934b07ff719f84a77de94e6a751ca9ece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b488e16427b12a54af3c2a61e3a2ef0d186598c62e6cc7b2e0f45c27fe5892dd6e0d9276726ef7a57ccda98197372f14b4c60dcde4ba0bae979ab622a7ae4342
|
7
|
+
data.tar.gz: ed65e56ed5fc8c92453805aa1d19f0dbe4d64067c8c6bba071ba53a96dc93185155b8e99ce0315f2734fd2d9452a775d3682ad1777efd4e7a64d2565081162b3
|
data/carray-netcdf.gemspec
CHANGED
data/lib/io/netcdf.rb
CHANGED
@@ -235,6 +235,7 @@ class NCVar < NCObject
|
|
235
235
|
when CA_REG_ALL
|
236
236
|
out = get_var()
|
237
237
|
when CA_REG_BLOCK
|
238
|
+
use_compact = false
|
238
239
|
start = []
|
239
240
|
count = []
|
240
241
|
stride = []
|
@@ -245,6 +246,7 @@ class NCVar < NCObject
|
|
245
246
|
count << idx[1]
|
246
247
|
stride << idx[2]
|
247
248
|
else
|
249
|
+
use_compact = true
|
248
250
|
start << idx
|
249
251
|
count << 1
|
250
252
|
stride << 1
|
@@ -255,17 +257,15 @@ class NCVar < NCObject
|
|
255
257
|
else
|
256
258
|
out = get_vars(start, count, stride)
|
257
259
|
end
|
260
|
+
if use_compact and out.is_a?(CArray)
|
261
|
+
out = out.compact
|
262
|
+
end
|
258
263
|
when CA_REG_SELECT, CA_REG_GRID
|
259
264
|
out = get_var[*argv]
|
260
265
|
else
|
261
266
|
raise "invalid index"
|
262
267
|
end
|
263
|
-
|
264
|
-
when CArray
|
265
|
-
return out.compact
|
266
|
-
else
|
267
|
-
return out
|
268
|
-
end
|
268
|
+
return out
|
269
269
|
end
|
270
270
|
|
271
271
|
def get! (*argv)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carray-netcdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroki Motoyoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: " Extension for manipulating NetCDF3 file with CArray\n"
|
14
14
|
email: ''
|