gphys 1.1.1a
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +1777 -0
- data/LICENSE.txt +34 -0
- data/README +33 -0
- data/Rakefile +57 -0
- data/TODO_ep_flux +6 -0
- data/bin/gdir_client +27 -0
- data/bin/gdir_server +129 -0
- data/bin/gpaop +146 -0
- data/bin/gpcat +148 -0
- data/bin/gpcut +102 -0
- data/bin/gpedit +228 -0
- data/bin/gplist +68 -0
- data/bin/gpmath +120 -0
- data/bin/gpmaxmin +128 -0
- data/bin/gpprint +60 -0
- data/bin/gpvect +706 -0
- data/bin/gpview +704 -0
- data/bin/grads2nc_with_gphys +61 -0
- data/doc/attribute.html +19 -0
- data/doc/attributenetcdf.html +15 -0
- data/doc/axis.html +376 -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 +45 -0
- data/doc/ggraph.html +1615 -0
- data/doc/gpcat.html +44 -0
- data/doc/gpcut.html +41 -0
- data/doc/gphys.html +532 -0
- data/doc/gphys_fft.html +324 -0
- data/doc/gphys_grads_io.html +69 -0
- data/doc/gphys_grib_io.html +82 -0
- data/doc/gphys_io.html +120 -0
- data/doc/gphys_io_common.html +18 -0
- data/doc/gphys_netcdf_io.html +283 -0
- data/doc/gplist.html +24 -0
- data/doc/gpmath.html +51 -0
- data/doc/gpmaxmin.html +31 -0
- data/doc/gpprint.html +34 -0
- data/doc/gpview.html +270 -0
- data/doc/grads2nc_with_gphys.html +21 -0
- data/doc/grads_gridded.html +307 -0
- data/doc/grib.html +144 -0
- data/doc/grid.html +212 -0
- data/doc/index.html +133 -0
- data/doc/index.rd +127 -0
- data/doc/netcdf_convention.html +136 -0
- data/doc/unumeric.html +176 -0
- data/doc/update +64 -0
- data/doc/varray.html +299 -0
- data/doc/varraycomposite.html +67 -0
- data/ext_coord.c +209 -0
- data/ext_init.c +7 -0
- data/extconf.rb +42 -0
- data/install.rb +130 -0
- data/interpo.c +497 -0
- data/lib/numru/dcl_mouse.rb +71 -0
- data/lib/numru/dclext_datetime_ax.rb +220 -0
- data/lib/numru/derivative.rb +348 -0
- data/lib/numru/ganalysis/covariance.rb +154 -0
- data/lib/numru/ganalysis/eof.rb +298 -0
- data/lib/numru/ganalysis/histogram.rb +252 -0
- data/lib/numru/ganalysis/met.rb +317 -0
- data/lib/numru/ganalysis/planet.rb +182 -0
- data/lib/numru/ganalysis.rb +7 -0
- data/lib/numru/gdir.rb +1038 -0
- data/lib/numru/gdir_connect_ftp-like.rb +149 -0
- data/lib/numru/ggraph.rb +5838 -0
- data/lib/numru/ggraph_on_merdional_section.rb +178 -0
- data/lib/numru/gphys/assoccoords.rb +359 -0
- data/lib/numru/gphys/attribute.rb +129 -0
- data/lib/numru/gphys/attributenetcdf.rb +80 -0
- data/lib/numru/gphys/axis.rb +963 -0
- data/lib/numru/gphys/coordmapping.rb +286 -0
- data/lib/numru/gphys/coordtransform.rb +209 -0
- data/lib/numru/gphys/derivative.rb +314 -0
- data/lib/numru/gphys/ep_flux.rb +868 -0
- data/lib/numru/gphys/gpcommon.rb +52 -0
- data/lib/numru/gphys/gphys.rb +1207 -0
- data/lib/numru/gphys/gphys_fft.rb +886 -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_gtool3_io.rb +162 -0
- data/lib/numru/gphys/gphys_hdfeos5_io.rb +672 -0
- data/lib/numru/gphys/gphys_io.rb +452 -0
- data/lib/numru/gphys/gphys_io_common.rb +126 -0
- data/lib/numru/gphys/gphys_netcdf_io.rb +800 -0
- data/lib/numru/gphys/gphys_nusdas_io.rb +132 -0
- data/lib/numru/gphys/grads_gridded.rb +1638 -0
- data/lib/numru/gphys/grib.rb +2049 -0
- data/lib/numru/gphys/grib_params.rb +1465 -0
- data/lib/numru/gphys/grid.rb +723 -0
- data/lib/numru/gphys/gtool3.rb +771 -0
- data/lib/numru/gphys/interpolate.rb +854 -0
- data/lib/numru/gphys/narray_ext.rb +34 -0
- data/lib/numru/gphys/netcdf_convention.rb +406 -0
- data/lib/numru/gphys/subsetmapping.rb +332 -0
- data/lib/numru/gphys/unumeric.rb +522 -0
- data/lib/numru/gphys/varray.rb +1109 -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/varraygtool3.rb +226 -0
- data/lib/numru/gphys/varrayhdfeos5.rb +451 -0
- data/lib/numru/gphys/varraynetcdf.rb +350 -0
- data/lib/numru/gphys/varraynusdas.rb +59 -0
- data/lib/numru/gphys.rb +9 -0
- data/lib/numru/htdir.rb +170 -0
- data/multibitIO.c +567 -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/sample/ncep_theta_coord.rb +79 -0
- data/test/eof_slp.rb +28 -0
- data/test/mltbit.dat +0 -0
- data/test/test_ep_flux.rb +533 -0
- data/test/test_multibitIO.rb +19 -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/assoc_crds.nc +0 -0
- data/testdata/cira86.dat +1332 -0
- metadata +621 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
# druby_cli2.rb -- a sample dRuby client
|
2
|
+
#
|
3
|
+
# USAGE
|
4
|
+
# See ./druby_serv2.rb
|
5
|
+
|
6
|
+
require "drb/drb"
|
7
|
+
require "numru/ggraph"
|
8
|
+
include NumRu
|
9
|
+
|
10
|
+
DRb.start_service
|
11
|
+
uri = ARGV.shift || raise("Usage: % #{$0} uri")
|
12
|
+
gp = DRbObject.new(nil, uri)
|
13
|
+
|
14
|
+
p gp.class, gp.name, gp.rank, gp.length
|
15
|
+
p gp.grid.axis(0).pos.name
|
16
|
+
|
17
|
+
gpmean = gp.mean(0)
|
18
|
+
p gpmean.class, gpmean.name, gpmean.rank
|
19
|
+
|
20
|
+
class NArray
|
21
|
+
def self._load(o) to_na(*Marshal::load(o)).ntoh end
|
22
|
+
end
|
23
|
+
|
24
|
+
p ( gpmean_copy = gpmean.copy )
|
25
|
+
DCL.gropn(1)
|
26
|
+
DCL.sgpset('lfull',true)
|
27
|
+
DCL.sgpset('lcntl',false)
|
28
|
+
DCL.uzfact(0.7)
|
29
|
+
GGraph.set_fig('viewport'=>[0.25,0.7,0.15,0.6], 'itr'=>2 )
|
30
|
+
GGraph.contour( gpmean_copy )
|
31
|
+
DCL.grcls
|
32
|
+
|
33
|
+
print "\nThe following will be a DRbObject rather than GPhys since the size is too large\n(see druby_serv2.rb):\n"
|
34
|
+
p ( gpcopy = gp.copy )
|
@@ -0,0 +1,30 @@
|
|
1
|
+
=begin
|
2
|
+
=druby_serv1.rb
|
3
|
+
|
4
|
+
a sample dRuby server
|
5
|
+
|
6
|
+
==USAGE
|
7
|
+
|
8
|
+
To start the server:
|
9
|
+
|
10
|
+
% ruby druby_serv1.rb
|
11
|
+
|
12
|
+
This will print the address of the server such as
|
13
|
+
druby://[hostname]:[port] (For exaple druby://horihost:39391
|
14
|
+
|
15
|
+
Then run the client as (if the address is druby://horihost:39391):
|
16
|
+
|
17
|
+
% ruby druby_cli1.rb druby://horihost:39391
|
18
|
+
=end
|
19
|
+
|
20
|
+
require "drb/drb"
|
21
|
+
require "numru/gphys"
|
22
|
+
include NumRu
|
23
|
+
|
24
|
+
file = NetCDF.open("../testdata/T.jan.nc")
|
25
|
+
gp = GPhys::NetCDF_IO.open(file,"T")
|
26
|
+
|
27
|
+
DRb.start_service(nil, gp)
|
28
|
+
puts 'URI: '+DRb.uri
|
29
|
+
puts '[return] to exit'
|
30
|
+
gets
|
@@ -0,0 +1,64 @@
|
|
1
|
+
=begin
|
2
|
+
=druby_serv2.rb
|
3
|
+
|
4
|
+
a sample dRuby server. The difference from druby_serv1.rb is that
|
5
|
+
a couple of methods are added to NArray, which enables us to serialize
|
6
|
+
NArray with Marshal.dump. Therefore, a GPhys object can be transferred by
|
7
|
+
value (not by reference) if all the VArray in it is based on NArray.
|
8
|
+
This can be done with the copy method of GPhys. See druby_cli2.rb
|
9
|
+
for an example.
|
10
|
+
|
11
|
+
==USAGE
|
12
|
+
|
13
|
+
To start the server:
|
14
|
+
|
15
|
+
% ruby druby_serv2.rb [port]
|
16
|
+
|
17
|
+
This will print the address of the server such as
|
18
|
+
druby://[hostname]:[port] (For exaple druby://horihost:39391
|
19
|
+
|
20
|
+
Then run the client as (if the address is druby://horihost:39391):
|
21
|
+
|
22
|
+
% ruby druby_cli2.rb druby://horihost:39391
|
23
|
+
=end
|
24
|
+
|
25
|
+
require "drb/drb"
|
26
|
+
require "numru/gphys"
|
27
|
+
include NumRu
|
28
|
+
|
29
|
+
def usage
|
30
|
+
print <<-EOS
|
31
|
+
|
32
|
+
USAGE:
|
33
|
+
% ruby #{$0} [port]
|
34
|
+
|
35
|
+
Here, port (optional) is the port number to assign.
|
36
|
+
EOS
|
37
|
+
raise RuntimeError
|
38
|
+
end
|
39
|
+
|
40
|
+
port = ARGV.shift
|
41
|
+
usage if port && port.to_i.to_s != port
|
42
|
+
usage if ARGV.length > 0
|
43
|
+
|
44
|
+
class NArray
|
45
|
+
DUMP_SIZE_LIMIT = 5000
|
46
|
+
def self._load(o) to_na(*Marshal::load(o)).ntoh end
|
47
|
+
def _dump(limit)
|
48
|
+
if size <= DUMP_SIZE_LIMIT
|
49
|
+
Marshal::dump([hton.to_s, typecode, *shape])
|
50
|
+
else
|
51
|
+
raise "size of the NArray (#{size}) is too large to dump "+
|
52
|
+
"(limit: #{DUMP_SIZE_LIMIT})"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
file = NetCDF.open("../testdata/T.jan.nc")
|
58
|
+
gp = GPhys::NetCDF_IO.open(file,"T")
|
59
|
+
|
60
|
+
uri_seed = ( port ? 'druby://:'+port : nil ) # 'druby://:'+port, or nil
|
61
|
+
DRb.start_service(uri_seed, gp)
|
62
|
+
puts 'URI: '+DRb.uri
|
63
|
+
puts '[return] to exit'
|
64
|
+
gets
|
@@ -0,0 +1,48 @@
|
|
1
|
+
=begin
|
2
|
+
=demo_NCEP_1.rb
|
3
|
+
|
4
|
+
a demo program for GPhys::EP_Flux. show sample code to for calculating
|
5
|
+
EP-Flux and other physical values, and save as a NetCDF file.
|
6
|
+
|
7
|
+
USAGE
|
8
|
+
% ruby demo_NCEP_1.rb
|
9
|
+
|
10
|
+
Note
|
11
|
+
This program requires testdata. The URL is
|
12
|
+
|
13
|
+
http://dennou-k.gfd-dennou.org/arch/ruby/products/ep_flux/testdata.tar.gz
|
14
|
+
|
15
|
+
=end
|
16
|
+
|
17
|
+
require 'numru/gphys'
|
18
|
+
require 'numru/gphys/ep_flux'
|
19
|
+
include NumRu
|
20
|
+
|
21
|
+
datadir = "./testdata/"
|
22
|
+
gp_u = GPhys::IO.open( datadir+"UWND_NCEP.nc", "uwnd")
|
23
|
+
gp_v = GPhys::IO.open( datadir+"VWND_NCEP.nc", "vwnd")
|
24
|
+
gp_omega = GPhys::IO.open( datadir+"OMEGA_NCEP.nc", "omega")
|
25
|
+
gp_t = GPhys::IO.open( datadir+"TEMP_NCEP.nc", "temp")
|
26
|
+
|
27
|
+
epflx_y, epflx_z, v_rmean, w_rmean, gp_lat, = ary =
|
28
|
+
GPhys::EP_Flux::ep_full_sphere(gp_u, gp_v, gp_omega, gp_t, true)
|
29
|
+
gp_lat.rename('phi')
|
30
|
+
|
31
|
+
ary.each{|gp| # This part will not
|
32
|
+
gp.data.att_names.each{|nm| # be needed in future.
|
33
|
+
gp.data.del_att(nm) if /^valid_/ =~ nm # (Even now, it is not
|
34
|
+
} # needed if the valid
|
35
|
+
} # range is wide enough)
|
36
|
+
|
37
|
+
epflx_div = GPhys::EP_Flux::div_sphere(epflx_y, epflx_z)
|
38
|
+
strm_rmean = GPhys::EP_Flux::strm_rmean(v_rmean)
|
39
|
+
|
40
|
+
ofile = NetCDF.create("epflx_NCEP.nc")
|
41
|
+
|
42
|
+
ary.each{|gp|
|
43
|
+
GPhys::IO.write(ofile, gp)
|
44
|
+
}
|
45
|
+
GPhys::IO.write(ofile, epflx_div)
|
46
|
+
GPhys::IO.write(ofile, strm_rmean)
|
47
|
+
|
48
|
+
ofile.close
|
@@ -0,0 +1,57 @@
|
|
1
|
+
=begin
|
2
|
+
=demo_NCEP_2.rb
|
3
|
+
|
4
|
+
a demo program with GPhys::NetCDF_IO::each_along_dims_write, which
|
5
|
+
is Iterator to process GPhys objects too big to read on memory at once.
|
6
|
+
this program show same performance with demo_NCEP_1.rb.
|
7
|
+
|
8
|
+
USAGE
|
9
|
+
% ruby demo_NCEP_2.rb
|
10
|
+
|
11
|
+
Note
|
12
|
+
This program requires testdata. The URL is written in demo_NCEP_1.rb
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'numru/gphys'
|
17
|
+
require 'numru/gphys/ep_flux'
|
18
|
+
include NumRu
|
19
|
+
|
20
|
+
datadir = "./testdata/"
|
21
|
+
gp_u = GPhys::IO.open( datadir+"UWND_NCEP.nc", "uwnd")
|
22
|
+
gp_v = GPhys::IO.open( datadir+"VWND_NCEP.nc", "vwnd")
|
23
|
+
gp_omega = GPhys::IO.open( datadir+"OMEGA_NCEP.nc", "omega")
|
24
|
+
gp_t = GPhys::IO.open( datadir+"TEMP_NCEP.nc", "temp")
|
25
|
+
|
26
|
+
ofile = NetCDF.create("epflx_NCEP.nc")
|
27
|
+
|
28
|
+
nt = gp_u.shape[-1]
|
29
|
+
i = 0
|
30
|
+
GPhys::IO.each_along_dims_write([gp_u, gp_v, gp_omega, gp_t], ofile, -1){
|
31
|
+
|u, v, omega, t|
|
32
|
+
i += 1
|
33
|
+
print "processing #{i} / #{nt} ..\n" if (i % (nt/20+1))==1
|
34
|
+
|
35
|
+
epflx_y, epflx_z, v_rmean, w_rmean, gp_lat, gp_z, u_mean, theta_mean,
|
36
|
+
uv_dash, vt_dash, uw_dash, dtheta_dz = ary =
|
37
|
+
GPhys::EP_Flux::ep_full_sphere(u, v, omega, t, true)
|
38
|
+
|
39
|
+
ary.each{|gp| # This part will not
|
40
|
+
gp.data.att_names.each{|nm| # be needed in future.
|
41
|
+
gp.data.del_att(nm) if /^valid_/ =~ nm # (Even now, it is not
|
42
|
+
} # needed if the valid
|
43
|
+
} # range is wide enough)
|
44
|
+
|
45
|
+
epflx_div = GPhys::EP_Flux::div_sphere(epflx_y, epflx_z)
|
46
|
+
strm_rmean = GPhys::EP_Flux::strm_rmean(v_rmean)
|
47
|
+
|
48
|
+
if i==1 # time independent => write only once
|
49
|
+
gp_lat.rename('phi')
|
50
|
+
GPhys::IO.write(ofile, gp_lat)
|
51
|
+
GPhys::IO.write(ofile, gp_z)
|
52
|
+
end
|
53
|
+
[ epflx_y, epflx_z, v_rmean, w_rmean, strm_rmean, epflx_div, u_mean, theta_mean,
|
54
|
+
uv_dash, vt_dash, uw_dash, dtheta_dz ]
|
55
|
+
}
|
56
|
+
|
57
|
+
ofile.close
|
@@ -0,0 +1,81 @@
|
|
1
|
+
=begin
|
2
|
+
=demo_NCEP_3.rb
|
3
|
+
|
4
|
+
a demo program for drawing EP-Flux vector and Residual mean circulation.
|
5
|
+
|
6
|
+
USAGE
|
7
|
+
% ruby demo_NCEP_3.rb
|
8
|
+
|
9
|
+
Note
|
10
|
+
This program requires testdata. The URL is written in demo_NCEP_1.rb
|
11
|
+
|
12
|
+
=end
|
13
|
+
|
14
|
+
require 'numru/gphys'
|
15
|
+
require 'numru/gphys/ep_flux'
|
16
|
+
require 'numru/ggraph_on_merdional_section'
|
17
|
+
include NumRu
|
18
|
+
|
19
|
+
epflx_fnm = './epflx_NCEP.nc'
|
20
|
+
|
21
|
+
if File::exist?(epflx_fnm)
|
22
|
+
|
23
|
+
epflx_y = GPhys::IO.open(epflx_fnm, 'epflx_y')
|
24
|
+
epflx_z = GPhys::IO.open(epflx_fnm, 'epflx_z')
|
25
|
+
epflx_div = GPhys::IO.open(epflx_fnm, 'epflx_div')
|
26
|
+
v_rmean = GPhys::IO.open(epflx_fnm, 'v_rmean')
|
27
|
+
w_rmean = GPhys::IO.open(epflx_fnm, 'w_rmean')
|
28
|
+
strm_rmean = GPhys::IO.open(epflx_fnm, 'strm_rmean')
|
29
|
+
|
30
|
+
else
|
31
|
+
|
32
|
+
datadir = "./testdata/"
|
33
|
+
gp_u = GPhys::IO.open( datadir+"UWND_NCEP.nc", "uwnd")
|
34
|
+
gp_v = GPhys::IO.open( datadir+"VWND_NCEP.nc", "vwnd")
|
35
|
+
gp_omega = GPhys::IO.open( datadir+"OMEGA_NCEP.nc", "omega")
|
36
|
+
gp_t = GPhys::IO.open( datadir+"TEMP_NCEP.nc", "temp")
|
37
|
+
|
38
|
+
epflx_y, epflx_z, v_rmean, w_rmean= ary =
|
39
|
+
GPhys::EP_Flux::ep_full_sphere(gp_u, gp_v, gp_omega, gp_t, true)
|
40
|
+
|
41
|
+
ary.each{|gp| # This part will not
|
42
|
+
gp.data.att_names.each{|nm| # be needed in future.
|
43
|
+
gp.data.del_att(nm) if /^valid_/ =~ nm # (Even now, it is not
|
44
|
+
} # needed if the valid
|
45
|
+
} # range is wide enough)
|
46
|
+
|
47
|
+
epflx_div = GPhys::EP_Flux::div_sphere(epflx_y, epflx_z)
|
48
|
+
strm_rmean = GPhys::EP_Flux::strm_rmean(v_rmean)
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
|
53
|
+
DCL.gropn(1)
|
54
|
+
DCL::sglset('LFULL', true) # use full area
|
55
|
+
DCL::slrat(1.0, 0.85) # set aspect ratio of drwable area
|
56
|
+
DCL.sgpset('lcntl', false) # don't rede control character.
|
57
|
+
DCL.sgpset('lfprop',true) # use prportional font
|
58
|
+
DCL.uzfact(0.6) # set character size
|
59
|
+
|
60
|
+
## show vector (Fy, Fz)
|
61
|
+
fy = epflx_y.mean('time')
|
62
|
+
fz = epflx_z.mean('time')
|
63
|
+
epdiv = epflx_div.mean('time')
|
64
|
+
|
65
|
+
GGraph::set_fig('view'=>[0.15, 0.85, 0.25, 0.55])
|
66
|
+
GGraph::set_fig('itr'=>2) # contour && tone only
|
67
|
+
GGraph::tone(epdiv) # tone
|
68
|
+
GGraph::contour(epdiv,false) # contour
|
69
|
+
xfact, yfact = GGraph::vector_on_merdional_section(fy, fz, false,
|
70
|
+
'fact'=>3.0,'xintv'=>1,'unit'=>true, 'annot'=>false
|
71
|
+
)
|
72
|
+
|
73
|
+
## show residual mean merdional circulation (cut nearly surface and Antarctica)
|
74
|
+
vrm = v_rmean.cut('lat'=>-70..90, 'level'=>850..100).mean('time')
|
75
|
+
wrm = w_rmean.cut('lat'=>-70..90, 'level'=>850..100).mean('time')
|
76
|
+
strm = strm_rmean.cut('lat'=>-70..90, 'level'=>850..100).mean('time')
|
77
|
+
GGraph::contour(strm, true, 'nlev'=>25)
|
78
|
+
GGraph::vector_on_merdional_section(vrm, wrm, false,
|
79
|
+
'fact'=>2.0,'xintv'=>1,'unit'=>true, 'annot'=>false
|
80
|
+
)
|
81
|
+
DCL.grcls
|
@@ -0,0 +1,159 @@
|
|
1
|
+
## from [dennou-ruby:002690] by koshiro
|
2
|
+
## Sample of axis-drwaing options: 'xmaplabel', 'ymaplabel' in GGraph,
|
3
|
+
## which labels axes bettern than in the default drwaing when itr==10
|
4
|
+
## uses 90E, 90W, etc instead of 90, 270, etc.
|
5
|
+
|
6
|
+
require 'numru/ggraph'
|
7
|
+
include NumRu
|
8
|
+
|
9
|
+
wsn = ( ARGV[0] ? ARGV[0].to_i : 1 )
|
10
|
+
|
11
|
+
path = '../testdata/T.jan.nc'
|
12
|
+
var = 'T'
|
13
|
+
gp = GPhys::IO.open(path,var)
|
14
|
+
|
15
|
+
DCL.swpset('ldump',true) if wsn == 4
|
16
|
+
DCL.gropn(wsn)
|
17
|
+
DCL.sldiv('y',3,2)
|
18
|
+
#DCL.uzfact(0.8)
|
19
|
+
DCL.sgpset('lcntl',false)
|
20
|
+
|
21
|
+
GGraph.set_map('coast_world'=>true)
|
22
|
+
|
23
|
+
gpjpn = gp.cut(110..160,10..70,false)
|
24
|
+
|
25
|
+
itr = 10
|
26
|
+
|
27
|
+
# contour
|
28
|
+
GGraph.next_fig('itr'=>itr)
|
29
|
+
GGraph.contour(gp, true,'map_axes'=>true,'title'=>'default axes')
|
30
|
+
|
31
|
+
GGraph.next_fig('itr'=>itr)
|
32
|
+
GGraph.next_axes('xmaplabel'=>'lon','ymaplabel'=>'lat')
|
33
|
+
GGraph.contour(gp, true,'map_axes'=>true,'title'=>'lon/lat axes')
|
34
|
+
|
35
|
+
GGraph.next_fig('itr'=>itr)
|
36
|
+
GGraph.next_axes('xmaplabel'=>'lon','ymaplabel'=>'lat','xtickint'=>30, 'ytickint'=>10, 'xlabelint'=>90, 'ylabelint'=>30)
|
37
|
+
GGraph.contour(gp, true,'map_axes'=>true,'title'=>'lon/lat axes (set interval)')
|
38
|
+
|
39
|
+
# tone
|
40
|
+
GGraph.next_fig('itr'=>itr)
|
41
|
+
GGraph.tone(gp, true,'map_axes'=>true,'title'=>'default axes')
|
42
|
+
|
43
|
+
GGraph.next_fig('itr'=>itr)
|
44
|
+
GGraph.next_axes('xmaplabel'=>'lon','ymaplabel'=>'lat')
|
45
|
+
GGraph.tone(gp, true,'map_axes'=>true,'title'=>'lon/lat axes')
|
46
|
+
|
47
|
+
GGraph.next_fig('itr'=>itr)
|
48
|
+
GGraph.next_axes('xmaplabel'=>'lon','ymaplabel'=>'lat','xtickint'=>30, 'ytickint'=>10, 'xlabelint'=>90, 'ylabelint'=>30)
|
49
|
+
GGraph.tone(gp, true,'map_axes'=>true,'title'=>'lon/lat axes (set interval)')
|
50
|
+
|
51
|
+
|
52
|
+
# tone & contour
|
53
|
+
GGraph.next_fig('itr'=>itr)
|
54
|
+
GGraph.tone(gpjpn, true,'map_axes'=>true,'title'=>'default axes')
|
55
|
+
GGraph.contour( gpjpn, false )
|
56
|
+
|
57
|
+
GGraph.next_fig('itr'=>itr)
|
58
|
+
GGraph.next_axes('xmaplabel'=>'lon','ymaplabel'=>'lat')
|
59
|
+
GGraph.tone(gpjpn, true,'map_axes'=>true,'title'=>'lon/lat axes')
|
60
|
+
GGraph.contour( gpjpn, false )
|
61
|
+
|
62
|
+
GGraph.next_fig('itr'=>itr)
|
63
|
+
GGraph.next_axes('xmaplabel'=>'lon','ymaplabel'=>'lat','xtickint'=>10, 'ytickint'=>10, 'xlabelint'=>30, 'ylabelint'=>30)
|
64
|
+
GGraph.tone(gpjpn, true,'map_axes'=>true,'title'=>'lon/lat axes (set interval)')
|
65
|
+
GGraph.contour( gpjpn, false )
|
66
|
+
|
67
|
+
|
68
|
+
# vector ('flow_vect'=>false)
|
69
|
+
GGraph.next_fig('itr'=>itr)
|
70
|
+
GGraph.vector(gpjpn,gpjpn, true,'map_axes'=>true,'title'=>'default axes','flow_vect'=>false,'unit_vect'=>true)
|
71
|
+
|
72
|
+
GGraph.next_fig('itr'=>itr)
|
73
|
+
GGraph.next_axes('xmaplabel'=>'lon','ymaplabel'=>'lat')
|
74
|
+
GGraph.vector(gpjpn,gpjpn, true,'map_axes'=>true,'title'=>'lon/lat axes','flow_vect'=>false,'unit_vect'=>true)
|
75
|
+
|
76
|
+
GGraph.next_fig('itr'=>itr)
|
77
|
+
GGraph.next_axes('xmaplabel'=>'lon','ymaplabel'=>'lat','xtickint'=>10, 'ytickint'=>10, 'xlabelint'=>30, 'ylabelint'=>30)
|
78
|
+
GGraph.vector(gpjpn,gpjpn, true,'map_axes'=>true,'title'=>'lon/lat axes (set interval)','flow_vect'=>false,'unit_vect'=>true)
|
79
|
+
|
80
|
+
# vector ('flow_vect'=>true)
|
81
|
+
GGraph.next_fig('itr'=>itr)
|
82
|
+
GGraph.vector(gpjpn,gpjpn, true,'map_axes'=>true,'title'=>'default axes','unit_vect'=>true)
|
83
|
+
|
84
|
+
GGraph.next_fig('itr'=>itr)
|
85
|
+
GGraph.next_axes('xmaplabel'=>'lon','ymaplabel'=>'lat')
|
86
|
+
GGraph.vector(gpjpn,gpjpn, true,'map_axes'=>true,'title'=>'lon/lat axes','unit_vect'=>true)
|
87
|
+
|
88
|
+
GGraph.next_fig('itr'=>itr)
|
89
|
+
GGraph.next_axes('xmaplabel'=>'lon','ymaplabel'=>'lat','xtickint'=>10, 'ytickint'=>10, 'xlabelint'=>30, 'ylabelint'=>30)
|
90
|
+
GGraph.vector(gpjpn,gpjpn, true,'map_axes'=>true,'title'=>'lon/lat axes (set interval)','unit_vect'=>true)
|
91
|
+
|
92
|
+
DCL.grfrm
|
93
|
+
DCL.grfrm
|
94
|
+
DCL.grfrm
|
95
|
+
|
96
|
+
### DCLExt::lon_ax, DCLExt::lat_ax
|
97
|
+
|
98
|
+
DCL.grfrm
|
99
|
+
DCL.grswnd(0.0, 360.0, -90.0, 90.0)
|
100
|
+
DCL.grsvpt(0.15, 0.95, 0.3, 0.7)
|
101
|
+
DCL.grstrn(1)
|
102
|
+
DCL.grstrf
|
103
|
+
DCLExt.lon_ax
|
104
|
+
DCLExt.lat_ax
|
105
|
+
DCLExt.lon_ax('cside'=>'t')
|
106
|
+
DCLExt.lat_ax('cside'=>'r')
|
107
|
+
|
108
|
+
DCL.grfrm
|
109
|
+
DCL.grswnd(0.0, 360.0, -90.0, 90.0)
|
110
|
+
DCL.grsvpt(0.15, 0.95, 0.3, 0.7)
|
111
|
+
DCL.grstrn(1)
|
112
|
+
DCL.grstrf
|
113
|
+
DCLExt.lon_ax('dtick1'=>30, 'dtick2'=>90)
|
114
|
+
DCLExt.lat_ax('dtick1'=>10, 'dtick2'=>30)
|
115
|
+
DCLExt.lon_ax('cside'=>'t', 'dtick1'=>30, 'dtick2'=>90)
|
116
|
+
DCLExt.lat_ax('cside'=>'r', 'dtick1'=>10, 'dtick2'=>30)
|
117
|
+
|
118
|
+
DCL.grfrm
|
119
|
+
DCL.grswnd(-90.0, 90.0, 0.0, 360.0)
|
120
|
+
DCL.grsvpt(0.15, 0.95, 0.3, 0.7)
|
121
|
+
DCL.grstrn(1)
|
122
|
+
DCL.grstrf
|
123
|
+
DCLExt.lon_ax('yax'=>true,'dtick1'=>30, 'dtick2'=>90)
|
124
|
+
DCLExt.lat_ax('xax'=>true,'dtick1'=>10, 'dtick2'=>30)
|
125
|
+
DCLExt.lon_ax('yax'=>true,'cside'=>'r', 'dtick1'=>30, 'dtick2'=>90)
|
126
|
+
DCLExt.lat_ax('xax'=>true,'cside'=>'t', 'dtick1'=>10, 'dtick2'=>30)
|
127
|
+
|
128
|
+
DCL.grfrm
|
129
|
+
DCL.grswnd(90.0, -90.0, 360.0, 0.0)
|
130
|
+
DCL.grsvpt(0.15, 0.95, 0.3, 0.7)
|
131
|
+
DCL.grstrn(1)
|
132
|
+
DCL.grstrf
|
133
|
+
DCLExt.lon_ax('yax'=>true,'dtick1'=>30, 'dtick2'=>90)
|
134
|
+
DCLExt.lat_ax('xax'=>true,'dtick1'=>10, 'dtick2'=>30)
|
135
|
+
DCLExt.lon_ax('yax'=>true,'cside'=>'r', 'dtick1'=>30, 'dtick2'=>90)
|
136
|
+
DCLExt.lat_ax('xax'=>true,'cside'=>'t', 'dtick1'=>10, 'dtick2'=>30)
|
137
|
+
|
138
|
+
DCL.grfrm
|
139
|
+
DCL.grswnd(-90.0, 90.0, 1000.0, 1.0)
|
140
|
+
DCL.grsvpt(0.15, 0.95, 0.3, 0.7)
|
141
|
+
DCL.grstrn(2)
|
142
|
+
DCL.grstrf
|
143
|
+
DCL.ulpset('iytype',3)
|
144
|
+
DCL.ulylog('l', 3, 9)
|
145
|
+
DCL.ulylog('r', 3, 9)
|
146
|
+
DCLExt.lat_ax('xax'=>true,'dtick1'=>10, 'dtick2'=>30)
|
147
|
+
DCLExt.lat_ax('xax'=>true,'cside'=>'t', 'dtick1'=>10, 'dtick2'=>30)
|
148
|
+
|
149
|
+
DCL.grfrm
|
150
|
+
DCL.grswnd(-180.0, 180.0, -90.0, 90.0)
|
151
|
+
DCL.grsvpt(0.15, 0.95, 0.3, 0.7)
|
152
|
+
DCL.grstrn(1)
|
153
|
+
DCL.grstrf
|
154
|
+
DCLExt.lon_ax('dtick1'=>30, 'dtick2'=>90)
|
155
|
+
DCLExt.lat_ax('dtick1'=>10, 'dtick2'=>30)
|
156
|
+
DCLExt.lon_ax('cside'=>'t', 'dtick1'=>30, 'dtick2'=>90)
|
157
|
+
DCLExt.lat_ax('cside'=>'r', 'dtick1'=>10, 'dtick2'=>30)
|
158
|
+
|
159
|
+
DCL.grcls
|
@@ -0,0 +1,131 @@
|
|
1
|
+
## from [dennou-ruby:002687] by koshiro
|
2
|
+
## simultaneous map-fitting and axes-drawing when itr=10
|
3
|
+
|
4
|
+
require 'numru/ggraph'
|
5
|
+
include NumRu
|
6
|
+
|
7
|
+
wsn = ( ARGV[0] ? ARGV[0].to_i : 1 )
|
8
|
+
|
9
|
+
path = '../testdata/T.jan.nc'
|
10
|
+
var = 'T'
|
11
|
+
gp = GPhys::IO.open(path,var)
|
12
|
+
|
13
|
+
DCL.swpset('ldump',true) if wsn == 4
|
14
|
+
DCL.gropn(wsn)
|
15
|
+
DCL.sldiv('t',3,2)
|
16
|
+
DCL.uzfact(0.8)
|
17
|
+
DCL.sgpset('lcntl',false)
|
18
|
+
|
19
|
+
GGraph.set_map('coast_world'=>true)
|
20
|
+
|
21
|
+
gpjpn = gp.cut(110..160,10..70,false)
|
22
|
+
|
23
|
+
itr = 10
|
24
|
+
|
25
|
+
# contour
|
26
|
+
GGraph.next_fig('itr'=>itr)
|
27
|
+
GGraph.contour(gp,true,'title'=>'map_fit=T, map_axes=F (default)')
|
28
|
+
|
29
|
+
GGraph.next_fig('itr'=>itr)
|
30
|
+
GGraph.contour(gp, true,'map_axes'=>true,'title'=>'map_fit=T map_axes=T')
|
31
|
+
|
32
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false)
|
33
|
+
GGraph.contour(gp,true,'map_axes'=>false,'title'=>'map_fit=F map_axes=F' )
|
34
|
+
|
35
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false)
|
36
|
+
GGraph.contour(gp,true,'map_axes'=>true,'title'=>'map_fit=F map_axes=T')
|
37
|
+
|
38
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false,'map_axis'=>[0,0,0],'map_window'=>[-120,120,-60,60])
|
39
|
+
GGraph.contour(gp,true,'map_axes'=>false,'title'=>'map_fit=F map_axes=F map_axis & map_window' )
|
40
|
+
|
41
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false,'map_axis'=>[0,0,0],'map_window'=>[-120,120,-60,60])
|
42
|
+
GGraph.contour(gp,true,'map_axes'=>true,'title'=>'map_fit=F map_axes=T map_axis & map_window')
|
43
|
+
|
44
|
+
|
45
|
+
# tone
|
46
|
+
GGraph.next_fig('itr'=>itr)
|
47
|
+
GGraph.tone(gp,true,'title'=>'map_fit=T, map_axes=F (default)')
|
48
|
+
|
49
|
+
GGraph.next_fig('itr'=>itr)
|
50
|
+
GGraph.tone(gp, true,'map_axes'=>true,'title'=>'map_fit=T map_axes=T')
|
51
|
+
|
52
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false)
|
53
|
+
GGraph.tone(gp,true,'map_axes'=>false,'title'=>'map_fit=F map_axes=F' )
|
54
|
+
|
55
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false)
|
56
|
+
GGraph.tone(gp,true,'map_axes'=>true,'title'=>'map_fit=F map_axes=T')
|
57
|
+
|
58
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false,'map_axis'=>[0,0,0],'map_window'=>[-120,120,-60,60])
|
59
|
+
GGraph.tone(gp,true,'map_axes'=>false,'title'=>'map_fit=F map_axes=F map_axis & map_window' )
|
60
|
+
|
61
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false,'map_axis'=>[0,0,0],'map_window'=>[-120,120,-60,60])
|
62
|
+
GGraph.tone(gp,true,'map_axes'=>true,'title'=>'map_fit=F map_axes=T map_axis & map_window')
|
63
|
+
|
64
|
+
|
65
|
+
# tone & contour
|
66
|
+
GGraph.next_fig('itr'=>itr)
|
67
|
+
GGraph.tone(gpjpn,true,'title'=>'map_fit=T, map_axes=F (default)')
|
68
|
+
GGraph.contour( gpjpn, false )
|
69
|
+
|
70
|
+
GGraph.next_fig('itr'=>itr)
|
71
|
+
GGraph.tone(gpjpn, true,'map_axes'=>true,'title'=>'map_fit=T map_axes=T')
|
72
|
+
GGraph.contour( gpjpn, false )
|
73
|
+
|
74
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false)
|
75
|
+
GGraph.tone(gpjpn,true,'map_axes'=>false,'title'=>'map_fit=F map_axes=F' )
|
76
|
+
GGraph.contour( gpjpn, false )
|
77
|
+
|
78
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false)
|
79
|
+
GGraph.tone(gpjpn,true,'map_axes'=>true,'title'=>'map_fit=F map_axes=T')
|
80
|
+
GGraph.contour( gpjpn, false )
|
81
|
+
|
82
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false,'map_axis'=>[0,0,0],'map_window'=>[90,180,0,90])
|
83
|
+
GGraph.tone(gpjpn,true,'map_axes'=>false,'title'=>'map_fit=F map_axes=F map_axis & map_window' )
|
84
|
+
GGraph.contour( gpjpn, false )
|
85
|
+
|
86
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false,'map_axis'=>[0,0,0],'map_window'=>[90,180,0,90])
|
87
|
+
GGraph.tone(gpjpn,true,'map_axes'=>true,'title'=>'map_fit=F map_axes=T map_axis & map_window')
|
88
|
+
GGraph.contour( gpjpn, false )
|
89
|
+
|
90
|
+
|
91
|
+
# vector ('flow_vect'=>false)
|
92
|
+
GGraph.next_fig('itr'=>itr)
|
93
|
+
GGraph.vector(gpjpn,gpjpn,true,'title'=>'map_fit=T, map_axes=F (default)','flow_vect'=>false,'unit_vect'=>true)
|
94
|
+
|
95
|
+
GGraph.next_fig('itr'=>itr)
|
96
|
+
GGraph.vector(gpjpn,gpjpn, true,'map_axes'=>true,'title'=>'map_fit=T map_axes=T','flow_vect'=>false,'unit_vect'=>true)
|
97
|
+
|
98
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false)
|
99
|
+
GGraph.vector(gpjpn,gpjpn,true,'map_axes'=>false,'title'=>'map_fit=F map_axes=F' ,'flow_vect'=>false,'unit_vect'=>true)
|
100
|
+
|
101
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false)
|
102
|
+
GGraph.vector(gpjpn,gpjpn,true,'map_axes'=>true,'title'=>'map_fit=F map_axes=T','unit_vect'=>true,'flow_vect'=>false,'unit_vect'=>true)
|
103
|
+
|
104
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false,'map_axis'=>[0,0,0],'map_window'=>[90,180,0,90])
|
105
|
+
GGraph.vector(gpjpn,gpjpn,true,'map_axes'=>false,'title'=>'map_fit=F map_axes=F map_axis & map_window','flow_vect'=>false,'unit_vect'=>true)
|
106
|
+
|
107
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false,'map_axis'=>[0,0,0],'map_window'=>[90,180,0,90])
|
108
|
+
GGraph.vector(gpjpn,gpjpn,true,'map_axes'=>true,'title'=>'map_fit=F map_axes=T map_axis & map_window','flow_vect'=>false,'unit_vect'=>true)
|
109
|
+
|
110
|
+
|
111
|
+
# vector ('flow_vect'=>true)
|
112
|
+
GGraph.next_fig('itr'=>itr)
|
113
|
+
GGraph.vector(gpjpn,gpjpn,true,'title'=>'map_fit=T, map_axes=F (default)','unit_vect'=>true)
|
114
|
+
|
115
|
+
GGraph.next_fig('itr'=>itr)
|
116
|
+
GGraph.vector(gpjpn,gpjpn, true,'map_axes'=>true,'title'=>'map_fit=T map_axes=T','unit_vect'=>true)
|
117
|
+
|
118
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false)
|
119
|
+
GGraph.vector(gpjpn,gpjpn,true,'map_axes'=>false,'title'=>'map_fit=F map_axes=F','unit_vect'=>true)
|
120
|
+
|
121
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false)
|
122
|
+
GGraph.vector(gpjpn,gpjpn,true,'map_axes'=>true,'title'=>'map_fit=F map_axes=T','unit_vect'=>true,'unit_vect'=>true)
|
123
|
+
|
124
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false,'map_axis'=>[0,0,0],'map_window'=>[90,180,0,90])
|
125
|
+
GGraph.vector(gpjpn,gpjpn,true,'map_axes'=>false,'title'=>'map_fit=F map_axes=F map_axis & map_window','unit_vect'=>true)
|
126
|
+
|
127
|
+
GGraph.next_fig('itr'=>itr,'map_fit'=>false,'map_axis'=>[0,0,0],'map_window'=>[90,180,0,90])
|
128
|
+
GGraph.vector(gpjpn,gpjpn,true,'map_axes'=>true,'title'=>'map_fit=F map_axes=T map_axis & map_window','unit_vect'=>true)
|
129
|
+
|
130
|
+
|
131
|
+
DCL.grcls
|