ruby-grads 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9d221bddb4c3b9dbdf46348691daac803a5194520580bb4ee0068aa1ef3aa24d
4
+ data.tar.gz: 25d393d1683f63fa60857831f16209dee5105a897ca96fd4dbe86e9fb02450a6
5
+ SHA512:
6
+ metadata.gz: fc9e107a70200bd51ef5170743fc16f6216af003bfd4f72cfa02b12ff2d1d866365fd86d7c3daeae3cd922d0f882f1cc1cf75b24e4e3dcc8f3a2b63c901d29b8
7
+ data.tar.gz: d1a255347549db953a31fa9f8898b1b5551e889599600b3a525376a04a6360cc5dcf5912a3deca77e3a443093a76393d6eab08d4990d8ec870575413ddc4019e
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ Ruby/GrADS
2
+ ==========
3
+
4
+ ### GrADS script
5
+
6
+ Define method named as "name" with given definition by script text
7
+
8
+ GrADS#script :name, %{ GrADS scripts } ### scope of instance
9
+ GrADS.script :name, %{ GrADS scripts } ### scope of global
10
+
11
+ ### GrADS code
12
+
13
+ Execute grads command sequence
14
+
15
+ GrADS#exec filename
16
+ GrADS#exec_string text
17
+
18
+
19
+ ### CArray -> GrADS variable
20
+
21
+ Write block as GrADS::Gridded::Writer definition
22
+
23
+ GrADS#template2d(dataset, ca, cb, ...) { ... } => a, b, ...
24
+ GrADS#tempalte3d(dataset, ca, cb, ...) { ... } => a, b, ...
25
+
26
+ ### "grads/lib/save_image"
27
+
28
+ GrADS#save_image(filename, size="640", dpi=300)
29
+
30
+
31
+
data/extconf.rb ADDED
@@ -0,0 +1,6 @@
1
+ require "mkmf"
2
+ require "carray/mkmf"
3
+
4
+ if have_carray
5
+ create_makefile("grads")
6
+ end