ruby-dcl 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +321 -0
- data/GenWrapper/Makefile +14 -0
- data/GenWrapper/cproto2init.rb +41 -0
- data/GenWrapper/dcl_narrayed_funcs.rb +181 -0
- data/GenWrapper/dcl_rb_footing +29 -0
- data/GenWrapper/dcl_rb_heading +129 -0
- data/GenWrapper/def.rb +20 -0
- data/GenWrapper/elim_ary_size.rb +398 -0
- data/GenWrapper/etc/Mk_proto +375 -0
- data/GenWrapper/etc/dcl_gen +13 -0
- data/GenWrapper/etc/p_header +63 -0
- data/GenWrapper/etc/p_init +410 -0
- data/GenWrapper/pparse.rb +137 -0
- data/GenWrapper/proto/Makefile +35 -0
- data/GenWrapper/proto/grph1_00 +17 -0
- data/GenWrapper/proto/grph1_csgi.fp +27 -0
- data/GenWrapper/proto/grph1_scpack.fp +442 -0
- data/GenWrapper/proto/grph1_sgpack.fp +1406 -0
- data/GenWrapper/proto/grph1_slpack.fp +316 -0
- data/GenWrapper/proto/grph1_stpack.fp +411 -0
- data/GenWrapper/proto/grph1_swpack.fp +746 -0
- data/GenWrapper/proto/grph2_00 +16 -0
- data/GenWrapper/proto/grph2_grpack.fp +139 -0
- data/GenWrapper/proto/grph2_ucpack.fp +522 -0
- data/GenWrapper/proto/grph2_udpack.fp +692 -0
- data/GenWrapper/proto/grph2_uepack.fp +601 -0
- data/GenWrapper/proto/grph2_ugpack.fp +436 -0
- data/GenWrapper/proto/grph2_uhpack.fp +246 -0
- data/GenWrapper/proto/grph2_ulpack.fp +516 -0
- data/GenWrapper/proto/grph2_umpack.fp +676 -0
- data/GenWrapper/proto/grph2_uspack.fp +989 -0
- data/GenWrapper/proto/grph2_uupack.fp +663 -0
- data/GenWrapper/proto/grph2_uvpack.fp +246 -0
- data/GenWrapper/proto/grph2_uwpack.fp +203 -0
- data/GenWrapper/proto/grph2_uxpack.fp +295 -0
- data/GenWrapper/proto/grph2_uypack.fp +295 -0
- data/GenWrapper/proto/grph2_uzpack.fp +574 -0
- data/GenWrapper/proto/math1_00 +12 -0
- data/GenWrapper/proto/math1_blklib.fp +58 -0
- data/GenWrapper/proto/math1_chrlib.fp +83 -0
- data/GenWrapper/proto/math1_fnclib.fp +79 -0
- data/GenWrapper/proto/math1_gnmlib.fp +118 -0
- data/GenWrapper/proto/math1_gt2dlib.fp +144 -0
- data/GenWrapper/proto/math1_ifalib.fp +123 -0
- data/GenWrapper/proto/math1_indxlib.fp +222 -0
- data/GenWrapper/proto/math1_intlib.fp +46 -0
- data/GenWrapper/proto/math1_lrllib.fp +276 -0
- data/GenWrapper/proto/math1_maplib.fp +24 -0
- data/GenWrapper/proto/math1_oslib.fp +28 -0
- data/GenWrapper/proto/math1_rfalib.fp +420 -0
- data/GenWrapper/proto/math1_rfblib.fp +51 -0
- data/GenWrapper/proto/math1_sublib.fp +60 -0
- data/GenWrapper/proto/math1_syslib.fp +767 -0
- data/GenWrapper/proto/math1_vialib.fp +339 -0
- data/GenWrapper/proto/math1_viblib.fp +264 -0
- data/GenWrapper/proto/math1_vralib.fp +339 -0
- data/GenWrapper/proto/math1_vrblib.fp +264 -0
- data/GenWrapper/proto/math1_xfclib.fp +68 -0
- data/GenWrapper/proto/math2_00 +12 -0
- data/GenWrapper/proto/math2_fftlib.fp +803 -0
- data/GenWrapper/proto/math2_intrlib.fp +32 -0
- data/GenWrapper/proto/math2_odelib.fp_notused +568 -0
- data/GenWrapper/proto/math2_rnmlib.fp +54 -0
- data/GenWrapper/proto/math2_shtlib.fp +1292 -0
- data/GenWrapper/proto/math2_shtlib.fp_old +1294 -0
- data/GenWrapper/proto/math2_vstlib.fp +84 -0
- data/GenWrapper/proto/misc1_00 +17 -0
- data/GenWrapper/proto/misc1_chnlib.fp +47 -0
- data/GenWrapper/proto/misc1_datelib.fp +352 -0
- data/GenWrapper/proto/misc1_fmtlib.fp +19 -0
- data/GenWrapper/proto/misc1_misclib.fp +26 -0
- data/GenWrapper/proto/misc1_randlib.fp +36 -0
- data/GenWrapper/proto/misc1_timelib.fp +151 -0
- data/GenWrapper/proto2c.rb +13 -0
- data/GenWrapper/prototype.rb +209 -0
- data/GenWrapper/util.rb +9 -0
- data/GenWrapper/variable.rb +671 -0
- data/README +29 -0
- data/Rakefile +44 -0
- data/ToDo +2 -0
- data/dcl_cary2obj.c +354 -0
- data/dcl_narrayed_funcs.c +518 -0
- data/dcl_obj2cary.c +512 -0
- data/dcl_rubydcloriginal.c +129 -0
- data/demo/gokuraku/hop/hop.rb +26 -0
- data/demo/gokuraku/jump/jump1.rb +64 -0
- data/demo/gokuraku/jump/jump2.rb +50 -0
- data/demo/gokuraku/layout/lay1.rb +46 -0
- data/demo/gokuraku/layout/lay2.rb +44 -0
- data/demo/gokuraku/step/step0.rb +34 -0
- data/demo/gokuraku/step/step1.rb +84 -0
- data/demo/gokuraku/step/step2.rb +62 -0
- data/demo/gokuraku/u1d/u1d1.rb +37 -0
- data/demo/gokuraku/u1d/u1d2.rb +50 -0
- data/demo/gokuraku/u2d/u2d1.rb +46 -0
- data/demo/gokuraku/u2d/u2d2.rb +49 -0
- data/demo/gokuraku/u2d/u2d3.rb +45 -0
- data/demo/gokuraku/u2d/u2d4.rb +61 -0
- data/demo/grph1/scpack/scpkt2.rb +40 -0
- data/demo/grph1/scpack/scpkt3.rb +102 -0
- data/demo/grph1/scpack/scpkt6.rb +84 -0
- data/demo/grph1/scpack/scpkt7.rb +59 -0
- data/demo/grph1/scpack/scpkt8.rb +60 -0
- data/demo/grph1/scpack/t810630.dat +296 -0
- data/demo/grph1/scpack/t811231.dat +296 -0
- data/demo/grph1/sgpack/sgfont.rb +52 -0
- data/demo/grph1/sgpack/sgfonz.rb +53 -0
- data/demo/grph1/sgpack/sgksx1.rb +44 -0
- data/demo/grph1/sgpack/sgksx2.rb +90 -0
- data/demo/grph1/sgpack/sgksx3.rb +75 -0
- data/demo/grph1/sgpack/sglidx.rb +40 -0
- data/demo/grph1/sgpack/sgltyp.rb +48 -0
- data/demo/grph1/sgpack/sgpk01.rb +39 -0
- data/demo/grph1/sgpack/sgpk02.rb +79 -0
- data/demo/grph1/sgpack/sgpk03.rb +107 -0
- data/demo/grph1/sgpack/sgpk04.rb +86 -0
- data/demo/grph1/sgpack/sgpk05.rb +66 -0
- data/demo/grph1/sgpack/sgpk06.rb +91 -0
- data/demo/grph1/sgpack/sgpk07.rb +66 -0
- data/demo/grph1/sgpack/sgpk08.rb +67 -0
- data/demo/grph1/sgpack/sgpk09.rb +61 -0
- data/demo/grph1/sgpack/sgpk10.rb +58 -0
- data/demo/grph1/sgpack/sgtclr.rb +59 -0
- data/demo/grph1/sgpack/sgtone.rb +70 -0
- data/demo/grph1/sgpack/sgtonz.rb +66 -0
- data/demo/grph1/slpack/slpk01.rb +37 -0
- data/demo/grph1/slpack/slpk02.rb +29 -0
- data/demo/grph1/slpack/slpk03.rb +36 -0
- data/demo/grph1/slpack/slpk04.rb +36 -0
- data/demo/grph2/g2pack/g2pk01.rb +78 -0
- data/demo/grph2/g2pack/g2pk02.rb +75 -0
- data/demo/grph2/grpack/grpk01.rb +65 -0
- data/demo/grph2/ucpack/ucpk01.rb +95 -0
- data/demo/grph2/ucpack/ucpk02.rb +95 -0
- data/demo/grph2/udegpk/u2df01.rb +50 -0
- data/demo/grph2/udegpk/u2df02.rb +76 -0
- data/demo/grph2/udegpk/u2df03.rb +80 -0
- data/demo/grph2/udegpk/u2df04.rb +52 -0
- data/demo/grph2/udegpk/u2df05.rb +70 -0
- data/demo/grph2/udegpk/u2df06.rb +59 -0
- data/demo/grph2/udegpk/u2df07.rb +68 -0
- data/demo/grph2/udegpk/u2df08.rb +91 -0
- data/demo/grph2/udegpk/u2df09b.rb +88 -0
- data/demo/grph2/udegpk/u2df09c.rb +89 -0
- data/demo/grph2/udegpk/u2df09e.rb +88 -0
- data/demo/grph2/udegpk/u2df09f.rb +89 -0
- data/demo/grph2/ulpack/ulpk01.rb +111 -0
- data/demo/grph2/ulpack/ulpk01n.rb +111 -0
- data/demo/grph2/ulpack/ulpk02.rb +111 -0
- data/demo/grph2/ulpack/ulpk02n.rb +111 -0
- data/demo/grph2/umpack/t811231.dat +296 -0
- data/demo/grph2/umpack/test01.rb +69 -0
- data/demo/grph2/umpack/test02.rb +64 -0
- data/demo/grph2/umpack/test03.rb +84 -0
- data/demo/grph2/umpack/test04.rb +54 -0
- data/demo/grph2/umpack/test05.rb +85 -0
- data/demo/grph2/umpack/test06.rb +44 -0
- data/demo/grph2/umpack/test07.rb +43 -0
- data/demo/grph2/umpack/test08.rb +37 -0
- data/demo/grph2/umpack/test09.rb +86 -0
- data/demo/grph2/umpack/test10.rb +52 -0
- data/demo/grph2/umpack/umpk01.rb +65 -0
- data/demo/grph2/umpack/umpk02.rb +54 -0
- data/demo/grph2/umpack/umpk03.rb +46 -0
- data/demo/grph2/umpack/umpk04.rb +65 -0
- data/demo/grph2/umpack/umpk05.rb +84 -0
- data/demo/grph2/uspack/uspk01.rb +39 -0
- data/demo/grph2/uspack/uspk02.rb +47 -0
- data/demo/grph2/uspack/uspk03.rb +38 -0
- data/demo/grph2/uspack/uspk04.rb +64 -0
- data/demo/grph2/uspack/uspk05.rb +68 -0
- data/demo/grph2/uspack/uspk06.rb +43 -0
- data/demo/grph2/uspack/uspk07.rb +62 -0
- data/demo/grph2/uspack/uspk08.rb +46 -0
- data/demo/grph2/uspack/uspk09.rb +89 -0
- data/demo/grph2/uspack/uspk10.rb +48 -0
- data/demo/grph2/uspack/uspk11.rb +71 -0
- data/demo/grph2/uspack/uspk12.rb +51 -0
- data/demo/grph2/uupack/uupk01.rb +50 -0
- data/demo/grph2/uupack/uupk02.rb +74 -0
- data/demo/grph2/uupack/uupk03.rb +56 -0
- data/demo/grph2/uupack/uupk04.rb +84 -0
- data/demo/grph2/uupack/uupk05.rb +74 -0
- data/demo/grph2/uupack/uupk06.rb +77 -0
- data/demo/grph2/uupack/uupk07.rb +88 -0
- data/demo/grph2/uxyzpk/uxyz01.rb +38 -0
- data/demo/grph2/uxyzpk/uxyz02.rb +36 -0
- data/demo/grph2/uxyzpk/uxyz03.rb +37 -0
- data/demo/grph2/uxyzpk/uxyz04.rb +54 -0
- data/demo/grph2/uxyzpk/uxyz05.rb +41 -0
- data/demo/grph2/uxyzpk/uxyz06.rb +42 -0
- data/demo/grph2/uxyzpk/uxyz07.rb +38 -0
- data/demo/grph2/uxyzpk/uxyz08.rb +60 -0
- data/demo/grph2/uxyzpk/uxyz09.rb +52 -0
- data/demo/grph2/uxyzpk/uxyz10.rb +57 -0
- data/demo/grph2/ximage/MEMO +23 -0
- data/demo/grph2/ximage/tomsclm.dat +1344 -0
- data/demo/grph2/ximage/ximg01.rb +145 -0
- data/demo/math1/gt2dlib/gt2d01.rb +33 -0
- data/demo/math2/fftlib/fftl01.rb +28 -0
- data/demo/math2/fftlib/fftl02.rb +224 -0
- data/demo/math2/intrlib/intr01.rb +22 -0
- data/demo/math2/rnmlib/rnml01.rb +21 -0
- data/demo/math2/vstlib/vstl01.rb +29 -0
- data/demo/math2/vstlib/vstl02.rb +38 -0
- data/demo/rakuraku/color/color1.rb +61 -0
- data/demo/rakuraku/color/color2.rb +57 -0
- data/demo/rakuraku/color/color3.rb +81 -0
- data/demo/rakuraku/kihon/kihon1.rb +39 -0
- data/demo/rakuraku/kihon/kihon2.rb +56 -0
- data/demo/rakuraku/kihon/kihon3.rb +57 -0
- data/demo/rakuraku/kihon/kihon4.rb +70 -0
- data/demo/rakuraku/kihon/kihon5.rb +56 -0
- data/demo/rakuraku/kihon/kihon6.rb +40 -0
- data/demo/rakuraku/kihon/kihon7.rb +98 -0
- data/demo/rakuraku/kihon/kihon8.rb +93 -0
- data/demo/rakuraku/kihon/kihon9.rb +77 -0
- data/demo/rakuraku/kihon/kihona.rb +123 -0
- data/demo/rakuraku/kihon/kihonb.rb +73 -0
- data/demo/rakuraku/kihon/kihonc.rb +110 -0
- data/demo/rakuraku/layout/lay1.rb +29 -0
- data/demo/rakuraku/layout/lay2.rb +28 -0
- data/demo/rakuraku/layout/lay3.rb +29 -0
- data/demo/rakuraku/map3d/map3d1.rb +68 -0
- data/demo/rakuraku/map3d/map3d2.rb +67 -0
- data/demo/rakuraku/map3d/map3d3.rb +66 -0
- data/demo/rakuraku/map3d/map3d4.rb +107 -0
- data/demo/rakuraku/map3d/map3d5.rb +118 -0
- data/demo/rakuraku/map3d/map3d6.rb +96 -0
- data/demo/rakuraku/map3d/map3d7.rb +98 -0
- data/demo/rakuraku/miss/miss1.rb +76 -0
- data/demo/rakuraku/miss/miss2.rb +60 -0
- data/demo/rakuraku/quick/quick1.rb +35 -0
- data/demo/rakuraku/quick/quick2.rb +33 -0
- data/demo/rakuraku/quick/quick3.rb +46 -0
- data/demo/rakuraku/quick/quick4.rb +47 -0
- data/demo/rakuraku/quick/quick5.rb +46 -0
- data/demo/rakuraku/u2d/u2d1.rb +50 -0
- data/demo/rakuraku/u2d/u2d2.rb +51 -0
- data/demo/rakuraku/u2d/u2d3.rb +70 -0
- data/demo/rakuraku/u2d/u2d4.rb +59 -0
- data/demo/rakuraku/u2d/u2d5.rb +61 -0
- data/demo/rakuraku/u2d/u2d6.rb +57 -0
- data/demo/rakuraku/u2d/u2d7.rb +103 -0
- data/demo/rakuraku/uspack/uspac1.rb +35 -0
- data/demo/rakuraku/uspack/uspac2.rb +66 -0
- data/demo/rakuraku/uspack/uspac3.rb +37 -0
- data/demo/rakuraku/uspack/uspac4.rb +49 -0
- data/demo/rakuraku/uxyz/uxyz1.rb +37 -0
- data/demo/rakuraku/uxyz/uxyz2.rb +35 -0
- data/demo/rakuraku/uxyz/uxyz3.rb +38 -0
- data/demo/rakuraku/uxyz/uxyz4.rb +36 -0
- data/demo/rakuraku/uxyz/uxyz5.rb +57 -0
- data/demo/rakuraku/uxyz/uxyz6.rb +43 -0
- data/demo/rakuraku/uxyz/uxyz7.rb +39 -0
- data/demo/rakuraku/uxyz/uxyz8.rb +56 -0
- data/demo/rubydcloriginal/uemrkz1.rb +37 -0
- data/dummy.c +9 -0
- data/extconf.rb +133 -0
- data/grph1_csgi.c +119 -0
- data/grph1_scpack.c +1388 -0
- data/grph1_sgpack.c +3876 -0
- data/grph1_slpack.c +432 -0
- data/grph1_stpack.c +1044 -0
- data/grph1_swpack.c +1922 -0
- data/grph1_zgpack.c.org +141 -0
- data/grph2_grpack.c +368 -0
- data/grph2_ucpack.c +1232 -0
- data/grph2_udpack.c +1404 -0
- data/grph2_uepack.c +1443 -0
- data/grph2_ugpack.c +1073 -0
- data/grph2_uhpack.c +943 -0
- data/grph2_ulpack.c +1304 -0
- data/grph2_umpack.c +1540 -0
- data/grph2_uspack.c +2481 -0
- data/grph2_uupack.c +1689 -0
- data/grph2_uvpack.c +943 -0
- data/grph2_uwpack.c +552 -0
- data/grph2_uxpack.c +555 -0
- data/grph2_uypack.c +555 -0
- data/grph2_uzpack.c +1455 -0
- data/init.c.default +187 -0
- data/init.c.gtk +189 -0
- data/lib/dcl.rb +5084 -0
- data/math1_blklib.c +227 -0
- data/math1_chrlib.c +239 -0
- data/math1_fnclib.c +254 -0
- data/math1_gnmlib.c +356 -0
- data/math1_gt2dlib.c +514 -0
- data/math1_ifalib.c +427 -0
- data/math1_indxlib.c +709 -0
- data/math1_intlib.c +167 -0
- data/math1_lrllib.c +817 -0
- data/math1_maplib.c +172 -0
- data/math1_oslib.c +111 -0
- data/math1_rfalib.c +1417 -0
- data/math1_rfblib.c +232 -0
- data/math1_sublib.c +221 -0
- data/math1_syslib.c +2025 -0
- data/math1_vialib.c +1156 -0
- data/math1_viblib.c +1027 -0
- data/math1_vralib.c +1156 -0
- data/math1_vrblib.c +1027 -0
- data/math1_xfclib.c +142 -0
- data/math2_fftlib.c +833 -0
- data/math2_intrlib.c +138 -0
- data/math2_rnmlib.c +226 -0
- data/math2_shtlib.c +1568 -0
- data/math2_vstlib.c +366 -0
- data/misc1_chnlib.c +179 -0
- data/misc1_datelib.c +953 -0
- data/misc1_fmtlib.c +99 -0
- data/misc1_misclib.c +118 -0
- data/misc1_randlib.c +142 -0
- data/misc1_timelib.c +380 -0
- data/obsolete/README +2 -0
- data/obsolete/dcl_ext.html +112 -0
- data/obsolete/dcl_ext.rb +313 -0
- metadata +433 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
#
|
2
|
+
# grpk01.rb
|
3
|
+
#
|
4
|
+
# $Id: grpk01.rb,v 1.1.1.1 2011-02-23 07:21:27 horinout Exp $
|
5
|
+
#
|
6
|
+
|
7
|
+
require "narray"
|
8
|
+
require "numru/dcl"
|
9
|
+
|
10
|
+
include NumRu
|
11
|
+
include Math
|
12
|
+
|
13
|
+
|
14
|
+
#-- graph ---
|
15
|
+
iws = (ARGV[0] || (puts ' WORKSTATION ID (I) ? ;'; DCL::sgpwsn; gets)).to_i
|
16
|
+
DCL::gropn iws
|
17
|
+
|
18
|
+
DCL::grfrm
|
19
|
+
|
20
|
+
DCL::grswnd(0.0, 1.0, -0.7, 0.7)
|
21
|
+
DCL::grsvpt(0.2, 0.8, 0.2, 0.6)
|
22
|
+
DCL::grstrn(1)
|
23
|
+
DCL::grstrf
|
24
|
+
DCL::ussttl('X-AXIS', ' ', 'Y1-AXIS', ' ')
|
25
|
+
DCL::usdaxs
|
26
|
+
DCL::sgtxzu(0.5, 0.0, 'PAGE:1, FRAME:1', 0.02, 0, 0, 3)
|
27
|
+
|
28
|
+
DCL::grfig
|
29
|
+
|
30
|
+
DCL::grswnd(0.0, 1.0, -0.5, 0.5)
|
31
|
+
DCL::grsvpt(0.2, 0.8, 0.62, 0.82)
|
32
|
+
DCL::grstrn(1)
|
33
|
+
DCL::grstrf
|
34
|
+
DCL::uzlset('LABELXB', false)
|
35
|
+
DCL::ussttl('X-AXIS', ' ', 'Y2-AXIS', ' ')
|
36
|
+
DCL::usdaxs
|
37
|
+
DCL::sgtxzu(0.5, 0.0, 'PAGE:1, FRAME:2', 0.02, 0, 0, 3)
|
38
|
+
DCL::uzlset('LABELXB', true)
|
39
|
+
|
40
|
+
DCL::grfrm
|
41
|
+
|
42
|
+
DCL::uzfact(0.5)
|
43
|
+
|
44
|
+
DCL::grswnd(0.0, 1.0, -0.7, 0.7)
|
45
|
+
DCL::grsvpt(0.2, 0.8, 0.2, 0.6)
|
46
|
+
DCL::grstrn(1)
|
47
|
+
DCL::grstrf
|
48
|
+
DCL::ussttl('X-AXIS', ' ', 'Y1-AXIS', ' ')
|
49
|
+
DCL::usdaxs
|
50
|
+
DCL::sgtxzu(0.5, 0.0, 'PAGE:2, FRAME:1', 0.02, 0, 0, 3)
|
51
|
+
|
52
|
+
DCL::grfig
|
53
|
+
|
54
|
+
DCL::grswnd(0.0, 1.0, -0.5, 0.5)
|
55
|
+
DCL::grsvpt(0.2, 0.8, 0.62, 0.82)
|
56
|
+
DCL::grstrn(1)
|
57
|
+
DCL::grstrf
|
58
|
+
DCL::uzlset('LABELXB', false)
|
59
|
+
DCL::ussttl('X-AXIS', ' ', 'Y2-AXIS', ' ')
|
60
|
+
DCL::usdaxs
|
61
|
+
DCL::sgtxzu(0.5, 0.0, 'PAGE:2, FRAME:2', 0.02, 0, 0, 3)
|
62
|
+
DCL::uzlset('LABELXB', true)
|
63
|
+
|
64
|
+
DCL::grcls
|
65
|
+
|
@@ -0,0 +1,95 @@
|
|
1
|
+
#
|
2
|
+
# ucpk01.rb
|
3
|
+
#
|
4
|
+
# $Id: ucpk01.rb,v 1.1.1.1 2011-02-23 07:21:27 horinout Exp $
|
5
|
+
#
|
6
|
+
|
7
|
+
require "narray"
|
8
|
+
require "numru/dcl"
|
9
|
+
|
10
|
+
include NumRu
|
11
|
+
include Math
|
12
|
+
|
13
|
+
|
14
|
+
jd0 = 19920401
|
15
|
+
|
16
|
+
#-- graph ---
|
17
|
+
iws = (ARGV[0] || (puts ' WORKSTATION ID (I) ? ;'; DCL::sgpwsn; gets)).to_i
|
18
|
+
DCL::sgopn(-(iws.abs))
|
19
|
+
|
20
|
+
DCL::sglset('LFULL', true)
|
21
|
+
DCL::uzfact(0.7)
|
22
|
+
DCL::slrat(0.75, 1.0)
|
23
|
+
DCL::sldiv('T', 1, 7)
|
24
|
+
|
25
|
+
DCL::sgfrm
|
26
|
+
DCL::uzinit
|
27
|
+
nd=30
|
28
|
+
DCL::sgswnd(0.0, nd.to_f, 0.0, 1.0)
|
29
|
+
DCL::sgsvpt(0.1, 0.9, 0.1, 0.11)
|
30
|
+
DCL::sgstrn(1)
|
31
|
+
DCL::sgstrf
|
32
|
+
DCL::ucxacl('B', jd0, nd)
|
33
|
+
|
34
|
+
DCL::sgfrm
|
35
|
+
DCL::uzinit
|
36
|
+
nd=90
|
37
|
+
DCL::sgswnd(0.0, nd.to_f, 0.0, 1.0)
|
38
|
+
DCL::sgsvpt(0.1, 0.9, 0.1, 0.11)
|
39
|
+
DCL::sgstrn(1)
|
40
|
+
DCL::sgstrf
|
41
|
+
DCL::ucxacl('B', jd0, nd)
|
42
|
+
|
43
|
+
DCL::sgfrm
|
44
|
+
DCL::uzinit
|
45
|
+
nd=180
|
46
|
+
DCL::sgswnd(0.0, nd.to_f, 0.0, 1.0)
|
47
|
+
DCL::sgsvpt(0.1, 0.9, 0.1, 0.11)
|
48
|
+
DCL::sgstrn(1)
|
49
|
+
DCL::sgstrf
|
50
|
+
DCL::ucxacl('B', jd0, nd)
|
51
|
+
|
52
|
+
DCL::sgfrm
|
53
|
+
DCL::uzinit
|
54
|
+
nd=400
|
55
|
+
DCL::sgswnd(0.0, nd.to_f, 0.0, 1.0)
|
56
|
+
DCL::sgsvpt(0.1, 0.9, 0.1, 0.11)
|
57
|
+
DCL::sgstrn(1)
|
58
|
+
DCL::sgstrf
|
59
|
+
DCL::ucxacl('B', jd0, nd)
|
60
|
+
|
61
|
+
DCL::sgfrm
|
62
|
+
DCL::uzinit
|
63
|
+
nd=60
|
64
|
+
DCL::sgswnd(0.0, nd.to_f, 0.0, 1.0)
|
65
|
+
DCL::sgsvpt(0.1, 0.9, 0.1, 0.11)
|
66
|
+
DCL::sgstrn(1)
|
67
|
+
DCL::sgstrf
|
68
|
+
DCL::ucxady('B', jd0, nd)
|
69
|
+
ctl = 'UCXADY (ND=60)'
|
70
|
+
DCL::uxsttl('B', ctl, 0.0)
|
71
|
+
|
72
|
+
DCL::sgfrm
|
73
|
+
DCL::uzinit
|
74
|
+
nd=120
|
75
|
+
DCL::sgswnd(0.0, nd.to_f, 0.0, 1.0)
|
76
|
+
DCL::sgsvpt(0.1, 0.9, 0.1, 0.11)
|
77
|
+
DCL::sgstrn(1)
|
78
|
+
DCL::sgstrf
|
79
|
+
DCL::ucxamn('B', jd0, nd)
|
80
|
+
ctl = 'UCXAMN (ND=120)'
|
81
|
+
DCL::uxsttl('B', ctl, 0.0)
|
82
|
+
|
83
|
+
DCL::sgfrm
|
84
|
+
DCL::uzinit
|
85
|
+
nd=2000
|
86
|
+
DCL::sgswnd(0.0, nd.to_f, 0.0, 1.0)
|
87
|
+
DCL::sgsvpt(0.1, 0.9, 0.1, 0.11)
|
88
|
+
DCL::sgstrn(1)
|
89
|
+
DCL::sgstrf
|
90
|
+
DCL::ucxayr('B', jd0, nd)
|
91
|
+
ctl = 'UCXAYR (ND=2000)'
|
92
|
+
DCL::uxsttl('B', ctl, 0.0)
|
93
|
+
|
94
|
+
DCL::sgcls
|
95
|
+
|
@@ -0,0 +1,95 @@
|
|
1
|
+
#
|
2
|
+
# ucpk02.rb
|
3
|
+
#
|
4
|
+
# $Id: ucpk02.rb,v 1.1.1.1 2011-02-23 07:21:27 horinout Exp $
|
5
|
+
#
|
6
|
+
|
7
|
+
require "narray"
|
8
|
+
require "numru/dcl"
|
9
|
+
|
10
|
+
include NumRu
|
11
|
+
include Math
|
12
|
+
|
13
|
+
|
14
|
+
jd0 = 19920401
|
15
|
+
|
16
|
+
#-- graph ---
|
17
|
+
iws = (ARGV[0] || (puts ' WORKSTATION ID (I) ? ;'; DCL::sgpwsn; gets)).to_i
|
18
|
+
DCL::sgopn(iws.abs)
|
19
|
+
|
20
|
+
DCL::sglset('LFULL', true)
|
21
|
+
DCL::uzfact(0.7)
|
22
|
+
DCL::slrat(1.0, 0.75)
|
23
|
+
DCL::sldiv('Y', 7, 1)
|
24
|
+
|
25
|
+
DCL::sgfrm
|
26
|
+
DCL::uzinit
|
27
|
+
nd=30
|
28
|
+
DCL::sgswnd(0.0, 1.0, 0.0, nd.to_f)
|
29
|
+
DCL::sgsvpt(0.13, 0.14, 0.1, 0.9)
|
30
|
+
DCL::sgstrn(1)
|
31
|
+
DCL::sgstrf
|
32
|
+
DCL::ucyacl('L', jd0, nd)
|
33
|
+
|
34
|
+
DCL::sgfrm
|
35
|
+
DCL::uzinit
|
36
|
+
nd=90
|
37
|
+
DCL::sgswnd(0.0, 1.0, 0.0, nd.to_f)
|
38
|
+
DCL::sgsvpt(0.13, 0.14, 0.1, 0.9)
|
39
|
+
DCL::sgstrn(1)
|
40
|
+
DCL::sgstrf
|
41
|
+
DCL::ucyacl('L', jd0, nd)
|
42
|
+
|
43
|
+
DCL::sgfrm
|
44
|
+
DCL::uzinit
|
45
|
+
nd=180
|
46
|
+
DCL::sgswnd(0.0, 1.0, 0.0, nd.to_f)
|
47
|
+
DCL::sgsvpt(0.13, 0.14, 0.1, 0.9)
|
48
|
+
DCL::sgstrn(1)
|
49
|
+
DCL::sgstrf
|
50
|
+
DCL::ucyacl('L', jd0, nd)
|
51
|
+
|
52
|
+
DCL::sgfrm
|
53
|
+
DCL::uzinit
|
54
|
+
nd=400
|
55
|
+
DCL::sgswnd(0.0, 1.0, 0.0, nd.to_f)
|
56
|
+
DCL::sgsvpt(0.13, 0.14, 0.1, 0.9)
|
57
|
+
DCL::sgstrn(1)
|
58
|
+
DCL::sgstrf
|
59
|
+
DCL::ucyacl('L', jd0, nd)
|
60
|
+
|
61
|
+
DCL::sgfrm
|
62
|
+
DCL::uzinit
|
63
|
+
nd=60
|
64
|
+
DCL::sgswnd(0.0, 1.0, 0.0, nd.to_f)
|
65
|
+
DCL::sgsvpt(0.13, 0.14, 0.1, 0.9)
|
66
|
+
DCL::sgstrn(1)
|
67
|
+
DCL::sgstrf
|
68
|
+
DCL::ucyady('L', jd0, nd)
|
69
|
+
ctl = 'UCYADY (ND=60)'
|
70
|
+
DCL::uysttl('L', ctl, 0.0)
|
71
|
+
|
72
|
+
DCL::sgfrm
|
73
|
+
DCL::uzinit
|
74
|
+
nd=120
|
75
|
+
DCL::sgswnd(0.0, 1.0, 0.0, nd.to_f)
|
76
|
+
DCL::sgsvpt(0.13, 0.14, 0.1, 0.9)
|
77
|
+
DCL::sgstrn(1)
|
78
|
+
DCL::sgstrf
|
79
|
+
DCL::ucyamn('L', jd0, nd)
|
80
|
+
ctl = 'UCYAMN (ND=120)'
|
81
|
+
DCL::uysttl('L', ctl, 0.0)
|
82
|
+
|
83
|
+
DCL::sgfrm
|
84
|
+
DCL::uzinit
|
85
|
+
nd=2000
|
86
|
+
DCL::sgswnd(0.0, 1.0, 0.0, nd.to_f)
|
87
|
+
DCL::sgsvpt(0.13, 0.14, 0.1, 0.9)
|
88
|
+
DCL::sgstrn(1)
|
89
|
+
DCL::sgstrf
|
90
|
+
DCL::ucyayr('L', jd0, nd)
|
91
|
+
ctl = 'UCYAYR (ND=2000)'
|
92
|
+
DCL::uysttl('L', ctl, 0.0)
|
93
|
+
|
94
|
+
DCL::sgcls
|
95
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#
|
2
|
+
# u2df01.rb
|
3
|
+
#
|
4
|
+
# $Id: u2df01.rb,v 1.1.1.1 2011-02-23 07:21:27 horinout Exp $
|
5
|
+
#
|
6
|
+
|
7
|
+
require "narray"
|
8
|
+
require "numru/dcl"
|
9
|
+
|
10
|
+
include NumRu
|
11
|
+
include Math
|
12
|
+
|
13
|
+
|
14
|
+
nx = 19
|
15
|
+
ny = 19
|
16
|
+
xmin = 0
|
17
|
+
xmax = 360
|
18
|
+
ymin = -90
|
19
|
+
ymax = 90
|
20
|
+
drad = PI/180
|
21
|
+
dz = 0.05
|
22
|
+
p = NArray.sfloat(nx, ny)
|
23
|
+
|
24
|
+
#-- data ---
|
25
|
+
for j in 0..ny-1
|
26
|
+
for i in 0..nx-1
|
27
|
+
alon = (xmin + (xmax-xmin)*i/(nx-1)) * drad
|
28
|
+
alat = (ymin + (ymax-ymin)*j/(ny-1)) * drad
|
29
|
+
slat = sin(alat)
|
30
|
+
p[i,j] = cos(alon) * (1-slat**2) * sin(2*PI*slat) + dz
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
#-- graph ---
|
35
|
+
iws = (ARGV[0] || (puts ' WORKSTATION ID (I) ? ;'; DCL::sgpwsn; gets)).to_i
|
36
|
+
DCL::gropn iws
|
37
|
+
|
38
|
+
DCL::grfrm
|
39
|
+
|
40
|
+
DCL::grswnd(xmin, xmax, ymin, ymax)
|
41
|
+
DCL::grsvpt(0.2, 0.8, 0.2, 0.8)
|
42
|
+
DCL::grstrn(1)
|
43
|
+
DCL::grstrf
|
44
|
+
|
45
|
+
DCL::usdaxs
|
46
|
+
|
47
|
+
DCL::udcntr(p)
|
48
|
+
|
49
|
+
DCL::grcls
|
50
|
+
|
@@ -0,0 +1,76 @@
|
|
1
|
+
#
|
2
|
+
# u2df02.rb
|
3
|
+
#
|
4
|
+
# $Id: u2df02.rb,v 1.1.1.1 2011-02-23 07:21:27 horinout Exp $
|
5
|
+
#
|
6
|
+
|
7
|
+
require "narray"
|
8
|
+
require "numru/dcl"
|
9
|
+
|
10
|
+
include NumRu
|
11
|
+
include Math
|
12
|
+
|
13
|
+
|
14
|
+
nx = 19
|
15
|
+
ny = 19
|
16
|
+
xmin = 0
|
17
|
+
xmax = 360
|
18
|
+
dx1 = 10
|
19
|
+
dx2 = 60
|
20
|
+
ymin = -90
|
21
|
+
ymax = 90
|
22
|
+
my = 7
|
23
|
+
nc = 3
|
24
|
+
drad = PI/180
|
25
|
+
dz = 0.05
|
26
|
+
p = NArray.sfloat(nx, ny)
|
27
|
+
uy1 = NArray.sfloat(ny)
|
28
|
+
uy2 = NArray.sfloat(my)
|
29
|
+
|
30
|
+
#-- data ---
|
31
|
+
ch = ['SP ', '60S', '30S', 'EQ ', '30N', '60N', 'NP ']
|
32
|
+
|
33
|
+
for j in 0..ny-1
|
34
|
+
for i in 0..nx-1
|
35
|
+
alon = (xmin + (xmax-xmin)*i/(nx-1)) * drad
|
36
|
+
alat = (ymin + (ymax-ymin)*j/(ny-1)) * drad
|
37
|
+
slat = sin(alat)
|
38
|
+
p[i,j] = cos(alon) * (1-slat**2) * sin(2*PI*slat) + dz
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
uy1.indgen(ymin, (ymax-ymin)/(ny-1))
|
43
|
+
uy1 = NMath.sin(uy1*drad)
|
44
|
+
uy2.indgen(ymin, (ymax-ymin)/(my-1))
|
45
|
+
uy2 = NMath.sin(uy2*drad)
|
46
|
+
|
47
|
+
#-- graph ---
|
48
|
+
iws = (ARGV[0] || (puts ' WORKSTATION ID (I) ? ;'; DCL::sgpwsn; gets)).to_i
|
49
|
+
DCL::gropn iws
|
50
|
+
|
51
|
+
DCL::grfrm
|
52
|
+
|
53
|
+
DCL::grswnd(xmin, xmax, uy1[0], uy1[ny-1])
|
54
|
+
DCL::grsvpt(0.2, 0.8, 0.2, 0.8)
|
55
|
+
DCL::grstrn(1)
|
56
|
+
DCL::grstrf
|
57
|
+
|
58
|
+
DCL::uxaxdv('B', dx1, dx2)
|
59
|
+
DCL::uxaxdv('T', dx1, dx2)
|
60
|
+
DCL::uxsttl('B', 'LONGITUDE', 0.0)
|
61
|
+
|
62
|
+
DCL::uyaxlb('L', uy1, uy2, ch, nc)
|
63
|
+
DCL::uyaxlb('R', uy1, uy2, ch, nc)
|
64
|
+
DCL::uysttl('L', 'LATITUDE', 0.0)
|
65
|
+
|
66
|
+
DCL::uwsgxb(xmin, xmax, nx)
|
67
|
+
DCL::uwsgya(uy1)
|
68
|
+
|
69
|
+
DCL::udsfmt('(F6.1)')
|
70
|
+
DCL::udgclb(p, 0.2)
|
71
|
+
DCL::udsclv(0.1, 1, 4, ' ', 0.01)
|
72
|
+
|
73
|
+
DCL::udcntr(p)
|
74
|
+
|
75
|
+
DCL::grcls
|
76
|
+
|
@@ -0,0 +1,80 @@
|
|
1
|
+
#
|
2
|
+
# u2df03.rb
|
3
|
+
#
|
4
|
+
# $Id: u2df03.rb,v 1.1.1.1 2011-02-23 07:21:27 horinout Exp $
|
5
|
+
#
|
6
|
+
|
7
|
+
require "narray"
|
8
|
+
require "numru/dcl"
|
9
|
+
|
10
|
+
include NumRu
|
11
|
+
include Math
|
12
|
+
|
13
|
+
|
14
|
+
nx = 19
|
15
|
+
ny = 19
|
16
|
+
xmin = 0
|
17
|
+
xmax = 360
|
18
|
+
dx1 = 10
|
19
|
+
dx2 = 60
|
20
|
+
ymin = -90
|
21
|
+
ymax = 90
|
22
|
+
my = 7
|
23
|
+
nc = 3
|
24
|
+
drad = PI/180
|
25
|
+
dz = 0.05
|
26
|
+
|
27
|
+
XMNZ = 60
|
28
|
+
XMXZ = 300
|
29
|
+
NXZ = 13
|
30
|
+
NYZ = 13
|
31
|
+
IXZ1 = 4
|
32
|
+
IYZ1 = 4
|
33
|
+
|
34
|
+
p = NArray.sfloat(nx, ny)
|
35
|
+
uy1 = NArray.sfloat(ny)
|
36
|
+
uy2 = NArray.sfloat(my)
|
37
|
+
|
38
|
+
#-- data ---
|
39
|
+
ch = ['SP ', '60S', '30S', 'EQ ', '30N', '60N', 'NP ']
|
40
|
+
|
41
|
+
for j in 0..ny-1
|
42
|
+
for i in 0..nx-1
|
43
|
+
alon = (xmin + (xmax-xmin)*i/(nx-1)) * drad
|
44
|
+
alat = (ymin + (ymax-ymin)*j/(ny-1)) * drad
|
45
|
+
slat = sin(alat)
|
46
|
+
p[i,j] = cos(alon) * (1-slat**2) * sin(2*PI*slat) + dz
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
uy1.indgen(ymin, (ymax-ymin)/(ny-1).to_f)
|
51
|
+
uy1 = NMath.sin(uy1*drad)
|
52
|
+
uy2.indgen(ymin, (ymax-ymin)/(my-1).to_f)
|
53
|
+
uy2 = NMath.sin(uy2*drad)
|
54
|
+
|
55
|
+
#-- graph ---
|
56
|
+
iws = (ARGV[0] || (puts ' WORKSTATION ID (I) ? ;'; DCL::sgpwsn; gets)).to_i
|
57
|
+
DCL::gropn iws
|
58
|
+
|
59
|
+
DCL::grfrm
|
60
|
+
|
61
|
+
DCL::grswnd(xmin, xmax, uy1[0], uy1[ny-1])
|
62
|
+
DCL::grsvpt(0.2, 0.8, 0.2, 0.8)
|
63
|
+
DCL::grstrn(1)
|
64
|
+
DCL::grstrf
|
65
|
+
|
66
|
+
DCL::uxaxdv('B', dx1, dx2)
|
67
|
+
DCL::uxaxdv('T', dx1, dx2)
|
68
|
+
DCL::uxsttl('B', 'LONGITUDE', 0.0)
|
69
|
+
|
70
|
+
DCL::uyaxlb('L', uy1, uy2, ch, nc)
|
71
|
+
DCL::uyaxlb('R', uy1, uy2, ch, nc)
|
72
|
+
DCL::uysttl('L', 'LATITUDE', 0.0)
|
73
|
+
|
74
|
+
DCL::uwsgxb(XMNZ, XMXZ, NXZ)
|
75
|
+
DCL::uwsgya(uy1[(IYZ1-1)..-1])
|
76
|
+
|
77
|
+
DCL::udcntr(p[(IXZ1-1)..-1,(IYZ1-1)..-1])
|
78
|
+
|
79
|
+
DCL::grcls
|
80
|
+
|