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,177 @@
|
|
1
|
+
=begin
|
2
|
+
=Status
|
3
|
+
* only reading
|
4
|
+
=end
|
5
|
+
|
6
|
+
require "numru/gphys/grib"
|
7
|
+
require "numru/gphys/varray"
|
8
|
+
|
9
|
+
module NumRu
|
10
|
+
|
11
|
+
=begin
|
12
|
+
=NumRu::VArrayGrib < VArray
|
13
|
+
==Class Methods
|
14
|
+
---new(GribVar)
|
15
|
+
==Methods
|
16
|
+
=end
|
17
|
+
class VArrayGrib < VArray
|
18
|
+
|
19
|
+
def initialize(aGribVar)
|
20
|
+
if !GribVar===aGribVar && !GribDim===aGribVar
|
21
|
+
raise ArgumentError,"Not a GribVar or GribDim"
|
22
|
+
end
|
23
|
+
@name = aGribVar.name
|
24
|
+
@mapping = nil
|
25
|
+
@varray = nil
|
26
|
+
@ary = aGribVar
|
27
|
+
@attr = Attribute.new
|
28
|
+
aGribVar.att_names.each{|name|
|
29
|
+
@attr[name] = aGribVar.att(name)
|
30
|
+
}
|
31
|
+
if GribDim===@ary
|
32
|
+
class << @ary
|
33
|
+
def rank
|
34
|
+
return 1
|
35
|
+
end
|
36
|
+
def shape
|
37
|
+
return [@length]
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def inspect
|
44
|
+
if GribVar===@ary
|
45
|
+
"<'#{@name}' in '#{@ary.file.path}' [#{@ary.shape.join(", ")}]>"
|
46
|
+
elsif GribDim===@ary
|
47
|
+
"<'#{@name}' in '#{@ary.var.name}' #{@ary.length}>"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
class << self
|
52
|
+
## < redefined class methods > ##
|
53
|
+
|
54
|
+
def new2(file, name, dims, vary)
|
55
|
+
v = file.def_var(name)
|
56
|
+
dims.length.times{|n|
|
57
|
+
d = dims[n]
|
58
|
+
if GribDim===d
|
59
|
+
gd = v.def_dim(d.name,n)
|
60
|
+
gd.put(d.get)
|
61
|
+
d.att_names.each{|name| gd.put_att(name,d.att(name)) }
|
62
|
+
elsif VArray===d
|
63
|
+
gd = v.def_dim(d.name,n)
|
64
|
+
gd.put(d.val)
|
65
|
+
d.att_names.each{|name| gd.put_att(name,d.get_att(name)) }
|
66
|
+
elsif String===d
|
67
|
+
gd = v.def_dim(d,n)
|
68
|
+
gd.put(NArray.sfloat(vary.shape_ul0[n]).indgen)
|
69
|
+
else
|
70
|
+
raise "type is not correct"
|
71
|
+
end
|
72
|
+
}
|
73
|
+
va = new(v)
|
74
|
+
vary.att_names.each{|name| va.put_att(name,vary.get_att(name)) }
|
75
|
+
return va
|
76
|
+
end
|
77
|
+
|
78
|
+
alias def_var new2
|
79
|
+
|
80
|
+
## < additional class methods > ##
|
81
|
+
|
82
|
+
def write(file,vary,dims=nil)
|
83
|
+
Grib===file || raise(ArgumentError,"1st arg: not a Grib")
|
84
|
+
VArray===vary || raise(ArgumentError,"2st arg: not a VArray")
|
85
|
+
rank = vary.rank
|
86
|
+
if !dims
|
87
|
+
dims = vary.dim_names
|
88
|
+
if VArrayGrib===vary
|
89
|
+
class << vary
|
90
|
+
def dim(dn)
|
91
|
+
@ary.dim(dn)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
dims = dims.collect{|dim| vary.dim(dim) }
|
95
|
+
end
|
96
|
+
end
|
97
|
+
newvary = new2(file,vary.name,dims,vary)
|
98
|
+
newvary.val = vary.val
|
99
|
+
file.write
|
100
|
+
return newvary
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
## < redefined instance methods > ##
|
105
|
+
|
106
|
+
def val
|
107
|
+
return @ary.val
|
108
|
+
end
|
109
|
+
|
110
|
+
def val=(narray)
|
111
|
+
shape==narray.shape || raise("not same shape")
|
112
|
+
@ary.put(narray)
|
113
|
+
end
|
114
|
+
|
115
|
+
def shape
|
116
|
+
@ary.shape
|
117
|
+
end
|
118
|
+
|
119
|
+
def total
|
120
|
+
@ary.total
|
121
|
+
end
|
122
|
+
alias length total
|
123
|
+
|
124
|
+
def rank
|
125
|
+
@ary.rank
|
126
|
+
end
|
127
|
+
|
128
|
+
undef reshape!
|
129
|
+
|
130
|
+
## < additional instance methods > ##
|
131
|
+
|
132
|
+
def dim_names
|
133
|
+
@ary.dim_names
|
134
|
+
end
|
135
|
+
def shape_ul0
|
136
|
+
@ary.shape
|
137
|
+
end
|
138
|
+
def shape_current
|
139
|
+
@ary.shape
|
140
|
+
end
|
141
|
+
def file
|
142
|
+
@ary.file
|
143
|
+
end
|
144
|
+
|
145
|
+
def put_att(name,val)
|
146
|
+
@ary.put_att(name,val)
|
147
|
+
end
|
148
|
+
|
149
|
+
end # class VArrayGrib
|
150
|
+
end # module NumRu
|
151
|
+
|
152
|
+
###########################################################
|
153
|
+
### < test >
|
154
|
+
|
155
|
+
if $0 == __FILE__
|
156
|
+
$DEBUG = true
|
157
|
+
|
158
|
+
include NumRu
|
159
|
+
|
160
|
+
grib = Grib.open("../../../testdata/T.jan.grib")
|
161
|
+
gv = grib.var("TMP")
|
162
|
+
|
163
|
+
va = VArrayGrib.new(gv)
|
164
|
+
p va.dim_names
|
165
|
+
p va.shape_ul0
|
166
|
+
va.att_names.each{|key|
|
167
|
+
p [key, va.get_att(key)]
|
168
|
+
}
|
169
|
+
|
170
|
+
p va.val
|
171
|
+
|
172
|
+
|
173
|
+
va2 = va[3..9,5..15,0]
|
174
|
+
p va2.shape
|
175
|
+
p va2.val
|
176
|
+
|
177
|
+
end
|
@@ -0,0 +1,226 @@
|
|
1
|
+
=begin
|
2
|
+
=ToDo list
|
3
|
+
* Support a temporay attribute (@tmp_attr = Attribute.new)
|
4
|
+
=end
|
5
|
+
|
6
|
+
require "numru/gphys/gtool3"
|
7
|
+
require "numru/gphys/varray"
|
8
|
+
|
9
|
+
module NumRu
|
10
|
+
|
11
|
+
ATTR_CF_CONV = {
|
12
|
+
"DSET" => "dataset",
|
13
|
+
"TITLE" => "long_name",
|
14
|
+
"UNIT" => "units",
|
15
|
+
"MISS" => "missing_value"
|
16
|
+
# "ITEM" => nil, # identical to name
|
17
|
+
# "TIME" => nil, # treated in the time axis
|
18
|
+
# "DATE" => nil, # treated in the time axis
|
19
|
+
# "UTIM" => nil, # treated in the time axis
|
20
|
+
# "TDUR" => nil, # in Future, should be treaded with cell_* in CF
|
21
|
+
# "CSIGN" => nil, # will be in history in convination
|
22
|
+
# "CDATE" => nil # will be in history in convination
|
23
|
+
# "MDATE" => nil, # will be in history in convination
|
24
|
+
# "MSIGN" => nil, # will be in history in convination
|
25
|
+
}
|
26
|
+
|
27
|
+
class VArrayGtool3 < VArray
|
28
|
+
|
29
|
+
## < initialization redefined > ##
|
30
|
+
|
31
|
+
def initialize(aGtool3Var)
|
32
|
+
raise ArgumentError,"Not a Gtool3Var" if ! aGtool3Var.is_a?(Gtool3Var)
|
33
|
+
@name = aGtool3Var.name
|
34
|
+
@mapping = nil
|
35
|
+
@varray = nil
|
36
|
+
@ary = aGtool3Var
|
37
|
+
@attr = _attr_conv_to_CF( aGtool3Var.attr )
|
38
|
+
end
|
39
|
+
|
40
|
+
def _attr_conv_to_CF(org)
|
41
|
+
attr = Attribute.new
|
42
|
+
ATTR_CF_CONV.each do |ik,ok|
|
43
|
+
val = org[ik]
|
44
|
+
val = NArray[val] if val.is_a?(Numeric)
|
45
|
+
attr[ok] = val
|
46
|
+
end
|
47
|
+
hist = ""
|
48
|
+
hist += "Created #{org["CDATE"]} by #{org["CSIGN"]}. " if org["CDATE"]
|
49
|
+
hist += "Modifiled #{org["MDATE"]} by #{org["MSIGN"]}. "if org["MDATE"]
|
50
|
+
attr["history"] = hist if hist.length > 0
|
51
|
+
attr
|
52
|
+
end
|
53
|
+
private :_attr_conv_to_CF
|
54
|
+
|
55
|
+
class << self
|
56
|
+
## < redefined class methods > ##
|
57
|
+
|
58
|
+
#def new2(file, name, ntype, dimensions, attr=nil)
|
59
|
+
# va = new( file.def_var(name, ntype, dimensions) )
|
60
|
+
# if attr; attr.each{|key,val| va.attr[key]=val}; end
|
61
|
+
# va
|
62
|
+
#end
|
63
|
+
undef new2
|
64
|
+
|
65
|
+
# to make a varray from an axis (except for time)
|
66
|
+
def make_coord(hash)
|
67
|
+
nary = hash.delete(:val)
|
68
|
+
name = hash.delete("ITEM")
|
69
|
+
coord_att_conv!(hash)
|
70
|
+
VArray.new(nary, hash, name)
|
71
|
+
end
|
72
|
+
|
73
|
+
def coord_att_conv!(hash)
|
74
|
+
hash.keys.each do |k|
|
75
|
+
v = hash.delete(k)
|
76
|
+
if (ck=ATTR_CF_CONV[k]) # substitution, not ==
|
77
|
+
v = NArray[v] if v.is_a?(Numeric)
|
78
|
+
if k=="UNIT"
|
79
|
+
case v
|
80
|
+
when "deg"
|
81
|
+
v = "degrees"
|
82
|
+
end
|
83
|
+
end
|
84
|
+
hash[ck] = v
|
85
|
+
elsif k=="STYP" && v
|
86
|
+
if v >= 0
|
87
|
+
hash["positive"] = "up"
|
88
|
+
else
|
89
|
+
hash["positive"] = "down"
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
hash
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
## < redefined instance methods > ##
|
98
|
+
|
99
|
+
def val
|
100
|
+
v = @ary.get
|
101
|
+
end
|
102
|
+
|
103
|
+
def val=(narray)
|
104
|
+
@ary.put( __check_ary_class2(narray) )
|
105
|
+
narray
|
106
|
+
end
|
107
|
+
|
108
|
+
# # It is safer not to have the method "shape" to avoid misconfusion of
|
109
|
+
# # shape_ul0 and shape_current:
|
110
|
+
# def shape
|
111
|
+
# raise "The shape method is not available. Use shape_ul0 or shape_current instead."
|
112
|
+
# end
|
113
|
+
|
114
|
+
def inspect
|
115
|
+
"<'#{@name}' in '#{@ary.file.path}' #{ntype}#{shape_current.inspect}>"
|
116
|
+
end
|
117
|
+
|
118
|
+
def total
|
119
|
+
len = 1
|
120
|
+
@ary.shape_current.each{|i| len *= i}
|
121
|
+
len
|
122
|
+
end
|
123
|
+
alias length total
|
124
|
+
|
125
|
+
def rank
|
126
|
+
shape_current.length
|
127
|
+
end
|
128
|
+
|
129
|
+
# def reshape!( *args )
|
130
|
+
# raise "cannot reshape a #{class}. Use copy first to make it a VArray with NArray"
|
131
|
+
# end
|
132
|
+
undef reshape!
|
133
|
+
|
134
|
+
|
135
|
+
## < additional instance methods > ##
|
136
|
+
|
137
|
+
def dim_names
|
138
|
+
@ary.dim_names
|
139
|
+
end
|
140
|
+
def shape_ul0
|
141
|
+
@ary.shape_ul0
|
142
|
+
end
|
143
|
+
def shape_current
|
144
|
+
@ary.shape_current
|
145
|
+
end
|
146
|
+
def file
|
147
|
+
@ary.file
|
148
|
+
end
|
149
|
+
|
150
|
+
end
|
151
|
+
|
152
|
+
class VArrayGtool3Time < VArray
|
153
|
+
def initialize(hash, calendar=nil)
|
154
|
+
@ary = hash.delete(:val)
|
155
|
+
@name = hash.delete("ITEM")
|
156
|
+
@attr = Attribute.new
|
157
|
+
@attr.update( VArrayGtool3.coord_att_conv!(hash) )
|
158
|
+
@attr["calendar"] = calendar if calendar
|
159
|
+
@varray = nil
|
160
|
+
@mapping = nil
|
161
|
+
end
|
162
|
+
|
163
|
+
def inspect
|
164
|
+
"<'#{name}' in '#{@ary.file.path}' #{ntype}#{shape.inspect}>"
|
165
|
+
end
|
166
|
+
|
167
|
+
def val
|
168
|
+
@ary.get
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
|
173
|
+
end
|
174
|
+
|
175
|
+
###########################################################
|
176
|
+
### < test >
|
177
|
+
|
178
|
+
if $0 == __FILE__
|
179
|
+
# $DEBUG = true
|
180
|
+
include NumRu
|
181
|
+
Gtool3.gtaxdir = File.expand_path("~/dennou/GTAXDIR")
|
182
|
+
path = ARGV[0]
|
183
|
+
varname = ARGV[1] or raise("Need two args")
|
184
|
+
|
185
|
+
file = Gtool3.open(File.expand_path(path))
|
186
|
+
var = file.var(varname)
|
187
|
+
va = VArrayGtool3.new(var)
|
188
|
+
|
189
|
+
p va, va.name
|
190
|
+
p va.dim_names
|
191
|
+
p va.shape_ul0
|
192
|
+
p va.val
|
193
|
+
|
194
|
+
va.att_names.each do |nm|
|
195
|
+
print nm,"\t",va.get_att(nm).inspect,"\n"
|
196
|
+
end
|
197
|
+
|
198
|
+
p va.get_att("long_name")
|
199
|
+
|
200
|
+
print "***************\n"
|
201
|
+
va2 = va[3..9,5..15,0,0]
|
202
|
+
p va2.shape
|
203
|
+
p va2.val
|
204
|
+
|
205
|
+
p va2.get_att("long_name")
|
206
|
+
|
207
|
+
print "****** time *******\n"
|
208
|
+
|
209
|
+
t = VArrayGtool3Time.new(var.axis(-1)["LOC"])
|
210
|
+
p t, t[1..3].val
|
211
|
+
t.att_names.each do |nm|
|
212
|
+
print nm,"\t",va.get_att(nm).inspect,"\n"
|
213
|
+
end
|
214
|
+
|
215
|
+
print "****** lon *******\n"
|
216
|
+
|
217
|
+
xg = var.axis(0)["LOC"]
|
218
|
+
#nm = xg.delete("ITEM)"
|
219
|
+
#na = xg.delete(:val)
|
220
|
+
#x = VArray.new(na, xg, nm)
|
221
|
+
x = VArrayGtool3.make_coord(xg)
|
222
|
+
p x, x[1..3].val
|
223
|
+
x.att_names.each do |nm|
|
224
|
+
print nm,"\t",x.get_att(nm).inspect,"\n"
|
225
|
+
end
|
226
|
+
end
|