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
data/doc/gphys_fft.html
ADDED
@@ -0,0 +1,183 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
+
<head>
|
7
|
+
<title>../lib/numru/gphys/gphys_fft.rb</title>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<h1><a name="label:0" id="label:0">extention of class NumRu::GPhys -- Fast Fourier transformation and its applications</a></h1><!-- RDLabel: "extention of class NumRu::GPhys ­­ Fast Fourier transformation and its applications" -->
|
11
|
+
<p>This manual documents the methods of NumRu::GPhys defined in gphys_fft.rb</p>
|
12
|
+
<h1><a name="label:1" id="label:1">class methods</a></h1><!-- RDLabel: "class methods" -->
|
13
|
+
<dl>
|
14
|
+
<dt><h4><a name="label:2" id="label:2"><code>GPhys::fft_ignore_missing( <var>ignore</var>=<var>true</var>, <var>replace_val</var>=<var>nil</var> )</code></a></h4></dt><!-- RDLabel: "GPhys::fft_ignore_missing" -->
|
15
|
+
<dd>
|
16
|
+
<p>Set a flag (class variable) to ignore missing values.
|
17
|
+
This is for data that do not have missing
|
18
|
+
but is treated as potentially having missing (often
|
19
|
+
by having the valid_* attributes of NetCDF.)
|
20
|
+
If replace_val is specified, data missing with replaced
|
21
|
+
with that value.</p></dd>
|
22
|
+
</dl>
|
23
|
+
<h1><a name="label:3" id="label:3">methods</a></h1><!-- RDLabel: "methods" -->
|
24
|
+
<dl>
|
25
|
+
<dt><h4><a name="label:4" id="label:4"><code>fft(<var>backward</var>=<var>false</var>, *<var>dims</var>)</code></a></h4></dt><!-- RDLabel: "fft" -->
|
26
|
+
<dd>
|
27
|
+
<p>Fast Fourier Transformation (FFT) by using
|
28
|
+
(<a href="http://www.fftw.org">FFTW</a>) ver 3 or ver 2.
|
29
|
+
A FFTW ver.2 interface is included in NArray, while
|
30
|
+
to use FFTW ver.3, you have to install separately.
|
31
|
+
Dimension specification by the argument dims is available
|
32
|
+
only with ver.3. By default, FFT is applied to all dimensions.</p>
|
33
|
+
<p>The transformation is complex. If the input data is not complex,
|
34
|
+
it will be coerced to complex before transformation.</p>
|
35
|
+
<p>When the FT is forward, the result is normalized
|
36
|
+
(i.e., divided by the data number), unlike the default behavior of
|
37
|
+
FFTW.</p>
|
38
|
+
<p>Each coordinate is assumed to be equally spaced without checking.
|
39
|
+
The new coordinate variables will be set equal to wavenumbers,
|
40
|
+
derived as 2*PI/(length of the axis)*[0,1,2,..], where the length
|
41
|
+
of the axis is derieved as (coord.val.max - coord.val.min)*(n+1)/n.</p>
|
42
|
+
<p>ARGUMENTS</p>
|
43
|
+
<ul>
|
44
|
+
<li>backward (true of false) : when true, backward FT is done;
|
45
|
+
otherwise forward FT is done.</li>
|
46
|
+
<li>dims (integers) : dimensions to apply FFT</li>
|
47
|
+
</ul>
|
48
|
+
<p>RETURN VALUE</p>
|
49
|
+
<ul>
|
50
|
+
<li>a GPhys</li>
|
51
|
+
</ul>
|
52
|
+
<p>EXAMPLE</p>
|
53
|
+
<pre>gphy.fft # forward, for all dimensions
|
54
|
+
gphy.fft(true) # backward, for all dimensions
|
55
|
+
gphy.fft(nil, 0,1) # forward, for the first and second dimensions.
|
56
|
+
gphy.fft(true, -1) # backward, for the last dimension.</pre></dd>
|
57
|
+
<dt><h4><a name="label:5" id="label:5"><code>detrend(<var>dim1</var>[,<var>dim2</var>[,...]])</code></a></h4></dt><!-- RDLabel: "detrend" -->
|
58
|
+
<dd>
|
59
|
+
<p>Remove means and linear trends along dimension(s) specified.
|
60
|
+
Algorithm: 1st order polynomial fitting.</p>
|
61
|
+
<p>ARGUMENTS</p>
|
62
|
+
<ul>
|
63
|
+
<li>dim? (Integer of String): the dimension along which you want to remove
|
64
|
+
trends.</li>
|
65
|
+
</ul>
|
66
|
+
<p>RETURN VALUE</p>
|
67
|
+
<ul>
|
68
|
+
<li>a GPhys</li>
|
69
|
+
</ul>
|
70
|
+
<p>EXAMPLE</p>
|
71
|
+
<ul>
|
72
|
+
<li>See <a href="#label:5">detrend</a>.</li>
|
73
|
+
</ul></dd>
|
74
|
+
<dt><h4><a name="label:6" id="label:6"><code>cos_taper(<var>dim1</var>[,<var>dim2</var>[,...]])</code></a></h4></dt><!-- RDLabel: "cos_taper" -->
|
75
|
+
<dd>
|
76
|
+
<p>Cosine tapering along dimension(s) specified.</p>
|
77
|
+
<p>Algorithm: to multiply with the half cosine curves at the both
|
78
|
+
1/10 ends of the data.</p>
|
79
|
+
<pre>cos taper shape:
|
80
|
+
_____________
|
81
|
+
_/ \_
|
82
|
+
-> <- -> <-
|
83
|
+
T/10 T/10
|
84
|
+
half-cosine half-cosine
|
85
|
+
shaped shaped</pre>
|
86
|
+
<p>The spectra of tapered data should be multilied by 1/0.875,
|
87
|
+
which is stored as GPhys::COS_TAPER_SP_FACTOR (==1/0.875).</p>
|
88
|
+
<p>ARGUMENTS</p>
|
89
|
+
<ul>
|
90
|
+
<li>dim? (Integer of String): the dimension along which you want to remove
|
91
|
+
trends.</li>
|
92
|
+
</ul>
|
93
|
+
<p>RETURN VALUE</p>
|
94
|
+
<ul>
|
95
|
+
<li>a GPhys</li>
|
96
|
+
</ul>
|
97
|
+
<p>EXAMPLE</p>
|
98
|
+
<pre>dim = 0 # for the 1st dimension
|
99
|
+
fc = gphys.detrend(dim).cos_taper(dim).fft(nil,dim)
|
100
|
+
sp = fc.abs**2 * GPhys::COS_TAPER_SP_FACTOR</pre></dd>
|
101
|
+
<dt><h4><a name="label:7" id="label:7"><code>spect_zero_centering(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "spect_zero_centering" -->
|
102
|
+
<dd>
|
103
|
+
<p>Shifts the waveneumber axis to cover from -K/2 to K/2 instead of
|
104
|
+
from 0 to K-1, where the wavenumber is simbolically treated as integer,
|
105
|
+
which is actually not the case, though. Since the first (-K/2) and
|
106
|
+
the last (K/2) elements are duplicated, both are divided by 2.
|
107
|
+
Therefore, this method is to be used for spectra (squared quantity)
|
108
|
+
rather than the raw Fourier coefficients. (That is why the method name
|
109
|
+
is prefixed by "spect_").</p>
|
110
|
+
<p>The method is applied for a single dimension (specified by the argument
|
111
|
+
dim). If you need to apply for multiple dimensions, use it for multiple
|
112
|
+
times.</p>
|
113
|
+
<p>ARGUMENTS</p>
|
114
|
+
<ul>
|
115
|
+
<li>dim (integer): the dimension you want to shift spectra elements.
|
116
|
+
Count starts from zero.</li>
|
117
|
+
</ul>
|
118
|
+
<p>RETURN VALUE</p>
|
119
|
+
<ul>
|
120
|
+
<li>a GPhys</li>
|
121
|
+
</ul>
|
122
|
+
<p>EXAMPLE</p>
|
123
|
+
<ul>
|
124
|
+
<li><p>To get a spectra of a variable var along the 1st and 2nd dimensions:</p>
|
125
|
+
<pre>fc = var.fft(nil, 0,1) # --> Fourier coef
|
126
|
+
sp = ( fc.abs**2 ).spect_zero_centering(0).spect_zero_centering(1)</pre>
|
127
|
+
<p>Note that spect_zero_centering is applied after taking |fc|^2.</p></li>
|
128
|
+
<li><p>Same but if you want to have the 2nd dimension one-sided:</p>
|
129
|
+
<pre>fc = var.fft(nil, 0,1)
|
130
|
+
sp = ( fc.abs**2 ).spect_zero_centering(0).spect_one_sided(1)</pre></li>
|
131
|
+
<li><p>Similar to the first example but for cross spectra:</p>
|
132
|
+
<pre>fc1 = var1.fft(nil, 0,1)
|
133
|
+
fc2 = var2.fft(nil, 0,1)
|
134
|
+
xsp = (fc1 * fc2.conj).spect_zero_centering(0).spect_zero_centering(1)</pre></li>
|
135
|
+
</ul></dd>
|
136
|
+
<dt><h4><a name="label:8" id="label:8"><code>spect_one_sided(<var>dim</var>)</code></a></h4></dt><!-- RDLabel: "spect_one_sided" -->
|
137
|
+
<dd>
|
138
|
+
<p>Similar to <a href="#label:7">spect_zero_centering</a> but to make one-sided spectra.
|
139
|
+
Namely, to convert from 0..K-1 to 0..K/2. To be applied for spectra;
|
140
|
+
wavenumber 2..K/2-1 are multiplied by 2.</p>
|
141
|
+
<p>ARGUMENTS</p>
|
142
|
+
<ul>
|
143
|
+
<li>dim (integer): the dimension you want to shift spectra elements.
|
144
|
+
Count starts from zero.</li>
|
145
|
+
</ul>
|
146
|
+
<p>RETURN VALUE</p>
|
147
|
+
<ul>
|
148
|
+
<li>a GPhys</li>
|
149
|
+
</ul>
|
150
|
+
<p>EXAMPLE</p>
|
151
|
+
<ul>
|
152
|
+
<li>See the 2nd example of <a href="#label:7">spect_zero_centering</a>.</li>
|
153
|
+
</ul></dd>
|
154
|
+
<dt><h4><a name="label:9" id="label:9"><code>rawspect2powerspect(*<var>dims</var>)</code></a></h4></dt><!-- RDLabel: "rawspect2powerspect" -->
|
155
|
+
<dd>
|
156
|
+
<p>Converts raw spectra obtained by gphys.fft.abs**2 into
|
157
|
+
power spectra by dividing by wavenumber increments
|
158
|
+
along the dimensions spcified by dims.</p>
|
159
|
+
<p>ARGUMENTS</p>
|
160
|
+
<ul>
|
161
|
+
<li>dims (integers): the dimensions corresponding to wavenumbers.</li>
|
162
|
+
</ul>
|
163
|
+
<p>RETURN VALUE</p>
|
164
|
+
<ul>
|
165
|
+
<li>a GPhys</li>
|
166
|
+
</ul>
|
167
|
+
<p>EXAMPLE</p>
|
168
|
+
<ul>
|
169
|
+
<li><p>Suppose a 2 (or more) dimensional data gphys.</p>
|
170
|
+
<pre>fc = gphys.fft(nil, 0, 1)
|
171
|
+
sp = fc.abs**2
|
172
|
+
ps = sp.rawspect2powerspect(0,1)</pre>
|
173
|
+
<p>Here, sp is the raw spectum of gphys, and ps is the power spectrum.
|
174
|
+
The Parseval relation for them are as follows:</p>
|
175
|
+
<pre>(gphys**2).mean == sp.sum
|
176
|
+
== pw.sum*dk*dl (== \int pw dk dl, mathematically),</pre>
|
177
|
+
<p>where, dk = (pw.coord(0)[1] - pw.coord(0)[0]), and
|
178
|
+
dl = (pw.coord(1)[1] - pw.coord(1)[0]).</p></li>
|
179
|
+
</ul></dd>
|
180
|
+
</dl>
|
181
|
+
|
182
|
+
</body>
|
183
|
+
</html>
|
@@ -0,0 +1,69 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
+
<head>
|
7
|
+
<title>../lib/numru/gphys/gphys_grads_io.rb</title>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<h1><a name="label:0" id="label:0">module NumRu::GPhys::GrADS_IO</a></h1><!-- RDLabel: "module NumRu::GPhys::GrADS_IO" -->
|
11
|
+
<p>helps read/write GrADS-formatted data</p>
|
12
|
+
<h2><a name="label:1" id="label:1">Module functions</a></h2><!-- RDLabel: "Module functions" -->
|
13
|
+
<dl>
|
14
|
+
<dt><h4><a name="label:2" id="label:2"><code>is_a_GrADS?(<var>filename</var>)</code></a></h4></dt><!-- RDLabel: "is_a_GrADS?" -->
|
15
|
+
<dd>
|
16
|
+
<p>test whether the file is a GrADS control file.</p>
|
17
|
+
<p>ARGUMENTS</p>
|
18
|
+
<ul>
|
19
|
+
<li>filename (String): filename to test.</li>
|
20
|
+
</ul>
|
21
|
+
<p>RETURN VALUE</p>
|
22
|
+
<ul>
|
23
|
+
<li>true/false</li>
|
24
|
+
</ul></dd>
|
25
|
+
<dt><h4><a name="label:3" id="label:3"><code>open(<var>file</var>, <var>varname</var>)</code></a></h4></dt><!-- RDLabel: "open" -->
|
26
|
+
<dd>
|
27
|
+
<p>GPhys constructor from GrADS.</p>
|
28
|
+
<p>ARGUMENTS</p>
|
29
|
+
<ul>
|
30
|
+
<li>file (GrADS_Gridded or String): file to read. If string,
|
31
|
+
it must be the name (path) of a GrADS control file. </li>
|
32
|
+
<li>varname (String): name of the varible in the file, for which
|
33
|
+
a GPhys object is constructed.</li>
|
34
|
+
</ul>
|
35
|
+
<p>RETURN VALUE</p>
|
36
|
+
<ul>
|
37
|
+
<li>a GPhys</li>
|
38
|
+
</ul>
|
39
|
+
<p>EXAMPLE</p>
|
40
|
+
<ul>
|
41
|
+
<li><p>Suppose that you have a file T.jan.ctl in the currentdirectly,
|
42
|
+
and it contains a variable "T". The following creates a GPhys
|
43
|
+
object representing the variable in the file.</p>
|
44
|
+
<pre>require "numru/gphys"
|
45
|
+
include GPhys
|
46
|
+
temp = GPhys::GrADS_IO.open("T.jan.ctl","T")</pre></li>
|
47
|
+
</ul></dd>
|
48
|
+
<dt><h4><a name="label:4" id="label:4"><code>write(<var>file</var>, <var>gphys</var>, <var>name</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "write" -->
|
49
|
+
<dd>
|
50
|
+
<p>writes a GPhys object into a GrADS file. -- !!only 4D data is supported!!</p></dd>
|
51
|
+
<dt><h4><a name="label:5" id="label:5"><code>var_names(<var>file</var>)</code></a></h4></dt><!-- RDLabel: "var_names" -->
|
52
|
+
<dd>
|
53
|
+
<p>ARGUMENTS</p>
|
54
|
+
<ul>
|
55
|
+
<li>file (GrADS_Gridded or String): if string,
|
56
|
+
it must be the name (path) of a GrADS control file.</li>
|
57
|
+
</ul>
|
58
|
+
<p>RETURN VALUE</p>
|
59
|
+
<ul>
|
60
|
+
<li>names of variables (Array): this return the names of variables
|
61
|
+
which the file has.</li>
|
62
|
+
</ul></dd>
|
63
|
+
<dt><h4><a name="label:6" id="label:6"><code>var_names_except_coordinates(<var>file</var>)</code></a></h4></dt><!-- RDLabel: "var_names_except_coordinates" -->
|
64
|
+
<dd>
|
65
|
+
<p>same as var_names</p></dd>
|
66
|
+
</dl>
|
67
|
+
|
68
|
+
</body>
|
69
|
+
</html>
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
+
<head>
|
7
|
+
<title>../lib/numru/gphys/gphys_grib_io.rb</title>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<h1><a name="label:0" id="label:0">module NumRu::GPhys::Grib_IO</a></h1><!-- RDLabel: "module NumRu::GPhys::Grib_IO" -->
|
11
|
+
<p>helps read Grib-formatted data</p>
|
12
|
+
<h2><a name="label:1" id="label:1">Module functions</a></h2><!-- RDLabel: "Module functions" -->
|
13
|
+
<dl>
|
14
|
+
<dt><h4><a name="label:2" id="label:2"><code>is_a_Grib? <var>filename</var>)</code></a></h4></dt><!-- RDLabel: "is_a_Grib? filename)" -->
|
15
|
+
<dd>
|
16
|
+
<p>test whether the file is a Grib file.</p>
|
17
|
+
<p>ARGUMENTS</p>
|
18
|
+
<ul>
|
19
|
+
<li>filename (String): filename to test.</li>
|
20
|
+
</ul>
|
21
|
+
<p>RETURN VALUE</p>
|
22
|
+
<ul>
|
23
|
+
<li>true/false</li>
|
24
|
+
</ul></dd>
|
25
|
+
<dt><h4><a name="label:3" id="label:3"><code>open(<var>file</var>, <var>varname</var>)</code></a></h4></dt><!-- RDLabel: "open" -->
|
26
|
+
<dd>
|
27
|
+
<p>GPhys constructor from Grib.</p>
|
28
|
+
<p>ARGUMENTS</p>
|
29
|
+
<ul>
|
30
|
+
<li>file (Grib or String): file to read. If string,
|
31
|
+
it must be the name (path) of a Grib file. </li>
|
32
|
+
<li>varname (String): name of the varible in the file, for which
|
33
|
+
a GPhys object is constructed.</li>
|
34
|
+
</ul>
|
35
|
+
<p>RETURN VALUE</p>
|
36
|
+
<ul>
|
37
|
+
<li>a GPhys</li>
|
38
|
+
</ul>
|
39
|
+
<p>EXAMPLE</p>
|
40
|
+
<ul>
|
41
|
+
<li><p>Suppose that you have a file temp in the currentdirectly,
|
42
|
+
and it contains a variable "T". The following creates a GPhys
|
43
|
+
object representing the variable in the file.</p>
|
44
|
+
<pre>require "numru/gphys"
|
45
|
+
include GPhys
|
46
|
+
temp = GPhys::Grib_IO.open("temp","T")</pre></li>
|
47
|
+
</ul></dd>
|
48
|
+
<dt><h4><a name="label:4" id="label:4"><code>write(<var>file</var>, <var>gphys</var>, <var>name_dummy</var>=<var>nil</var>)</code></a></h4></dt><!-- RDLabel: "write" -->
|
49
|
+
<dd>
|
50
|
+
<p>Write a GPhys into a Grib file. The whole data under the GPhys
|
51
|
+
(such as coordinate vars) are written self-descriptively.</p>
|
52
|
+
<p>ARGUMENTS</p>
|
53
|
+
<ul>
|
54
|
+
<li>file (Grib): the Grib file to write in. Must be writable of course.</li>
|
55
|
+
<li>gphys (GPhys): the GPhys to write.</li>
|
56
|
+
<li>name_dummy (nil) : Unused in this module; Just for consistency with others.</li>
|
57
|
+
</ul>
|
58
|
+
<p>RETURN VALUE</p>
|
59
|
+
<ul>
|
60
|
+
<li>nil</li>
|
61
|
+
</ul></dd>
|
62
|
+
<dt><h4><a name="label:5" id="label:5"><code>var_names(<var>file</var>)</code></a></h4></dt><!-- RDLabel: "var_names" -->
|
63
|
+
<dd>
|
64
|
+
<p>ARGUMENTS</p>
|
65
|
+
<ul>
|
66
|
+
<li>file (Grib or String): if string,
|
67
|
+
it must be the name (path) of a Grib file.</li>
|
68
|
+
</ul>
|
69
|
+
<p>RETURN VALUE</p>
|
70
|
+
<ul>
|
71
|
+
<li>names of variables (Array): this return the names of variables
|
72
|
+
which the file has.</li>
|
73
|
+
</ul></dd>
|
74
|
+
<dt><h4><a name="label:6" id="label:6"><code>var_names_except_coordinates(<var>file</var>)</code></a></h4></dt><!-- RDLabel: "var_names_except_coordinates" -->
|
75
|
+
<dd>
|
76
|
+
<ul>
|
77
|
+
<li>same as var_names</li>
|
78
|
+
</ul></dd>
|
79
|
+
</dl>
|
80
|
+
|
81
|
+
</body>
|
82
|
+
</html>
|
data/doc/gphys_io.html
ADDED
@@ -0,0 +1,96 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
+
<head>
|
7
|
+
<title>../lib/numru/gphys/gphys_io.rb</title>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<h1><a name="label:0" id="label:0">module NumRu::GPhys::IO</a></h1><!-- RDLabel: "module NumRu::GPhys::IO" -->
|
11
|
+
<p>A module to handle file IO regarding GPhys. </p>
|
12
|
+
<p>Many of the functionality of this module is implemented in the modules
|
13
|
+
for specific file types such as NumRu::GPhys::NetCDF_IO, to which this
|
14
|
+
module directs operations.</p>
|
15
|
+
<p>For example, GPhys::IO.open(file, name) simply calls
|
16
|
+
GPhys::*_IO.open(file, name), where '*' is
|
17
|
+
NetCDF, GrADS, or grib.</p>
|
18
|
+
<h2><a name="label:1" id="label:1">Module functions</a></h2><!-- RDLabel: "Module functions" -->
|
19
|
+
<dl>
|
20
|
+
<dt><h4><a name="label:2" id="label:2"><code>open(<var>files</var>, <var>varname</var>)</code></a><!-- RDLabel: "open" -->
|
21
|
+
<dt><h4><a name="label:3" id="label:3"><code>write(<var>file</var>, <var>gphys</var>, <var>name</var>=<var>nil</var>)</code></a><!-- RDLabel: "write" -->
|
22
|
+
<dt><h4><a name="label:4" id="label:4"><code>write_grid(<var>file</var>, <var>grid_or_gphys</var>)</code></a><!-- RDLabel: "write_grid" -->
|
23
|
+
<dt><h4><a name="label:5" id="label:5"><code>each_along_dims_write(<var>gphyses</var>, <var>files</var>, *<var>loopdims</var>){...} # <var>a</var> <var>block</var> <var>is</var> <var>expected</var></code></a><!-- RDLabel: "each_along_dims_write" -->
|
24
|
+
<dt><h4><a name="label:6" id="label:6"><code>var_names(<var>file</var>)</code></a><!-- RDLabel: "var_names" -->
|
25
|
+
<dt><h4><a name="label:7" id="label:7"><code>var_names_except_coordinates(<var>file</var>)</code></a></h4></dt><!-- RDLabel: "var_names_except_coordinates" -->
|
26
|
+
<dd>
|
27
|
+
<p>See the manual of NumRu::GPhys::NetCDF_IO for the methods listed above.</p></dd>
|
28
|
+
<dt><h4><a name="label:8" id="label:8"><code>file2type(<var>file</var>)</code></a></h4></dt><!-- RDLabel: "file2type" -->
|
29
|
+
<dd>
|
30
|
+
<p>Figures out the file type supported in this module.</p>
|
31
|
+
<p>ARGUMENTS</p>
|
32
|
+
<ul>
|
33
|
+
<li>file (String, Regexp, NetCDF, Grib, or GrADS_Gridded) :
|
34
|
+
What to return is of course obvious if it is
|
35
|
+
NetCDF, Grib, or GrADS_Gridded. If it is a String,
|
36
|
+
it is assumed to be a path of a file, and the file type
|
37
|
+
is determined by its suffix when 'nc', 'ctl', or 'grib';
|
38
|
+
In other cases, the type is figured out by reading in
|
39
|
+
a few bytes from the beginning. If Regexp, currently,
|
40
|
+
a NetCDF is assumed, since only NetCDF_IO.open supports
|
41
|
+
Regexp.</li>
|
42
|
+
</ul>
|
43
|
+
<p>RETURN VALUE</p>
|
44
|
+
<ul>
|
45
|
+
<li>GPhys::IO::NETCDF, GPhys::IO::GRIB, or GPhys::IO::GRADS,
|
46
|
+
which are string constants.</li>
|
47
|
+
</ul></dd>
|
48
|
+
<dt><h4><a name="label:9" id="label:9"><code>file2specific_module(<var>file</var>)</code></a></h4></dt><!-- RDLabel: "file2specific_module" -->
|
49
|
+
<dd>
|
50
|
+
<p>Same as <a href="#label:8">file2type</a>, but returns GPhys::NetCDF_IO,
|
51
|
+
GPhys::GrADS_IO, or GPhys::Grib_IO.</p></dd>
|
52
|
+
<dt><h4><a name="label:10" id="label:10"><code>file2file_class(<var>file</var>)</code></a></h4></dt><!-- RDLabel: "file2file_class" -->
|
53
|
+
<dd>
|
54
|
+
<p>Same as <a href="#label:8">file2type</a>, but returns NetCDF,
|
55
|
+
GrADS_Gridded, or Grib.</p></dd>
|
56
|
+
<dt><h4><a name="label:11" id="label:11"><code>parse_gturl(<var>gturl</var>)</code></a></h4></dt><!-- RDLabel: "parse_gturl" -->
|
57
|
+
<dd>
|
58
|
+
<p>Parses GTOOL4-type URLs to specify path, variable name,
|
59
|
+
and optionally subsets, whose format is
|
60
|
+
path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]</p>
|
61
|
+
<p>ARGUMENTS</p>
|
62
|
+
<ul>
|
63
|
+
<li>gturl (String) GTOOL4 URL, whose format is
|
64
|
+
path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]</li>
|
65
|
+
</ul>
|
66
|
+
<p>RETURN VALUES</p>
|
67
|
+
<ul>
|
68
|
+
<li>An Array consisting of [file, var, slice, thinning], where
|
69
|
+
<ul>
|
70
|
+
<li>file (String) : path</li>
|
71
|
+
<li>var (String) : variable name</li>
|
72
|
+
<li>slice (Array) : subset specifier in physical coordinate
|
73
|
+
to be used as GPhys#cut[slice].</li>
|
74
|
+
<li>thinning (Array) : additional subset specifier for thinning
|
75
|
+
with uniform intervals if needed to be used GPhys#[thinning]
|
76
|
+
after appling GPhys#cut.</li>
|
77
|
+
</ul></li>
|
78
|
+
</ul></dd>
|
79
|
+
<dt><h4><a name="label:12" id="label:12"><code>open_gturl(<var>gturl</var>)</code></a></h4></dt><!-- RDLabel: "open_gturl" -->
|
80
|
+
<dd>
|
81
|
+
<p>a GPhys constructor from a Gtool4-type URL.
|
82
|
+
See <a href="#label:11">parse_gturl</a> for its format.</p>
|
83
|
+
<p>RETURN VALUE</p>
|
84
|
+
<ul>
|
85
|
+
<li>a GPhys</li>
|
86
|
+
</ul></dd>
|
87
|
+
</dl>
|
88
|
+
<h2><a name="label:13" id="label:13">Module constants</a></h2><!-- RDLabel: "Module constants" -->
|
89
|
+
<dl>
|
90
|
+
<dt><h4><a name="label:14" id="label:14"><code>GTURLfmt</code></a></h4></dt><!-- RDLabel: "GTURLfmt" -->
|
91
|
+
<dd>
|
92
|
+
<p>The format of Gtool4URL.</p></dd>
|
93
|
+
</dl>
|
94
|
+
|
95
|
+
</body>
|
96
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
+
<head>
|
7
|
+
<title>../lib/numru/gphys/gphys_io_common.rb</title>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<h1><a name="label:0" id="label:0">module NumRu::GPhys::IO_Common</a></h1><!-- RDLabel: "module NumRu::GPhys::IO_Common" -->
|
11
|
+
<p>THIS MODULE IS ONLY FOR INTERNAL USAGE.
|
12
|
+
(Does not work stand alone.)</p>
|
13
|
+
<p>Functions independent of specific file formart.
|
14
|
+
To be used by IO, NetCDF_IO, GrADS_IO etc. </p>
|
15
|
+
<p>A test program is included in gphys_netcdf.rb</p>
|
16
|
+
|
17
|
+
</body>
|
18
|
+
</html>
|