gentooboontoo-gphys 0.6.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ChangeLog +1255 -0
- data/README +32 -0
- data/bin/gdir_client +9 -0
- data/bin/gdir_server +123 -0
- data/bin/gpaop +134 -0
- data/bin/gpcat +140 -0
- data/bin/gpcut +94 -0
- data/bin/gpedit +196 -0
- data/bin/gplist +67 -0
- data/bin/gpmath +114 -0
- data/bin/gpmaxmin +127 -0
- data/bin/gpprint +57 -0
- data/bin/gpvect +657 -0
- data/bin/gpview +603 -0
- data/bin/grads2nc_with_gphys +56 -0
- data/doc/attribute.html +19 -0
- data/doc/attributenetcdf.html +15 -0
- data/doc/axis.html +368 -0
- data/doc/coordmapping.html +111 -0
- data/doc/coordtransform.html +36 -0
- data/doc/derivative/gphys-derivative.html +80 -0
- data/doc/derivative/index.html +21 -0
- data/doc/derivative/index.rd +14 -0
- data/doc/derivative/math-doc/document/document.css +30 -0
- data/doc/derivative/math-doc/document/document.html +57 -0
- data/doc/derivative/math-doc/document/images.aux +1 -0
- data/doc/derivative/math-doc/document/images.log +385 -0
- data/doc/derivative/math-doc/document/images.pl +186 -0
- data/doc/derivative/math-doc/document/images.tex +364 -0
- data/doc/derivative/math-doc/document/img1.png +0 -0
- data/doc/derivative/math-doc/document/img10.png +0 -0
- data/doc/derivative/math-doc/document/img11.png +0 -0
- data/doc/derivative/math-doc/document/img12.png +0 -0
- data/doc/derivative/math-doc/document/img13.png +0 -0
- data/doc/derivative/math-doc/document/img14.png +0 -0
- data/doc/derivative/math-doc/document/img15.png +0 -0
- data/doc/derivative/math-doc/document/img16.png +0 -0
- data/doc/derivative/math-doc/document/img17.png +0 -0
- data/doc/derivative/math-doc/document/img18.png +0 -0
- data/doc/derivative/math-doc/document/img19.png +0 -0
- data/doc/derivative/math-doc/document/img2.png +0 -0
- data/doc/derivative/math-doc/document/img20.png +0 -0
- data/doc/derivative/math-doc/document/img21.png +0 -0
- data/doc/derivative/math-doc/document/img22.png +0 -0
- data/doc/derivative/math-doc/document/img23.png +0 -0
- data/doc/derivative/math-doc/document/img24.png +0 -0
- data/doc/derivative/math-doc/document/img25.png +0 -0
- data/doc/derivative/math-doc/document/img26.png +0 -0
- data/doc/derivative/math-doc/document/img27.png +0 -0
- data/doc/derivative/math-doc/document/img28.png +0 -0
- data/doc/derivative/math-doc/document/img29.png +0 -0
- data/doc/derivative/math-doc/document/img3.png +0 -0
- data/doc/derivative/math-doc/document/img30.png +0 -0
- data/doc/derivative/math-doc/document/img4.png +0 -0
- data/doc/derivative/math-doc/document/img5.png +0 -0
- data/doc/derivative/math-doc/document/img6.png +0 -0
- data/doc/derivative/math-doc/document/img7.png +0 -0
- data/doc/derivative/math-doc/document/img8.png +0 -0
- data/doc/derivative/math-doc/document/img9.png +0 -0
- data/doc/derivative/math-doc/document/index.html +57 -0
- data/doc/derivative/math-doc/document/labels.pl +13 -0
- data/doc/derivative/math-doc/document/next.png +0 -0
- data/doc/derivative/math-doc/document/next_g.png +0 -0
- data/doc/derivative/math-doc/document/node1.html +238 -0
- data/doc/derivative/math-doc/document/node2.html +75 -0
- data/doc/derivative/math-doc/document/prev.png +0 -0
- data/doc/derivative/math-doc/document/prev_g.png +0 -0
- data/doc/derivative/math-doc/document/up.png +0 -0
- data/doc/derivative/math-doc/document/up_g.png +0 -0
- data/doc/derivative/math-doc/document.pdf +0 -0
- data/doc/derivative/math-doc/document.tex +158 -0
- data/doc/derivative/numru-derivative.html +129 -0
- data/doc/ep_flux/ep_flux.html +469 -0
- data/doc/ep_flux/ggraph_on_merdional_section.html +71 -0
- data/doc/ep_flux/index.html +31 -0
- data/doc/ep_flux/index.rd +24 -0
- data/doc/ep_flux/math-doc/document/WARNINGS +1 -0
- data/doc/ep_flux/math-doc/document/contents.png +0 -0
- data/doc/ep_flux/math-doc/document/crossref.png +0 -0
- data/doc/ep_flux/math-doc/document/document.css +30 -0
- data/doc/ep_flux/math-doc/document/document.html +101 -0
- data/doc/ep_flux/math-doc/document/images.aux +1 -0
- data/doc/ep_flux/math-doc/document/images.log +1375 -0
- data/doc/ep_flux/math-doc/document/images.pl +1328 -0
- data/doc/ep_flux/math-doc/document/images.tex +1471 -0
- data/doc/ep_flux/math-doc/document/img1.png +0 -0
- data/doc/ep_flux/math-doc/document/img10.png +0 -0
- data/doc/ep_flux/math-doc/document/img100.png +0 -0
- data/doc/ep_flux/math-doc/document/img101.png +0 -0
- data/doc/ep_flux/math-doc/document/img102.png +0 -0
- data/doc/ep_flux/math-doc/document/img103.png +0 -0
- data/doc/ep_flux/math-doc/document/img104.png +0 -0
- data/doc/ep_flux/math-doc/document/img105.png +0 -0
- data/doc/ep_flux/math-doc/document/img106.png +0 -0
- data/doc/ep_flux/math-doc/document/img107.png +0 -0
- data/doc/ep_flux/math-doc/document/img108.png +0 -0
- data/doc/ep_flux/math-doc/document/img109.png +0 -0
- data/doc/ep_flux/math-doc/document/img11.png +0 -0
- data/doc/ep_flux/math-doc/document/img110.png +0 -0
- data/doc/ep_flux/math-doc/document/img111.png +0 -0
- data/doc/ep_flux/math-doc/document/img112.png +0 -0
- data/doc/ep_flux/math-doc/document/img113.png +0 -0
- data/doc/ep_flux/math-doc/document/img114.png +0 -0
- data/doc/ep_flux/math-doc/document/img115.png +0 -0
- data/doc/ep_flux/math-doc/document/img116.png +0 -0
- data/doc/ep_flux/math-doc/document/img117.png +0 -0
- data/doc/ep_flux/math-doc/document/img118.png +0 -0
- data/doc/ep_flux/math-doc/document/img119.png +0 -0
- data/doc/ep_flux/math-doc/document/img12.png +0 -0
- data/doc/ep_flux/math-doc/document/img120.png +0 -0
- data/doc/ep_flux/math-doc/document/img121.png +0 -0
- data/doc/ep_flux/math-doc/document/img122.png +0 -0
- data/doc/ep_flux/math-doc/document/img123.png +0 -0
- data/doc/ep_flux/math-doc/document/img124.png +0 -0
- data/doc/ep_flux/math-doc/document/img125.png +0 -0
- data/doc/ep_flux/math-doc/document/img126.png +0 -0
- data/doc/ep_flux/math-doc/document/img127.png +0 -0
- data/doc/ep_flux/math-doc/document/img128.png +0 -0
- data/doc/ep_flux/math-doc/document/img129.png +0 -0
- data/doc/ep_flux/math-doc/document/img13.png +0 -0
- data/doc/ep_flux/math-doc/document/img130.png +0 -0
- data/doc/ep_flux/math-doc/document/img131.png +0 -0
- data/doc/ep_flux/math-doc/document/img132.png +0 -0
- data/doc/ep_flux/math-doc/document/img133.png +0 -0
- data/doc/ep_flux/math-doc/document/img134.png +0 -0
- data/doc/ep_flux/math-doc/document/img135.png +0 -0
- data/doc/ep_flux/math-doc/document/img136.png +0 -0
- data/doc/ep_flux/math-doc/document/img137.png +0 -0
- data/doc/ep_flux/math-doc/document/img138.png +0 -0
- data/doc/ep_flux/math-doc/document/img139.png +0 -0
- data/doc/ep_flux/math-doc/document/img14.png +0 -0
- data/doc/ep_flux/math-doc/document/img140.png +0 -0
- data/doc/ep_flux/math-doc/document/img141.png +0 -0
- data/doc/ep_flux/math-doc/document/img142.png +0 -0
- data/doc/ep_flux/math-doc/document/img143.png +0 -0
- data/doc/ep_flux/math-doc/document/img144.png +0 -0
- data/doc/ep_flux/math-doc/document/img145.png +0 -0
- data/doc/ep_flux/math-doc/document/img146.png +0 -0
- data/doc/ep_flux/math-doc/document/img147.png +0 -0
- data/doc/ep_flux/math-doc/document/img148.png +0 -0
- data/doc/ep_flux/math-doc/document/img149.png +0 -0
- data/doc/ep_flux/math-doc/document/img15.png +0 -0
- data/doc/ep_flux/math-doc/document/img150.png +0 -0
- data/doc/ep_flux/math-doc/document/img151.png +0 -0
- data/doc/ep_flux/math-doc/document/img152.png +0 -0
- data/doc/ep_flux/math-doc/document/img153.png +0 -0
- data/doc/ep_flux/math-doc/document/img154.png +0 -0
- data/doc/ep_flux/math-doc/document/img155.png +0 -0
- data/doc/ep_flux/math-doc/document/img156.png +0 -0
- data/doc/ep_flux/math-doc/document/img157.png +0 -0
- data/doc/ep_flux/math-doc/document/img158.png +0 -0
- data/doc/ep_flux/math-doc/document/img159.png +0 -0
- data/doc/ep_flux/math-doc/document/img16.png +0 -0
- data/doc/ep_flux/math-doc/document/img160.png +0 -0
- data/doc/ep_flux/math-doc/document/img161.png +0 -0
- data/doc/ep_flux/math-doc/document/img162.png +0 -0
- data/doc/ep_flux/math-doc/document/img163.png +0 -0
- data/doc/ep_flux/math-doc/document/img164.png +0 -0
- data/doc/ep_flux/math-doc/document/img165.png +0 -0
- data/doc/ep_flux/math-doc/document/img166.png +0 -0
- data/doc/ep_flux/math-doc/document/img167.png +0 -0
- data/doc/ep_flux/math-doc/document/img168.png +0 -0
- data/doc/ep_flux/math-doc/document/img169.png +0 -0
- data/doc/ep_flux/math-doc/document/img17.png +0 -0
- data/doc/ep_flux/math-doc/document/img170.png +0 -0
- data/doc/ep_flux/math-doc/document/img171.png +0 -0
- data/doc/ep_flux/math-doc/document/img172.png +0 -0
- data/doc/ep_flux/math-doc/document/img173.png +0 -0
- data/doc/ep_flux/math-doc/document/img174.png +0 -0
- data/doc/ep_flux/math-doc/document/img175.png +0 -0
- data/doc/ep_flux/math-doc/document/img176.png +0 -0
- data/doc/ep_flux/math-doc/document/img177.png +0 -0
- data/doc/ep_flux/math-doc/document/img178.png +0 -0
- data/doc/ep_flux/math-doc/document/img179.png +0 -0
- data/doc/ep_flux/math-doc/document/img18.png +0 -0
- data/doc/ep_flux/math-doc/document/img180.png +0 -0
- data/doc/ep_flux/math-doc/document/img181.png +0 -0
- data/doc/ep_flux/math-doc/document/img182.png +0 -0
- data/doc/ep_flux/math-doc/document/img183.png +0 -0
- data/doc/ep_flux/math-doc/document/img184.png +0 -0
- data/doc/ep_flux/math-doc/document/img185.png +0 -0
- data/doc/ep_flux/math-doc/document/img186.png +0 -0
- data/doc/ep_flux/math-doc/document/img187.png +0 -0
- data/doc/ep_flux/math-doc/document/img188.png +0 -0
- data/doc/ep_flux/math-doc/document/img189.png +0 -0
- data/doc/ep_flux/math-doc/document/img19.png +0 -0
- data/doc/ep_flux/math-doc/document/img190.png +0 -0
- data/doc/ep_flux/math-doc/document/img191.png +0 -0
- data/doc/ep_flux/math-doc/document/img192.png +0 -0
- data/doc/ep_flux/math-doc/document/img193.png +0 -0
- data/doc/ep_flux/math-doc/document/img194.png +0 -0
- data/doc/ep_flux/math-doc/document/img195.png +0 -0
- data/doc/ep_flux/math-doc/document/img196.png +0 -0
- data/doc/ep_flux/math-doc/document/img197.png +0 -0
- data/doc/ep_flux/math-doc/document/img198.png +0 -0
- data/doc/ep_flux/math-doc/document/img199.png +0 -0
- data/doc/ep_flux/math-doc/document/img2.png +0 -0
- data/doc/ep_flux/math-doc/document/img20.png +0 -0
- data/doc/ep_flux/math-doc/document/img200.png +0 -0
- data/doc/ep_flux/math-doc/document/img21.png +0 -0
- data/doc/ep_flux/math-doc/document/img22.png +0 -0
- data/doc/ep_flux/math-doc/document/img23.png +0 -0
- data/doc/ep_flux/math-doc/document/img24.png +0 -0
- data/doc/ep_flux/math-doc/document/img25.png +0 -0
- data/doc/ep_flux/math-doc/document/img26.png +0 -0
- data/doc/ep_flux/math-doc/document/img27.png +0 -0
- data/doc/ep_flux/math-doc/document/img28.png +0 -0
- data/doc/ep_flux/math-doc/document/img29.png +0 -0
- data/doc/ep_flux/math-doc/document/img3.png +0 -0
- data/doc/ep_flux/math-doc/document/img30.png +0 -0
- data/doc/ep_flux/math-doc/document/img31.png +0 -0
- data/doc/ep_flux/math-doc/document/img32.png +0 -0
- data/doc/ep_flux/math-doc/document/img33.png +0 -0
- data/doc/ep_flux/math-doc/document/img34.png +0 -0
- data/doc/ep_flux/math-doc/document/img35.png +0 -0
- data/doc/ep_flux/math-doc/document/img36.png +0 -0
- data/doc/ep_flux/math-doc/document/img37.png +0 -0
- data/doc/ep_flux/math-doc/document/img38.png +0 -0
- data/doc/ep_flux/math-doc/document/img39.png +0 -0
- data/doc/ep_flux/math-doc/document/img4.png +0 -0
- data/doc/ep_flux/math-doc/document/img40.png +0 -0
- data/doc/ep_flux/math-doc/document/img41.png +0 -0
- data/doc/ep_flux/math-doc/document/img42.png +0 -0
- data/doc/ep_flux/math-doc/document/img43.png +0 -0
- data/doc/ep_flux/math-doc/document/img44.png +0 -0
- data/doc/ep_flux/math-doc/document/img45.png +0 -0
- data/doc/ep_flux/math-doc/document/img46.png +0 -0
- data/doc/ep_flux/math-doc/document/img47.png +0 -0
- data/doc/ep_flux/math-doc/document/img48.png +0 -0
- data/doc/ep_flux/math-doc/document/img49.png +0 -0
- data/doc/ep_flux/math-doc/document/img5.png +0 -0
- data/doc/ep_flux/math-doc/document/img50.png +0 -0
- data/doc/ep_flux/math-doc/document/img51.png +0 -0
- data/doc/ep_flux/math-doc/document/img52.png +0 -0
- data/doc/ep_flux/math-doc/document/img53.png +0 -0
- data/doc/ep_flux/math-doc/document/img54.png +0 -0
- data/doc/ep_flux/math-doc/document/img55.png +0 -0
- data/doc/ep_flux/math-doc/document/img56.png +0 -0
- data/doc/ep_flux/math-doc/document/img57.png +0 -0
- data/doc/ep_flux/math-doc/document/img58.png +0 -0
- data/doc/ep_flux/math-doc/document/img59.png +0 -0
- data/doc/ep_flux/math-doc/document/img6.png +0 -0
- data/doc/ep_flux/math-doc/document/img60.png +0 -0
- data/doc/ep_flux/math-doc/document/img61.png +0 -0
- data/doc/ep_flux/math-doc/document/img62.png +0 -0
- data/doc/ep_flux/math-doc/document/img63.png +0 -0
- data/doc/ep_flux/math-doc/document/img64.png +0 -0
- data/doc/ep_flux/math-doc/document/img65.png +0 -0
- data/doc/ep_flux/math-doc/document/img66.png +0 -0
- data/doc/ep_flux/math-doc/document/img67.png +0 -0
- data/doc/ep_flux/math-doc/document/img68.png +0 -0
- data/doc/ep_flux/math-doc/document/img69.png +0 -0
- data/doc/ep_flux/math-doc/document/img7.png +0 -0
- data/doc/ep_flux/math-doc/document/img70.png +0 -0
- data/doc/ep_flux/math-doc/document/img71.png +0 -0
- data/doc/ep_flux/math-doc/document/img72.png +0 -0
- data/doc/ep_flux/math-doc/document/img73.png +0 -0
- data/doc/ep_flux/math-doc/document/img74.png +0 -0
- data/doc/ep_flux/math-doc/document/img75.png +0 -0
- data/doc/ep_flux/math-doc/document/img76.png +0 -0
- data/doc/ep_flux/math-doc/document/img77.png +0 -0
- data/doc/ep_flux/math-doc/document/img78.png +0 -0
- data/doc/ep_flux/math-doc/document/img79.png +0 -0
- data/doc/ep_flux/math-doc/document/img8.png +0 -0
- data/doc/ep_flux/math-doc/document/img80.png +0 -0
- data/doc/ep_flux/math-doc/document/img81.png +0 -0
- data/doc/ep_flux/math-doc/document/img82.png +0 -0
- data/doc/ep_flux/math-doc/document/img83.png +0 -0
- data/doc/ep_flux/math-doc/document/img84.png +0 -0
- data/doc/ep_flux/math-doc/document/img85.png +0 -0
- data/doc/ep_flux/math-doc/document/img86.png +0 -0
- data/doc/ep_flux/math-doc/document/img87.png +0 -0
- data/doc/ep_flux/math-doc/document/img88.png +0 -0
- data/doc/ep_flux/math-doc/document/img89.png +0 -0
- data/doc/ep_flux/math-doc/document/img9.png +0 -0
- data/doc/ep_flux/math-doc/document/img90.png +0 -0
- data/doc/ep_flux/math-doc/document/img91.png +0 -0
- data/doc/ep_flux/math-doc/document/img92.png +0 -0
- data/doc/ep_flux/math-doc/document/img93.png +0 -0
- data/doc/ep_flux/math-doc/document/img94.png +0 -0
- data/doc/ep_flux/math-doc/document/img95.png +0 -0
- data/doc/ep_flux/math-doc/document/img96.png +0 -0
- data/doc/ep_flux/math-doc/document/img97.png +0 -0
- data/doc/ep_flux/math-doc/document/img98.png +0 -0
- data/doc/ep_flux/math-doc/document/img99.png +0 -0
- data/doc/ep_flux/math-doc/document/index.html +101 -0
- data/doc/ep_flux/math-doc/document/internals.pl +258 -0
- data/doc/ep_flux/math-doc/document/labels.pl +265 -0
- data/doc/ep_flux/math-doc/document/next.png +0 -0
- data/doc/ep_flux/math-doc/document/next_g.png +0 -0
- data/doc/ep_flux/math-doc/document/node1.html +104 -0
- data/doc/ep_flux/math-doc/document/node10.html +164 -0
- data/doc/ep_flux/math-doc/document/node11.html +86 -0
- data/doc/ep_flux/math-doc/document/node12.html +166 -0
- data/doc/ep_flux/math-doc/document/node13.html +897 -0
- data/doc/ep_flux/math-doc/document/node14.html +1065 -0
- data/doc/ep_flux/math-doc/document/node15.html +72 -0
- data/doc/ep_flux/math-doc/document/node16.html +81 -0
- data/doc/ep_flux/math-doc/document/node2.html +82 -0
- data/doc/ep_flux/math-doc/document/node3.html +91 -0
- data/doc/ep_flux/math-doc/document/node4.html +149 -0
- data/doc/ep_flux/math-doc/document/node5.html +330 -0
- data/doc/ep_flux/math-doc/document/node6.html +99 -0
- data/doc/ep_flux/math-doc/document/node7.html +98 -0
- data/doc/ep_flux/math-doc/document/node8.html +83 -0
- data/doc/ep_flux/math-doc/document/node9.html +140 -0
- data/doc/ep_flux/math-doc/document/prev.png +0 -0
- data/doc/ep_flux/math-doc/document/prev_g.png +0 -0
- data/doc/ep_flux/math-doc/document/up.png +0 -0
- data/doc/ep_flux/math-doc/document/up_g.png +0 -0
- data/doc/ep_flux/math-doc/document.pdf +0 -0
- data/doc/ep_flux/math-doc/document.tex +2018 -0
- data/doc/gdir.html +412 -0
- data/doc/gdir_client.html +16 -0
- data/doc/gdir_connect_ftp-like.html +61 -0
- data/doc/gdir_server.html +33 -0
- data/doc/ggraph.html +1332 -0
- data/doc/gpcat.html +27 -0
- data/doc/gpcut.html +27 -0
- data/doc/gphys.html +501 -0
- data/doc/gphys_fft.html +183 -0
- data/doc/gphys_grads_io.html +69 -0
- data/doc/gphys_grib_io.html +82 -0
- data/doc/gphys_io.html +96 -0
- data/doc/gphys_io_common.html +18 -0
- data/doc/gphys_netcdf_io.html +283 -0
- data/doc/gplist.html +23 -0
- data/doc/gpmath.html +34 -0
- data/doc/gpmaxmin.html +30 -0
- data/doc/gpprint.html +32 -0
- data/doc/gpview.html +187 -0
- data/doc/grads2nc_with_gphys.html +23 -0
- data/doc/grads_gridded.html +307 -0
- data/doc/grib.html +101 -0
- data/doc/grid.html +240 -0
- data/doc/index.html +125 -0
- data/doc/index.rd +121 -0
- data/doc/netcdf_convention.html +136 -0
- data/doc/unumeric.html +127 -0
- data/doc/update +64 -0
- data/doc/varray.html +293 -0
- data/doc/varraycomposite.html +67 -0
- data/lib/numru/dclext_datetime_ax.rb +220 -0
- data/lib/numru/derivative.rb +298 -0
- data/lib/numru/gdir.rb +1038 -0
- data/lib/numru/gdir_connect_ftp-like.rb +149 -0
- data/lib/numru/ggraph.rb +4604 -0
- data/lib/numru/ggraph_on_merdional_section.rb +178 -0
- data/lib/numru/gphys/attribute.rb +130 -0
- data/lib/numru/gphys/attributenetcdf.rb +80 -0
- data/lib/numru/gphys/axis.rb +958 -0
- data/lib/numru/gphys/coordmapping.rb +286 -0
- data/lib/numru/gphys/coordtransform.rb +209 -0
- data/lib/numru/gphys/derivative.rb +297 -0
- data/lib/numru/gphys/ep_flux.rb +868 -0
- data/lib/numru/gphys/gpcommon.rb +52 -0
- data/lib/numru/gphys/gphys.rb +1121 -0
- data/lib/numru/gphys/gphys_fft.rb +538 -0
- data/lib/numru/gphys/gphys_grads_io.rb +212 -0
- data/lib/numru/gphys/gphys_grib_io.rb +214 -0
- data/lib/numru/gphys/gphys_io.rb +363 -0
- data/lib/numru/gphys/gphys_io_common.rb +126 -0
- data/lib/numru/gphys/gphys_netcdf_io.rb +767 -0
- data/lib/numru/gphys/gphys_nusdas_io.rb +78 -0
- data/lib/numru/gphys/grads_gridded.rb +1539 -0
- data/lib/numru/gphys/grib.rb +2005 -0
- data/lib/numru/gphys/grib_params.rb +1270 -0
- data/lib/numru/gphys/grid.rb +602 -0
- data/lib/numru/gphys/netcdf_convention.rb +366 -0
- data/lib/numru/gphys/subsetmapping.rb +332 -0
- data/lib/numru/gphys/unumeric.rb +452 -0
- data/lib/numru/gphys/varray.rb +1079 -0
- data/lib/numru/gphys/varraycomposite.rb +415 -0
- data/lib/numru/gphys/varraygrads.rb +225 -0
- data/lib/numru/gphys/varraygrib.rb +177 -0
- data/lib/numru/gphys/varraynetcdf.rb +348 -0
- data/lib/numru/gphys/varraynusdas.rb +59 -0
- data/lib/numru/gphys.rb +7 -0
- data/lib/numru/htdir.rb +170 -0
- data/lib/numru/vizshot.rb +697 -0
- data/sample/cira86_to_nc.rb +122 -0
- data/sample/druby_cli1.rb +21 -0
- data/sample/druby_cli2.rb +34 -0
- data/sample/druby_serv1.rb +30 -0
- data/sample/druby_serv2.rb +64 -0
- data/sample/ep_flux/demo_NCEP_1.rb +48 -0
- data/sample/ep_flux/demo_NCEP_2.rb +57 -0
- data/sample/ep_flux/demo_NCEP_3.rb +81 -0
- data/sample/ggraph_latlon_labelling_dr002690.rb +159 -0
- data/sample/ggraph_mapfit-axes_dr002687.rb +131 -0
- data/sample/map_projection.rb +121 -0
- data/test/test_ep_flux.rb +533 -0
- data/testdata/T.jan.ctl +12 -0
- data/testdata/T.jan.dat +0 -0
- data/testdata/T.jan.grib +0 -0
- data/testdata/T.jan.nc +0 -0
- data/testdata/T.jan.packed.withmiss.nc +0 -0
- data/testdata/UV.jan.nc +0 -0
- data/testdata/cira86.dat +1332 -0
- metadata +527 -0
@@ -0,0 +1,178 @@
|
|
1
|
+
require 'numru/ggraph'
|
2
|
+
require 'numru/gphys/ep_flux'
|
3
|
+
|
4
|
+
############################################################
|
5
|
+
|
6
|
+
=begin
|
7
|
+
=module NumRu::GGraph in vector_on_merdional_section.rb
|
8
|
+
|
9
|
+
This file defines additional method of NumRu::GGraph. This method is for
|
10
|
+
drawing vector on merdional sections.
|
11
|
+
|
12
|
+
==Index
|
13
|
+
* ((<module NumRu::GGraph>))
|
14
|
+
* ((<vector_on_merdional_section>))
|
15
|
+
Draw vector by selecting the first 2 dimensions
|
16
|
+
(with GPhys#first2D) if (({gphys})) is more than 3D.
|
17
|
+
|
18
|
+
==Module Functions
|
19
|
+
|
20
|
+
---vector_on_merdional_section(fx, fy, newframe=true, options=nil)
|
21
|
+
Draw vector by selecting the first 2 dimensions
|
22
|
+
(with GPhys#first2D) if (({gphys})) is more than 3D.
|
23
|
+
|
24
|
+
ARGUMENTS
|
25
|
+
* fx (GPhys) : a GPhys whose data is plotted x-componet.
|
26
|
+
* fy (GPhys) : a GPhys whose data is plotted y-componet.
|
27
|
+
* newframe (true/false) : if true, calls ((<fig>)), ((<axes>)),
|
28
|
+
((<title>)), and ((<annotate>)) internally; if false, only
|
29
|
+
the poly-line is drawn (overlaid to the exiting figure).
|
30
|
+
* options (Hash) : options to change the default behavior if specified.
|
31
|
+
It is a Hash with option names (String) as keys and their values.
|
32
|
+
Options are interpreted by a NumRu::Misc::KeywordOptAutoHelp,
|
33
|
+
so you can shorten the keys (by omitting tails) as long as it is
|
34
|
+
unambiguous.
|
35
|
+
option name default value # description:
|
36
|
+
"title" nil # Title of the figure(if nil, internally
|
37
|
+
# determined)
|
38
|
+
"annotate" true # if false, do not put texts on the right
|
39
|
+
# margin even when newframe==true
|
40
|
+
"transpose" false # if true, exchange x and y axes
|
41
|
+
"flow_vect" true # If true, use DCLExt::flow_vect to draw
|
42
|
+
# vectors; otherwise, DCL::ugvect is used
|
43
|
+
"xintv" 1 # (Effective only if flow_vect) interval
|
44
|
+
# sampling in x of data
|
45
|
+
"yintv" 1 # (Effective only if flow_vect) interval
|
46
|
+
# of data sampling in y
|
47
|
+
"factor" 1.0 # (Effective only if flow_vect) scaling
|
48
|
+
# factor to strech/reduce the arrow
|
49
|
+
# lengths.
|
50
|
+
"use_before_scale" #
|
51
|
+
false #(Effective only unless flow_vect) If true,
|
52
|
+
# use scale factor before vector.
|
53
|
+
"unit_vect" false # Show the unit vector
|
54
|
+
"max_unit_vect" false # (Effective only if flow_vect &&
|
55
|
+
# unit_vect) If true, use the maximum
|
56
|
+
# arrows to scale the unit vector;
|
57
|
+
# otherwise, normalize in V coordinate.
|
58
|
+
|
59
|
+
RETURN VALUE
|
60
|
+
* nil
|
61
|
+
|
62
|
+
=end
|
63
|
+
|
64
|
+
############################################################
|
65
|
+
|
66
|
+
module NumRu
|
67
|
+
|
68
|
+
module GGraph
|
69
|
+
|
70
|
+
module_function
|
71
|
+
|
72
|
+
def vector_on_merdional_section(fx, fy, newframe=true, options=nil)
|
73
|
+
if ! defined?(@@vector_on_merdional_section_options)
|
74
|
+
@@vector_on_merdional_section_options = Misc::KeywordOptAutoHelp.new(
|
75
|
+
['newfig', true, 'if false, do not cleared before figure setting.'],
|
76
|
+
['title', nil, 'Title of the figure(if nil, internally determined)'],
|
77
|
+
['annotate', true, 'if false, do not put texts on the right margin even when newframe==true'],
|
78
|
+
['transpose', false, 'if true, exchange x and y axes'],
|
79
|
+
['flow_vect', true, 'If true, use DCLExt::flow_vect to draw vectors; otherwise, DCL::ugvect is used.'],
|
80
|
+
['xintv', 1, '(Effective only if flow_vect) interval of data sampling in x'],
|
81
|
+
['yintv', 1, '(Effective only if flow_vect) interval of data sampling in y'],
|
82
|
+
['factor', 1.0, '(Effective only if flow_vect) scaling factor to strech/reduce the arrow lengths'],
|
83
|
+
['unit_vect', false, 'Show the unit vector'],
|
84
|
+
['use_before_scale', false, '(Effective only unless flow_vect) If true, use scale factor before vector.'],
|
85
|
+
['max_unit_vect', false, '(Effective only if flow_vect && unit_vect)
|
86
|
+
If true, use the maximum arrows to scale the unit vector; otherwise, normalize in V coordinate.']
|
87
|
+
)
|
88
|
+
end
|
89
|
+
opts = @@vector_on_merdional_section_options.interpret(options)
|
90
|
+
fx = fx.first2D.copy
|
91
|
+
fy = fy.first2D.copy
|
92
|
+
sh = fx.shape
|
93
|
+
if sh != fy.shape
|
94
|
+
raise ArgumentError, "shapes of fx and fy do not agree with each other"
|
95
|
+
end
|
96
|
+
fx = fx.transpose(1,0) if opts['transpose']
|
97
|
+
fy = fy.transpose(1,0) if opts['transpose']
|
98
|
+
if ((xi=opts['xintv']) >= 2)
|
99
|
+
idx = NArray.int(sh[0]/xi).indgen!*xi # [0,xi,2*xi,..]
|
100
|
+
fx = fx[idx, true]
|
101
|
+
fy = fy[idx, true]
|
102
|
+
end
|
103
|
+
if ((yi=opts['xintv']) >= 2)
|
104
|
+
idx = NArray.int(sh[1]/yi).indgen!*yi # [0,yi,2*yi,..]
|
105
|
+
fx = fx[true, idx]
|
106
|
+
fy = fy[true, idx]
|
107
|
+
end
|
108
|
+
xax = fx.coord(0)
|
109
|
+
yax = fy.coord(1)
|
110
|
+
aphi_ax, z_ax, was_proportional_to_p = \
|
111
|
+
GPhys::EP_Flux::preparate_for_vector_on_merdional_section(xax, yax)
|
112
|
+
if was_proportional_to_p
|
113
|
+
itr = 2
|
114
|
+
else
|
115
|
+
itr = 1
|
116
|
+
end
|
117
|
+
if newframe
|
118
|
+
nextfig = @@next_fig.dup if ( @@next_fig != nil ) # backup next_fig
|
119
|
+
fig(xax, yax, {'itr'=>itr})
|
120
|
+
axes(xax, yax)
|
121
|
+
if opts['title']
|
122
|
+
ttl = opts['title']
|
123
|
+
else
|
124
|
+
fxnm = fx.data.get_att('long_name') || fx.name
|
125
|
+
fynm = fy.data.get_att('long_name') || fy.name
|
126
|
+
ttl = '('+fxnm+','+fynm+')'
|
127
|
+
end
|
128
|
+
title( ttl )
|
129
|
+
annotate(fx.lost_axes) if opts['annotate']
|
130
|
+
@@next_fig = nextfig if ( @@next_fig != nil )
|
131
|
+
end
|
132
|
+
fig(aphi_ax, z_ax, {'new_frame'=>false, 'itr'=>1, 'yreverse'=>false}) \
|
133
|
+
if (opts['newfig'])
|
134
|
+
DCL.uwsgxa(aphi_ax.val)
|
135
|
+
DCL.uwsgya(z_ax.val)
|
136
|
+
if opts['flow_vect']
|
137
|
+
if opts['use_before_scale']
|
138
|
+
vxfxratio = @@uninfo[0]; vxfyratio = @@uninfo[1]
|
139
|
+
before=DCLExt.ug_set_params( {'LNRMAL'=>false, 'LMSG'=>false,
|
140
|
+
'XFACT1'=>1.0, 'YFACT1'=>1.0} )
|
141
|
+
DCL.ugvect(vxfxratio*fx.val, vxfyratio*fy.val)
|
142
|
+
DCLExt.ug_set_params(before)
|
143
|
+
if opts['unit_vect']
|
144
|
+
if opts['max_unit_vect']
|
145
|
+
DCLExt.unit_vect(*@@uninfo)
|
146
|
+
else
|
147
|
+
DCLExt.unit_vect(*@@uninfo[0..1])
|
148
|
+
end
|
149
|
+
end
|
150
|
+
else
|
151
|
+
@@uninfo = DCLExt.flow_vect(fx.val, fy.val, opts['factor'] )
|
152
|
+
if opts['unit_vect']
|
153
|
+
if opts['max_unit_vect']
|
154
|
+
DCLExt.unit_vect(*@@uninfo)
|
155
|
+
else
|
156
|
+
DCLExt.unit_vect(*@@uninfo[0..1])
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
else
|
161
|
+
if opts['use_before_scale']
|
162
|
+
vxfxratio = @@uninfo[0]; vxfyratio = @@uninfo[1]
|
163
|
+
before1=DCLExt.ug_set_params({'lunit'=>true}) if opts['unit_vect']
|
164
|
+
before2=DCLExt.ug_set_params( {'LNRMAL'=>false, 'LMSG'=>false,
|
165
|
+
'XFACT1'=>1.0, 'YFACT1'=>1.0} )
|
166
|
+
DCL.ugvect(vxfxratio*fx.val, vxfyratio*fy.val)
|
167
|
+
DCLExt.ug_set_params(before1) if opts['unit_vect']
|
168
|
+
DCLExt.ug_set_params(before2)
|
169
|
+
else
|
170
|
+
before=DCLExt.ug_set_params({'lunit'=>true}) if opts['unit_vect']
|
171
|
+
DCL.ugvect(fx.val, fy.val)
|
172
|
+
DCLExt.ug_set_params(before) if opts['unit_vect']
|
173
|
+
end
|
174
|
+
nil
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
@@ -0,0 +1,130 @@
|
|
1
|
+
require "narray"
|
2
|
+
|
3
|
+
module NumRu
|
4
|
+
=begin
|
5
|
+
=class Attribute < Hash
|
6
|
+
A Hash class compatible with NetCDF attributes.
|
7
|
+
* Values are restricted to NetCDFAttr values
|
8
|
+
* Keys must be String or Symbol (Symbol is converted into String such that
|
9
|
+
they are used interchangeably. E.g., attr[:units] == attr["units"] )
|
10
|
+
=end
|
11
|
+
class Attribute < Hash
|
12
|
+
# privatalize all so that public methods must be set explicitly
|
13
|
+
private( *(Hash.instance_methods(false) - Object.new.methods).
|
14
|
+
collect{|i| i.intern} )
|
15
|
+
protected :[], :[]= # to be aliased
|
16
|
+
public :each, :each_key, :length, :keys, :delete, :delete_if
|
17
|
+
public :has_key?, :include?, :key?
|
18
|
+
|
19
|
+
def initialize
|
20
|
+
super
|
21
|
+
end
|
22
|
+
|
23
|
+
class << self
|
24
|
+
## < class methods > ##
|
25
|
+
alias _set_ []
|
26
|
+
|
27
|
+
def [](*keyval)
|
28
|
+
attr = new
|
29
|
+
0.step(keyval.length-1,2){ |i|
|
30
|
+
key,val = keyval[i],keyval[i+1]
|
31
|
+
if key.is_a?(Symbol)
|
32
|
+
key=key.to_s
|
33
|
+
elsif ! key.is_a?(String)
|
34
|
+
raise ArgumentError,"Attribute key must be String or Symbol: #{key} -- #{key.class}."
|
35
|
+
end
|
36
|
+
attr[key]=val
|
37
|
+
}
|
38
|
+
attr
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
## < methods > ##
|
43
|
+
|
44
|
+
def copy(to=nil)
|
45
|
+
# deep copy (clone), or addition to "to" if given.
|
46
|
+
if to == nil
|
47
|
+
to = NumRu::Attribute.new
|
48
|
+
end
|
49
|
+
self.each{|key, val|
|
50
|
+
if(val)
|
51
|
+
to[key] = val.clone
|
52
|
+
else
|
53
|
+
to[key] = val
|
54
|
+
end
|
55
|
+
}
|
56
|
+
to
|
57
|
+
end
|
58
|
+
|
59
|
+
alias _get_ []
|
60
|
+
|
61
|
+
def [](key)
|
62
|
+
if key.is_a?(Symbol)
|
63
|
+
key = key.to_s
|
64
|
+
elsif ! key.is_a?(String)
|
65
|
+
raise ArgumentError, "Attribute key must be Symbol or String: #{key} -- #{key.class}."
|
66
|
+
end
|
67
|
+
if /^[A-Za-z_]\w*$/ !~ key
|
68
|
+
raise ArgumentError, "Attribute key must match /^[A-Za-z_]\w*$/"
|
69
|
+
end
|
70
|
+
self._get_(key)
|
71
|
+
end
|
72
|
+
|
73
|
+
alias _set_ []=
|
74
|
+
|
75
|
+
def []=(key, val)
|
76
|
+
if _val_allowed?(val)
|
77
|
+
if key.is_a?(Symbol)
|
78
|
+
key = key.to_s
|
79
|
+
elsif ! key.is_a?(String)
|
80
|
+
raise ArgumentError, "Attribute key must be Symbol or String: #{key} -- #{key.class}."
|
81
|
+
end
|
82
|
+
self._set_(key, val)
|
83
|
+
else
|
84
|
+
raise ArgumentError, "Not allowed as an attribute value: #{val} (String or NArray/Array of numerics are required`)"
|
85
|
+
end
|
86
|
+
val
|
87
|
+
end
|
88
|
+
|
89
|
+
def rename(key_from, key_to)
|
90
|
+
v = self[key_from]
|
91
|
+
if v==nil; raise "attribute #{key_from} does not exist"; end
|
92
|
+
self[key_to]=v
|
93
|
+
self.delete(key_from)
|
94
|
+
end
|
95
|
+
|
96
|
+
## < private methods > ##
|
97
|
+
private
|
98
|
+
def _val_allowed?(val)
|
99
|
+
# to ensure the compatibility with NetCDFAttr
|
100
|
+
begin
|
101
|
+
val.is_a?(String) ||
|
102
|
+
## val.is_a?(Numeric) || # disabled 2005/03/25 by horinout
|
103
|
+
val.is_a?(NilClass) ||
|
104
|
+
( ( (val.is_a?(NArray) && val.rank==1) ||
|
105
|
+
(val.is_a?(Array) && val=NArray.to_na(val)) ) &&
|
106
|
+
val.typecode <= NArray::DFLOAT )
|
107
|
+
rescue
|
108
|
+
# for possible error in val=NArray.to_na(val)) above
|
109
|
+
false
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
if __FILE__ == $0
|
116
|
+
a = NumRu::Attribute.new
|
117
|
+
p a
|
118
|
+
a["name"]="takeshi"
|
119
|
+
p a
|
120
|
+
b = @attr = NumRu::Attribute[:name2,"var", :units,"m/s", :valid_range,nil]
|
121
|
+
p b[:units]
|
122
|
+
p b["units"]
|
123
|
+
p b
|
124
|
+
p b["allowd"] = [1,10]
|
125
|
+
begin
|
126
|
+
b["not_allowd"] = [1,10,'no, no']
|
127
|
+
rescue
|
128
|
+
print "(OK): exception raised as expected\n"
|
129
|
+
end
|
130
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require "numru/netcdf.rb"
|
2
|
+
require "numru/gphys/attribute.rb"
|
3
|
+
require "numru/gphys/netcdf_convention"
|
4
|
+
|
5
|
+
=begin
|
6
|
+
=class Attribute_NetCDF
|
7
|
+
A class to handle NetCDF attributes in the same way as in the
|
8
|
+
NumRu::Attribute class.
|
9
|
+
=end
|
10
|
+
|
11
|
+
module NumRu
|
12
|
+
class AttributeNetCDF
|
13
|
+
def initialize( ncvar )
|
14
|
+
raise TypeError unless NetCDFVar===ncvar || NetCDF===ncvar
|
15
|
+
@nv = ncvar
|
16
|
+
convention = NetCDF_Conventions.find(ncvar.file)
|
17
|
+
extend( convention::Attribute_Mixin )
|
18
|
+
end
|
19
|
+
|
20
|
+
def [](name)
|
21
|
+
( att = @nv.att(name) ) ? att.get : att
|
22
|
+
end
|
23
|
+
|
24
|
+
def []=(name, val)
|
25
|
+
@nv.put_att(name,val)
|
26
|
+
val
|
27
|
+
end
|
28
|
+
|
29
|
+
def copy(to=nil)
|
30
|
+
# deep copy (clone), or addition to "to" if given.
|
31
|
+
# ATTENTION! If the destination "to" is not given, it will
|
32
|
+
# be an Attribute (not AttributeNetCDF), which is on memory.
|
33
|
+
if to == nil
|
34
|
+
to = NumRu::Attribute.new
|
35
|
+
end
|
36
|
+
self.each{|key, val|
|
37
|
+
to[key] = val
|
38
|
+
}
|
39
|
+
to
|
40
|
+
end
|
41
|
+
|
42
|
+
def rename(key_from, key_to)
|
43
|
+
att = @nv.att(key_from)
|
44
|
+
if att==nil; raise "attribute #{key_from} does not exist"; end
|
45
|
+
att.name= key_to
|
46
|
+
end
|
47
|
+
|
48
|
+
def each
|
49
|
+
@nv.each_att{|att| yield(att.name, att.get)}
|
50
|
+
end
|
51
|
+
|
52
|
+
def each_key
|
53
|
+
@nv.each_att{|att| yield(att.name)}
|
54
|
+
end
|
55
|
+
|
56
|
+
def length
|
57
|
+
@nv.natts
|
58
|
+
end
|
59
|
+
|
60
|
+
def keys
|
61
|
+
@nv.att_names
|
62
|
+
end
|
63
|
+
|
64
|
+
def delete(key)
|
65
|
+
@nv.att(key).delete
|
66
|
+
end
|
67
|
+
|
68
|
+
def delete_if
|
69
|
+
each{|key,val| delete(key) if yield(key,val)}
|
70
|
+
end
|
71
|
+
|
72
|
+
def has_key?(key)
|
73
|
+
@nv.att(key) ? true : false
|
74
|
+
end
|
75
|
+
alias :include? :has_key?
|
76
|
+
alias :key? :has_key?
|
77
|
+
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|