gphys 1.1.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/ChangeLog +221 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +18 -30
- data/README +23 -26
- data/README.md +29 -0
- data/Rakefile +1 -56
- data/bin/gpaop +2 -1
- data/bin/gpcut +3 -2
- data/bin/gpedit +6 -2
- data/bin/gpmath +3 -2
- data/bin/gpmaxmin +3 -2
- data/bin/gpprint +2 -1
- data/bin/gpvect +28 -5
- data/bin/gpview +43 -5
- data/extconf.rb +5 -6
- data/gphys.gemspec +34 -0
- data/interpo.c +63 -24
- data/lib/gphys.rb +2 -0
- data/lib/numru/dclext.rb +2636 -0
- data/lib/numru/derivative.rb +53 -12
- data/lib/numru/ganalysis/eof.rb +4 -0
- data/lib/numru/ganalysis/histogram.rb +73 -5
- data/lib/numru/ganalysis/met.rb +163 -2
- data/lib/numru/ganalysis/planet.rb +230 -20
- data/lib/numru/ggraph.rb +147 -2247
- data/lib/numru/gphys/assoccoords.rb +19 -3
- data/lib/numru/gphys/axis.rb +1 -1
- data/lib/numru/gphys/coordmapping.rb +2 -2
- data/lib/numru/gphys/derivative.rb +56 -13
- data/lib/numru/gphys/gphys.rb +17 -1
- data/lib/numru/gphys/gphys_grads_io.rb +6 -5
- data/lib/numru/gphys/gphys_grib_io.rb +6 -6
- data/lib/numru/gphys/gphys_io.rb +25 -6
- data/lib/numru/gphys/grads_gridded.rb +31 -29
- data/lib/numru/gphys/grib.rb +13 -9
- data/lib/numru/gphys/interpolate.rb +153 -29
- data/lib/numru/gphys/unumeric.rb +29 -6
- data/lib/numru/gphys/varray.rb +9 -0
- data/lib/numru/gphys/varraygrib.rb +70 -8
- data/lib/version.rb +3 -0
- metadata +247 -531
- data/doc/attribute.html +0 -19
- data/doc/attributenetcdf.html +0 -15
- data/doc/axis.html +0 -376
- data/doc/coordmapping.html +0 -111
- data/doc/coordtransform.html +0 -36
- data/doc/derivative/gphys-derivative.html +0 -80
- data/doc/derivative/index.html +0 -21
- data/doc/derivative/index.rd +0 -14
- data/doc/derivative/math-doc/document/document.css +0 -30
- data/doc/derivative/math-doc/document/document.html +0 -57
- data/doc/derivative/math-doc/document/images.aux +0 -1
- data/doc/derivative/math-doc/document/images.log +0 -385
- data/doc/derivative/math-doc/document/images.pl +0 -186
- data/doc/derivative/math-doc/document/images.tex +0 -364
- 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 +0 -57
- data/doc/derivative/math-doc/document/labels.pl +0 -13
- 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 +0 -238
- data/doc/derivative/math-doc/document/node2.html +0 -75
- 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 +0 -158
- data/doc/derivative/numru-derivative.html +0 -129
- data/doc/ep_flux/ep_flux.html +0 -469
- data/doc/ep_flux/ggraph_on_merdional_section.html +0 -71
- data/doc/ep_flux/index.html +0 -31
- data/doc/ep_flux/index.rd +0 -24
- data/doc/ep_flux/math-doc/document/WARNINGS +0 -1
- 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 +0 -30
- data/doc/ep_flux/math-doc/document/document.html +0 -101
- data/doc/ep_flux/math-doc/document/images.aux +0 -1
- data/doc/ep_flux/math-doc/document/images.log +0 -1375
- data/doc/ep_flux/math-doc/document/images.pl +0 -1328
- data/doc/ep_flux/math-doc/document/images.tex +0 -1471
- 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 +0 -101
- data/doc/ep_flux/math-doc/document/internals.pl +0 -258
- data/doc/ep_flux/math-doc/document/labels.pl +0 -265
- 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 +0 -104
- data/doc/ep_flux/math-doc/document/node10.html +0 -164
- data/doc/ep_flux/math-doc/document/node11.html +0 -86
- data/doc/ep_flux/math-doc/document/node12.html +0 -166
- data/doc/ep_flux/math-doc/document/node13.html +0 -897
- data/doc/ep_flux/math-doc/document/node14.html +0 -1065
- data/doc/ep_flux/math-doc/document/node15.html +0 -72
- data/doc/ep_flux/math-doc/document/node16.html +0 -81
- data/doc/ep_flux/math-doc/document/node2.html +0 -82
- data/doc/ep_flux/math-doc/document/node3.html +0 -91
- data/doc/ep_flux/math-doc/document/node4.html +0 -149
- data/doc/ep_flux/math-doc/document/node5.html +0 -330
- data/doc/ep_flux/math-doc/document/node6.html +0 -99
- data/doc/ep_flux/math-doc/document/node7.html +0 -98
- data/doc/ep_flux/math-doc/document/node8.html +0 -83
- data/doc/ep_flux/math-doc/document/node9.html +0 -140
- 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 +0 -2018
- data/doc/gdir.html +0 -412
- data/doc/gdir_client.html +0 -16
- data/doc/gdir_connect_ftp-like.html +0 -61
- data/doc/gdir_server.html +0 -45
- data/doc/ggraph.html +0 -1615
- data/doc/gpcat.html +0 -44
- data/doc/gpcut.html +0 -41
- data/doc/gphys.html +0 -532
- data/doc/gphys_fft.html +0 -324
- data/doc/gphys_grads_io.html +0 -69
- data/doc/gphys_grib_io.html +0 -82
- data/doc/gphys_io.html +0 -120
- data/doc/gphys_io_common.html +0 -18
- data/doc/gphys_netcdf_io.html +0 -283
- data/doc/gplist.html +0 -24
- data/doc/gpmath.html +0 -51
- data/doc/gpmaxmin.html +0 -31
- data/doc/gpprint.html +0 -34
- data/doc/gpview.html +0 -270
- data/doc/grads2nc_with_gphys.html +0 -21
- data/doc/grads_gridded.html +0 -307
- data/doc/grib.html +0 -144
- data/doc/grid.html +0 -212
- data/doc/index.html +0 -133
- data/doc/index.rd +0 -127
- data/doc/netcdf_convention.html +0 -136
- data/doc/unumeric.html +0 -176
- data/doc/update +0 -64
- data/doc/varray.html +0 -299
- data/doc/varraycomposite.html +0 -67
data/doc/grib.html
DELETED
@@ -1,144 +0,0 @@
|
|
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/grib.rb</title>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<h1><a name="label-0" id="label-0">Status</a></h1><!-- RDLabel: "Status" -->
|
11
|
-
<ul>
|
12
|
-
<li>only a Lon-Lat coordinate is supported</li>
|
13
|
-
<li>only simple pakking is supported</li>
|
14
|
-
<li>variable list is not complete for NCEP and ECMWF</li>
|
15
|
-
</ul>
|
16
|
-
<p>if ! 'a'.respond_to?(:ord)</p>
|
17
|
-
<pre>class String
|
18
|
-
def ord
|
19
|
-
self[0]
|
20
|
-
end
|
21
|
-
end</pre>
|
22
|
-
<p>end
|
23
|
-
if ! 'a'.respond_to?(:getbyte)</p>
|
24
|
-
<pre>class String
|
25
|
-
def getbyte(i)
|
26
|
-
self[i]
|
27
|
-
end
|
28
|
-
end</pre>
|
29
|
-
<p>end</p>
|
30
|
-
<pre>def str2uint1(str)
|
31
|
-
return nil if str.length==0
|
32
|
-
return str.ord
|
33
|
-
end
|
34
|
-
def str2uint2(str)
|
35
|
-
return nil if str.length==0
|
36
|
-
return (str.ord<<8)+str.getbyte(1)
|
37
|
-
end
|
38
|
-
def str2uint3(str)
|
39
|
-
return nil if str.length==0
|
40
|
-
return (str.ord<<16)+(str.getbyte(1)<<8)+str.getbyte(2)
|
41
|
-
end</pre>
|
42
|
-
<pre>index[1].each{|j|
|
43
|
-
jj = j-index[1].first
|
44
|
-
sb = j*nlon+index[0].first
|
45
|
-
sb = sb-map[true,0..jj-1].count_false if jj>0
|
46
|
-
sb = sb*nbits_pack
|
47
|
-
eb = sb+mask[true,j].count_true*nbits_pack
|
48
|
-
if sb!=eb
|
49
|
-
var[mask[true,j].where,jj] = get_value(@sgm.file,@pos+8,sb,eb,nbits_pack,nstep)
|
50
|
-
end
|
51
|
-
}</pre>
|
52
|
-
<pre>sb = index[1].first*nlon*nbits_pack
|
53
|
-
eb = (index[1].end+1)*nlon*nbits_pack
|
54
|
-
var = get_value(@sgm.file,@pos+8,sb,eb,nbits_pack,nstep)
|
55
|
-
var.reshape!(nlon, var.length/nlon)
|
56
|
-
var = var[index[0],true]</pre>
|
57
|
-
<pre>eb = nlen*nbits_pack
|
58
|
-
var = get_value(@sgm.file,@pos+8,0,eb,nbits_pack,nstep)
|
59
|
-
var.reshape!(nlon,nlat)</pre>
|
60
|
-
<h1><a name="label-1" id="label-1">NumRu::Grib -- a class for Grib datasets</a></h1><!-- RDLabel: "NumRu::Grib ­­ a class for Grib datasets" -->
|
61
|
-
<h2><a name="label-2" id="label-2">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
|
62
|
-
<dl>
|
63
|
-
<dt><h4><a name="label-3" id="label-3"><code>Grib.new(<var>filename</var>, <var>mode</var>="<var>r</var>")</code></a></h4></dt><!-- RDLabel: "Grib.new" -->
|
64
|
-
<dd>
|
65
|
-
<p>make a new Grib object.</p>
|
66
|
-
<p>ARGUMENTS</p>
|
67
|
-
<ul>
|
68
|
-
<li>filename (String): name of the file to open</li>
|
69
|
-
<li>mode (String): IO mode. "r" (read only) or "w" (write only).</li>
|
70
|
-
</ul></dd>
|
71
|
-
<dt><h4><a name="label-4" id="label-4"><code>Grib.open(<var>filename</var>)</code></a></h4></dt><!-- RDLabel: "Grib.open" -->
|
72
|
-
<dd>
|
73
|
-
open a Grib file.</dd>
|
74
|
-
<dt><h4><a name="label-5" id="label-5"><code>Grib.create(<var>filename</var>)</code></a></h4></dt><!-- RDLabel: "Grib.create" -->
|
75
|
-
<dd>
|
76
|
-
create a Grib file.</dd>
|
77
|
-
<dt><h4><a name="label-6" id="label-6"><code>Grib.is_aGrib?(<var>filename</var>)</code></a></h4></dt><!-- RDLabel: "Grib.is_aGrib?" -->
|
78
|
-
<dd>
|
79
|
-
return true when file is a Grib dataset</dd>
|
80
|
-
</dl>
|
81
|
-
<h2><a name="label-7" id="label-7">Methods</a></h2><!-- RDLabel: "Methods" -->
|
82
|
-
<dl>
|
83
|
-
<dt><h4><a name="label-8" id="label-8"><code>close</code></a></h4></dt><!-- RDLabel: "close" -->
|
84
|
-
<dt><h4><a name="label-9" id="label-9"><code>parse</code></a></h4></dt><!-- RDLabel: "parse" -->
|
85
|
-
<dt><h4><a name="label-10" id="label-10"><code>path</code></a></h4></dt><!-- RDLabel: "path" -->
|
86
|
-
<dt><h4><a name="label-11" id="label-11"><code>var_names</code></a></h4></dt><!-- RDLabel: "var_names" -->
|
87
|
-
<dt><h4><a name="label-12" id="label-12"><code>var( <var>name</var> )</code></a></h4></dt><!-- RDLabel: "var" -->
|
88
|
-
<dt><h4><a name="label-13" id="label-13"><code>def_var( <var>name</var> )</code></a></h4></dt><!-- RDLabel: "def_var" -->
|
89
|
-
<dt><h4><a name="label-14" id="label-14"><code>enddef</code></a></h4></dt><!-- RDLabel: "enddef" -->
|
90
|
-
<dt><h4><a name="label-15" id="label-15"><code>write</code></a></h4></dt><!-- RDLabel: "write" -->
|
91
|
-
</dl>
|
92
|
-
<h1><a name="label-16" id="label-16">NumRu::GribDim</a></h1><!-- RDLabel: "NumRu::GribDim" -->
|
93
|
-
<h2><a name="label-17" id="label-17">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
|
94
|
-
<dl>
|
95
|
-
<dt><h4><a name="label-18" id="label-18"><code>new( <var>vat</var>, <var>name</var>, <var>length</var> )</code></a></h4></dt><!-- RDLabel: "new" -->
|
96
|
-
</dl>
|
97
|
-
<h2><a name="label-19" id="label-19">Methods</a></h2><!-- RDLabel: "Methods" -->
|
98
|
-
<dl>
|
99
|
-
<dt><h4><a name="label-20" id="label-20"><code>var</code></a></h4></dt><!-- RDLabel: "var" -->
|
100
|
-
<dt><h4><a name="label-21" id="label-21"><code>length</code></a></h4></dt><!-- RDLabel: "length" -->
|
101
|
-
<dt><h4><a name="label-22" id="label-22"><code>name</code></a></h4></dt><!-- RDLabel: "name" -->
|
102
|
-
<dt><h4><a name="label-23" id="label-23"><code>typecode</code></a></h4></dt><!-- RDLabel: "typecode" -->
|
103
|
-
<dt><h4><a name="label-24" id="label-24"><code>get</code></a></h4></dt><!-- RDLabel: "get" -->
|
104
|
-
<dt><h4><a name="label-25" id="label-25"><code>[<var>indices</var>]</code></a></h4></dt><!-- RDLabel: "[]" -->
|
105
|
-
<dt><h4><a name="label-26" id="label-26"><code>put_att(<var>key</var>,<var>val</var>)</code></a></h4></dt><!-- RDLabel: "put_att" -->
|
106
|
-
<dt><h4><a name="label-27" id="label-27"><code>set_att(<var>key</var>,<var>val</var>)</code></a></h4></dt><!-- RDLabel: "set_att" -->
|
107
|
-
<dt><h4><a name="label-28" id="label-28"><code>att(<var>key</var>)</code></a></h4></dt><!-- RDLabel: "att" -->
|
108
|
-
<dt><h4><a name="label-29" id="label-29"><code>att_names</code></a></h4></dt><!-- RDLabel: "att_names" -->
|
109
|
-
<dt><h4><a name="label-30" id="label-30"><code>inspect</code></a></h4></dt><!-- RDLabel: "inspect" -->
|
110
|
-
</dl>
|
111
|
-
<h1><a name="label-31" id="label-31">NumRu::GribVar</a></h1><!-- RDLabel: "NumRu::GribVar" -->
|
112
|
-
<h2><a name="label-32" id="label-32">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
|
113
|
-
<dl>
|
114
|
-
<dt><h4><a name="label-33" id="label-33"><code>new( <var>file</var>, <var>name</var>, <var>obj</var>, <var>dims</var> )</code></a></h4></dt><!-- RDLabel: "new" -->
|
115
|
-
</dl>
|
116
|
-
<h2><a name="label-34" id="label-34">Methods</a></h2><!-- RDLabel: "Methods" -->
|
117
|
-
<dl>
|
118
|
-
<dt><h4><a name="label-35" id="label-35"><code>file</code></a></h4></dt><!-- RDLabel: "file" -->
|
119
|
-
<dt><h4><a name="label-36" id="label-36"><code>name</code></a></h4></dt><!-- RDLabel: "name" -->
|
120
|
-
<dt><h4><a name="label-37" id="label-37"><code>rank</code></a></h4></dt><!-- RDLabel: "rank" -->
|
121
|
-
<dt><h4><a name="label-38" id="label-38"><code>total</code></a></h4></dt><!-- RDLabel: "total" -->
|
122
|
-
<dt><h4><a name="label-39" id="label-39"><code>set_var</code></a></h4></dt><!-- RDLabel: "set_var" -->
|
123
|
-
<dt><h4><a name="label-40" id="label-40"><code>set_miss</code></a></h4></dt><!-- RDLabel: "set_miss" -->
|
124
|
-
<dt><h4><a name="label-41" id="label-41"><code>dim_names</code></a></h4></dt><!-- RDLabel: "dim_names" -->
|
125
|
-
<dt><h4><a name="label-42" id="label-42"><code>dim( <var>index</var> )</code></a></h4></dt><!-- RDLabel: "dim" -->
|
126
|
-
<dt><h4><a name="label-43" id="label-43"><code>ndims</code></a></h4></dt><!-- RDLabel: "ndims" -->
|
127
|
-
<dt><h4><a name="label-44" id="label-44"><code>def_dim(<var>name</var>,<var>index</var>)</code></a></h4></dt><!-- RDLabel: "def_dim" -->
|
128
|
-
<dt><h4><a name="label-45" id="label-45"><code>put_att( <var>key</var>, <var>value</var> )</code></a></h4></dt><!-- RDLabel: "put_att" -->
|
129
|
-
<dt><h4><a name="label-46" id="label-46"><code>set_att( <var>key</var>, <var>value</var> )</code></a></h4></dt><!-- RDLabel: "set_att" -->
|
130
|
-
<dt><h4><a name="label-47" id="label-47"><code>att( <var>key</var> )</code></a></h4></dt><!-- RDLabel: "att" -->
|
131
|
-
<dt><h4><a name="label-48" id="label-48"><code>att_names</code></a></h4></dt><!-- RDLabel: "att_names" -->
|
132
|
-
<dt><h4><a name="label-49" id="label-49"><code>shape</code></a></h4></dt><!-- RDLabel: "shape" -->
|
133
|
-
<dt><h4><a name="label-50" id="label-50"><code>typecode</code></a></h4></dt><!-- RDLabel: "typecode" -->
|
134
|
-
<dt><h4><a name="label-51" id="label-51"><code>get( <var>indics</var> )</code></a></h4></dt><!-- RDLabel: "get" -->
|
135
|
-
<dt><h4><a name="label-52" id="label-52"><code>[ <var>indics</var> ]</code></a></h4></dt><!-- RDLabel: "[]" -->
|
136
|
-
<dt><h4><a name="label-53" id="label-53"><code>inspect</code></a></h4></dt><!-- RDLabel: "inspect" -->
|
137
|
-
</dl>
|
138
|
-
<pre>if pds1.time_range!=pds2.time_range
|
139
|
-
warn("time range is not same: #{pds1.time_range} != #{pds2.time_range}")
|
140
|
-
return true
|
141
|
-
end</pre>
|
142
|
-
|
143
|
-
</body>
|
144
|
-
</html>
|
data/doc/grid.html
DELETED
@@ -1,212 +0,0 @@
|
|
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/grid.rb</title>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<h1><a name="label-0" id="label-0">class NumRU::Grid</a></h1><!-- RDLabel: "class NumRU::Grid" -->
|
11
|
-
<p>A class to handle discretized grids of physical quantities.</p>
|
12
|
-
<h2><a name="label-1" id="label-1">Class Methods</a></h2><!-- RDLabel: "Class Methods" -->
|
13
|
-
<dl>
|
14
|
-
<dt><h4><a name="label-2" id="label-2"><code>Grid.new( *<var>axes</var> )</code></a></h4></dt><!-- RDLabel: "Grid.new" -->
|
15
|
-
<dd>
|
16
|
-
<p>Constructor.</p>
|
17
|
-
<p>RETURN VALUE</p>
|
18
|
-
<ul>
|
19
|
-
<li>a Grid</li>
|
20
|
-
</ul></dd>
|
21
|
-
</dl>
|
22
|
-
<h2><a name="label-3" id="label-3">Instance Methods</a></h2><!-- RDLabel: "Instance Methods" -->
|
23
|
-
<dl>
|
24
|
-
<dt><h4><a name="label-4" id="label-4"><code>axnames</code></a></h4></dt><!-- RDLabel: "axnames" -->
|
25
|
-
<dd>
|
26
|
-
<p>Returns the names of the axes</p>
|
27
|
-
<p>RETURN VALUE</p>
|
28
|
-
<ul>
|
29
|
-
<li>an Array of String</li>
|
30
|
-
</ul></dd>
|
31
|
-
<dt><h4><a name="label-5" id="label-5"><code>lost_axes</code></a></h4></dt><!-- RDLabel: "lost_axes" -->
|
32
|
-
<dd>
|
33
|
-
<p>Returns info on axes eliminated during operations.</p>
|
34
|
-
<p>Useful for annotation in plots, for example (See the code of GGraph
|
35
|
-
for an application).</p>
|
36
|
-
<p>RETURN VALUE</p>
|
37
|
-
<ul>
|
38
|
-
<li>an Array of String</li>
|
39
|
-
</ul></dd>
|
40
|
-
<dt><h4><a name="label-6" id="label-6"><code>axis(<var>dim_or_dimname</var>)</code></a></h4></dt><!-- RDLabel: "axis" -->
|
41
|
-
<dd>
|
42
|
-
<p>Returns an Axis</p>
|
43
|
-
<p>ARGUMENTS</p>
|
44
|
-
<ul>
|
45
|
-
<li>dim_or_dimname (String or Integer) to specify an axis.</li>
|
46
|
-
</ul>
|
47
|
-
<p>RETURN VALUE</p>
|
48
|
-
<ul>
|
49
|
-
<li>an Axis</li>
|
50
|
-
</ul></dd>
|
51
|
-
<dt><h4><a name="label-7" id="label-7"><code>dim_index(<var>dimname</var>)</code></a></h4></dt><!-- RDLabel: "dim_index" -->
|
52
|
-
<dd>
|
53
|
-
<p>Returns the integer id (count from zero) of the dimension</p>
|
54
|
-
<p>ARGUMENT</p>
|
55
|
-
<ul>
|
56
|
-
<li>dimname (String or Integer) : this method is trivial if is is an integer</li>
|
57
|
-
</ul>
|
58
|
-
<p>RETURN VALUE</p>
|
59
|
-
<ul>
|
60
|
-
<li>an Integer</li>
|
61
|
-
</ul></dd>
|
62
|
-
<dt><h4><a name="label-8" id="label-8"><code>coord_dim_indices(<var>coordname</var>)</code></a></h4></dt><!-- RDLabel: "coord_dim_indices" -->
|
63
|
-
<dd>
|
64
|
-
<p>Coordinate name --> dimension indices.</p>
|
65
|
-
<p>ARGUMENT</p>
|
66
|
-
<ul>
|
67
|
-
<li>coordname (String) : Name of a coordinate</li>
|
68
|
-
</ul>
|
69
|
-
<p>RETURN VALUE</p>
|
70
|
-
<ul>
|
71
|
-
<li>Array of Integer or nil --
|
72
|
-
If the coordinate is present it is an Array
|
73
|
-
containing dimension indices (If the coordinate is 1D,
|
74
|
-
the lengthof the array is 1.)</li>
|
75
|
-
</ul></dd>
|
76
|
-
<dt><h4><a name="label-9" id="label-9"><code>set_axis(<var>dim_or_dimname</var>,<var>ax</var>)</code></a></h4></dt><!-- RDLabel: "set_axis" -->
|
77
|
-
<dd>
|
78
|
-
<p>Sets an axis.</p>
|
79
|
-
<p>ARGUMENTS</p>
|
80
|
-
<ul>
|
81
|
-
<li>dim_or_dimname (String or Integer) to specify an axis.</li>
|
82
|
-
<li>ax (Axis) the axis</li>
|
83
|
-
</ul>
|
84
|
-
<p>RETURN VALUE</p>
|
85
|
-
<ul>
|
86
|
-
<li>self</li>
|
87
|
-
</ul></dd>
|
88
|
-
<dt><h4><a name="label-10" id="label-10"><code>set_lost_axes( <var>lost</var> )</code></a></h4></dt><!-- RDLabel: "set_lost_axes" -->
|
89
|
-
<dd>
|
90
|
-
<p>Sets info on axes eliminated.</p>
|
91
|
-
<p>RETURN VALUE</p>
|
92
|
-
<ul>
|
93
|
-
<li>self</li>
|
94
|
-
</ul></dd>
|
95
|
-
<dt><h4><a name="label-11" id="label-11"><code>add_lost_axes( <var>lost</var> )</code></a></h4></dt><!-- RDLabel: "add_lost_axes" -->
|
96
|
-
<dd>
|
97
|
-
<p>Adds info on axes eliminated to existing ones.</p>
|
98
|
-
<p>RETURN VALUE</p>
|
99
|
-
<ul>
|
100
|
-
<li>self</li>
|
101
|
-
</ul></dd>
|
102
|
-
<dt><h4><a name="label-12" id="label-12"><code>delete_axes( <var>at</var>, <var>deleted_by</var>=<var>nil</var> )</code></a></h4></dt><!-- RDLabel: "delete_axes" -->
|
103
|
-
<dd>
|
104
|
-
<p>Delete an axis.</p>
|
105
|
-
<p>ARGUMENTS</p>
|
106
|
-
<ul>
|
107
|
-
<li>at (String or Integer) to specify an axis.</li>
|
108
|
-
<li>deleted_by (String or nil) if non-nil, it is written in
|
109
|
-
the internal lost-axis info. Best if you put the name of the
|
110
|
-
method, in which this method is called.</li>
|
111
|
-
</ul>
|
112
|
-
<p>RETURN VALUE</p>
|
113
|
-
<ul>
|
114
|
-
<li>a Grid</li>
|
115
|
-
</ul></dd>
|
116
|
-
<dt><h4><a name="label-13" id="label-13"><code>copy</code></a></h4></dt><!-- RDLabel: "copy" -->
|
117
|
-
<dd>
|
118
|
-
<p>Makes a deep clone onto memory.</p>
|
119
|
-
<p>RETURN VALUE</p>
|
120
|
-
<ul>
|
121
|
-
<li>a Grid</li>
|
122
|
-
</ul></dd>
|
123
|
-
<dt><h4><a name="label-14" id="label-14"><code>merge(<var>other</var>)</code></a></h4></dt><!-- RDLabel: "merge" -->
|
124
|
-
<dd>
|
125
|
-
<p>merge two grids by basically using copies of self's axes but
|
126
|
-
using the other's if the length in self is 1 and
|
127
|
-
the length in the other is longer</p>
|
128
|
-
<p>ARGUMENTS</p>
|
129
|
-
<ul>
|
130
|
-
<li>other (Grid)</li>
|
131
|
-
</ul>
|
132
|
-
<p>RETURN VALUE</p>
|
133
|
-
<ul>
|
134
|
-
<li>a Grid</li>
|
135
|
-
</ul></dd>
|
136
|
-
<dt><h4><a name="label-15" id="label-15"><code>shape</code></a></h4></dt><!-- RDLabel: "shape" -->
|
137
|
-
<dd>
|
138
|
-
<p>Returns the shape of self.</p>
|
139
|
-
<p>RETURN VALUE</p>
|
140
|
-
<ul>
|
141
|
-
<li>an Array of Integer</li>
|
142
|
-
</ul></dd>
|
143
|
-
<dt><h4><a name="label-16" id="label-16"><code>[*<var>slicer</var>]</code></a></h4></dt><!-- RDLabel: "[]" -->
|
144
|
-
<dd>
|
145
|
-
<p>Returns a subset.</p>
|
146
|
-
<p>ARGUMENTS</p>
|
147
|
-
<ul>
|
148
|
-
<li>Same as those for NArray#[], NetCDFVar#[], etc.</li>
|
149
|
-
</ul>
|
150
|
-
<p>RETURN VALUE</p>
|
151
|
-
<ul>
|
152
|
-
<li>a Grid</li>
|
153
|
-
</ul></dd>
|
154
|
-
<dt><h4><a name="label-17" id="label-17"><code>cut(*<var>args</var>)</code></a></h4></dt><!-- RDLabel: "cut" -->
|
155
|
-
<dd>
|
156
|
-
<p>Similar to <a href="#label-16">[]</a>, but the subset is specified by physical coordinate.</p>
|
157
|
-
<p>ARGUMENTS</p>
|
158
|
-
<ul>
|
159
|
-
<li>pattern 1: similar to those for <a href="#label-16">[]</a>, where the first
|
160
|
-
argument specifies a subset for the first dimension.</li>
|
161
|
-
<li>pattern 2: by a Hash, in which keys are axis names.</li>
|
162
|
-
</ul>
|
163
|
-
<p>EXAMPLES</p>
|
164
|
-
<ul>
|
165
|
-
<li><p>Pattern 1</p>
|
166
|
-
<pre>gphys.cut(135.5,0..20.5,false)</pre></li>
|
167
|
-
<li><p>Pattern 2</p>
|
168
|
-
<pre>gphys.cut({'lon'=>135.5,'lat'=>0..20})</pre></li>
|
169
|
-
</ul>
|
170
|
-
<p>RETURN VALUE</p>
|
171
|
-
<ul>
|
172
|
-
<li>an Array : [a Grid, slicer], where slicer is an array
|
173
|
-
to be used to make a subset of an corresponding varray
|
174
|
-
(to be used in GPhys#cut).</li>
|
175
|
-
</ul></dd>
|
176
|
-
<dt><h4><a name="label-18" id="label-18"><code>cut_rank_conserving(*<var>args</var>)</code></a></h4></dt><!-- RDLabel: "cut_rank_conserving" -->
|
177
|
-
<dd>
|
178
|
-
Similar to <a href="#label-17">cut</a>, but the rank is conserved by not eliminating
|
179
|
-
any dimension (whose length could be one).</dd>
|
180
|
-
<dt><h4><a name="label-19" id="label-19"><code>cut_assoccoord(<var>hasharg</var>)</code></a></h4></dt><!-- RDLabel: "cut_assoccoord" -->
|
181
|
-
<dd>
|
182
|
-
Cut with respect to the asscoated coordinates. Similar to cut,
|
183
|
-
when the argeuemnt is a Hash, but hash keys are the names of the
|
184
|
-
asscoated coordinates.</dd>
|
185
|
-
<dt><h4><a name="label-20" id="label-20"><code>change_axis(<var>dim</var>, <var>axis</var>)</code></a></h4></dt><!-- RDLabel: "change_axis" -->
|
186
|
-
<dd>
|
187
|
-
<p>Replaces an axis. (Returns a new object)</p>
|
188
|
-
<p>ARGUMENTS</p>
|
189
|
-
<ul>
|
190
|
-
<li>dim_or_dimname (String or Integer) to specify an axis.</li>
|
191
|
-
<li>axis (Axis)</li>
|
192
|
-
</ul>
|
193
|
-
<p>RETURN VALUE</p>
|
194
|
-
<ul>
|
195
|
-
<li>a Grid</li>
|
196
|
-
</ul></dd>
|
197
|
-
<dt><h4><a name="label-21" id="label-21"><code>transpose( *<var>dims</var> )</code></a></h4></dt><!-- RDLabel: "transpose" -->
|
198
|
-
<dd>
|
199
|
-
<p>Transpose.</p>
|
200
|
-
<p>ARGUMENTS</p>
|
201
|
-
<ul>
|
202
|
-
<li>dims (integers) : for example, [1,0] to transpose a 2D object.
|
203
|
-
For 3D objects, [1,0,2], [2,1,0], etc.etc.</li>
|
204
|
-
</ul>
|
205
|
-
<p>RETURN VALUE</p>
|
206
|
-
<ul>
|
207
|
-
<li>a Grid</li>
|
208
|
-
</ul></dd>
|
209
|
-
</dl>
|
210
|
-
|
211
|
-
</body>
|
212
|
-
</html>
|
data/doc/index.html
DELETED
@@ -1,133 +0,0 @@
|
|
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>index.rd</title>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<h1><a name="label-0" id="label-0">Reference manuals of the GPhys library</a></h1><!-- RDLabel: "Reference manuals of the GPhys library" -->
|
11
|
-
<h2><a name="label-1" id="label-1">Index</a></h2><!-- RDLabel: "Index" -->
|
12
|
-
<ul>
|
13
|
-
<li><a href="#label-2">GPhys and its components</a>
|
14
|
-
<ul>
|
15
|
-
<li><a href="gphys.html">class NumRu::GPhys</a> : Core part of the GPhys class</li>
|
16
|
-
</ul></li>
|
17
|
-
<li><a href="#label-7">Applications distributed with GPhys</a>
|
18
|
-
<ul>
|
19
|
-
<li><a href="ggraph.html">module NumRu::GGraph</a> : A graphic library using GPhys.</li>
|
20
|
-
</ul></li>
|
21
|
-
<li><a href="#label-8">Application Commands</a></li>
|
22
|
-
</ul>
|
23
|
-
<p>---------------------------------------------------------------------</p>
|
24
|
-
<h2><a name="label-2" id="label-2">GPhys and its components</a></h2><!-- RDLabel: "GPhys and its components" -->
|
25
|
-
<h4><a name="label-3" id="label-3">GPhys Core Part</a></h4><!-- RDLabel: "GPhys Core Part" -->
|
26
|
-
<p>A GPhys object has the following structure:</p>
|
27
|
-
<pre>-
|
28
|
-
has 1
|
29
|
-
a GPhys --------- array-like data (VArray)
|
30
|
-
| has 1
|
31
|
-
--------- grid (Grid)
|
32
|
-
| has rank
|
33
|
-
------------ axis (Axis)
|
34
|
-
| has 1
|
35
|
-
-------- 1D position data (VArray)
|
36
|
-
| has 0..
|
37
|
-
-------- ancillary data (VArray)</pre>
|
38
|
-
<p>That is, a GPhys object consists of data (whose class is VArray) and
|
39
|
-
grid (whose class is Grid). The latter consists of axes (whose class is
|
40
|
-
Axis), which consist of VArray objects (such as ones that have
|
41
|
-
1-dimensional grid-point position data). To use GPhys, it is
|
42
|
-
useful to know these four classes.</p>
|
43
|
-
<ul>
|
44
|
-
<li><a href="varray.html">class NumRu::VArray</a> :
|
45
|
-
Virtual Array class, which holds multi-dimensional data of various
|
46
|
-
format and media (on memory or in file).
|
47
|
-
<ul>
|
48
|
-
<li><a href="varraycomposite.html">class NumRu::VArrayComposite</a> :
|
49
|
-
Subclass of VArray to bundle multiple VArrays by "tiling".</li>
|
50
|
-
</ul></li>
|
51
|
-
<li><a href="axis.html">class NumRu::Axis</a> : A class to represent a discretized physical coordinate.</li>
|
52
|
-
<li><a href="grid.html">class NumRu::Grid</a> : A class to represent discretized grids of physical quantities.</li>
|
53
|
-
<li><a href="gphys.html">class NumRu::GPhys</a> : Core part of the GPhys class</li>
|
54
|
-
</ul>
|
55
|
-
<h4><a name="label-4" id="label-4">Miscellaneous Extensions of GPhys</a></h4><!-- RDLabel: "Miscellaneous Extensions of GPhys" -->
|
56
|
-
<ul>
|
57
|
-
<li><a href="coordtransform.html">coordinate transformation</a> :
|
58
|
-
Extension of the NumRu::GPhys class for coordinate transformation.</li>
|
59
|
-
<li><a href="gphys_fft.html">FFT</a> :
|
60
|
-
Extension of the NumRu::GPhys class
|
61
|
-
for the Fast Fourier Transformation and its applications</li>
|
62
|
-
<li><a href="derivative/index.html">module NumRu::GPhys::Derivative</a> :
|
63
|
-
Module functions to make differentiation of GPhys objects.</li>
|
64
|
-
<li><a href="ep_flux/index.html">module NumRu::GPhys::EP_Flux</a> :
|
65
|
-
Module functions to derive the Eliassen-Palm flux and related
|
66
|
-
quantities (such as the residual circulation and its mass stream function).</li>
|
67
|
-
<li><a href="interpolate/index.html">intepolation</a> : Interpolation library</li>
|
68
|
-
<li><a href="ganalysis_met/index.html">GAnalysis::Met</a> : Meteorological analysis library</li>
|
69
|
-
</ul>
|
70
|
-
<h4><a name="label-5" id="label-5">Miscellaneous Dependent Libraries Distributed with GPhys</a></h4><!-- RDLabel: "Miscellaneous Dependent Libraries Distributed with GPhys" -->
|
71
|
-
<ul>
|
72
|
-
<li><a href="unumeric.html">class NumRu::UNumeric</a> :
|
73
|
-
Numeric with units (combination of Numeric and Units)</li>
|
74
|
-
<li><a href="derivative/index.html">module NumRu::Derivative</a> :
|
75
|
-
Module functions to make differentiation using NArray.</li>
|
76
|
-
<li><!-- Reference, RDLabel "class NumRu::SubsetMapping" doesn't exist --><em class="label-not-found">class NumRu::SubsetMapping</em><!-- Reference end --> : Sorry, yet to be written.</li>
|
77
|
-
<li><a href="attribute.html">class NumRu::Attribute</a> : A Hash class compatible with NetCDF attributes.</li>
|
78
|
-
<li><a href="coordmapping.html">class NumRu::CoordMapping</a> :
|
79
|
-
<ul>
|
80
|
-
<li><a href="coordmapping.html">class NumRu::LinearCoordMapping</a> :</li>
|
81
|
-
</ul></li>
|
82
|
-
<li><a href="grads_gridded.html">class NumRu::GrADS_Gridded</a> :
|
83
|
-
Class to handle GrADS data.</li>
|
84
|
-
<li><a href="grib.html">class NumRu::Grib</a> :
|
85
|
-
a class for Grib datasets.</li>
|
86
|
-
<li><a href="htdir.html">class NumRu::GDir::HtDir</a> :
|
87
|
-
A class to treat the URL of a "directory" as a directory (used in
|
88
|
-
GDir).</li>
|
89
|
-
</ul>
|
90
|
-
<h4><a name="label-6" id="label-6">External File Handlers of GPhys</a></h4><!-- RDLabel: "External File Handlers of GPhys" -->
|
91
|
-
<ul>
|
92
|
-
<li><a href="gphys_io.html">module NumRu::GPhys::IO</a> :
|
93
|
-
GPhys file IO module for all file types.</li>
|
94
|
-
<li><a href="gphys_netcdf_io.html">module NumRu::GPhys::NetCDF_IO</a> :
|
95
|
-
NetCDF data input/output.</li>
|
96
|
-
<li><a href="netcdf_convention.html">module NumRu::NetCDF_Conventions,
|
97
|
-
module NumRu::NetCDF_Convention_Users_Guide etc.
|
98
|
-
</a> :
|
99
|
-
NetCDF convention handler.</li>
|
100
|
-
<li><a href="gphys_grads_io.html">module NumRu::GPhys::GrADS_IO</a> :
|
101
|
-
GrADS data input/output.</li>
|
102
|
-
<li><a href="gphys_grib_io.html">module NumRu::GPhys::Grib_IO</a> :
|
103
|
-
Grib data IO.</li>
|
104
|
-
</ul>
|
105
|
-
<h2><a name="label-7" id="label-7">Applications distributed with GPhys</a></h2><!-- RDLabel: "Applications distributed with GPhys" -->
|
106
|
-
<p>To use the following, you have to <var>require</var> explicitly. </p>
|
107
|
-
<ul>
|
108
|
-
<li><a href="ggraph.html">module NumRu::GGraph</a> :
|
109
|
-
A graphic library using GPhys.</li>
|
110
|
-
<li><a href="gdir.html">class NumRu::GDir</a> :
|
111
|
-
A class to represent diretories and data files for GPhys.</li>
|
112
|
-
<li><a href="gdir_connect_ftp-like.html">irb start-up program gdir_connect_ftp-like</a> A library to be required
|
113
|
-
to interactively connect with a <a href="gdir_server.html">gdir_server</a>.</li>
|
114
|
-
</ul>
|
115
|
-
<h2><a name="label-8" id="label-8">Application Commands</a></h2><!-- RDLabel: "Application Commands" -->
|
116
|
-
<ul>
|
117
|
-
<li><a href="grads2nc_with_gphys.html">grads2nc_with_gphys</a> file converter
|
118
|
-
from the GrADS format to NetCDF</li>
|
119
|
-
<li><a href="gdir_server.html">gdir_server</a> A dRuby server with a GDir
|
120
|
-
at the front end.</li>
|
121
|
-
<li><a href="gdir_client.html">gdir_client</a> : A client of gdir_server
|
122
|
-
using irb with <a href="gdir_connect_ftp-like.html">gdir_connect_ftp-like</a></li>
|
123
|
-
<li><a href="gpcat.html">gpcat</a> Read a variable in multiple NetCDF files, concatenate and write them to a single netcdf file. </li>
|
124
|
-
<li><a href="gpcut.html">gpcut</a> extract, slicing and thinning a GPhys variable</li>
|
125
|
-
<li><a href="gplist.html">gplist</a> print out variables and their dimnsions</li>
|
126
|
-
<li><a href="gpmath.html">gpmath</a> operate a math function to a GPhys variable</li>
|
127
|
-
<li><a href="gpmaxmin.html">gpmaxmin</a> prints maximum and minimum values of a GPhys variable</li>
|
128
|
-
<li><a href="gpprint.html">gpprint</a> prints the values of a GPhys variable </li>
|
129
|
-
<li><a href="gpview.html">gpview</a> visualizer (2D, 1D)</li>
|
130
|
-
</ul>
|
131
|
-
|
132
|
-
</body>
|
133
|
-
</html>
|
data/doc/index.rd
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
|
3
|
-
=Reference manuals of the GPhys library
|
4
|
-
|
5
|
-
==Index
|
6
|
-
* ((<GPhys and its components>))
|
7
|
-
* ((<class NumRu::GPhys|URL:gphys.html>)) : Core part of the GPhys class
|
8
|
-
* ((<Applications distributed with GPhys>))
|
9
|
-
* ((<module NumRu::GGraph|URL:ggraph.html>)) : A graphic library using GPhys.
|
10
|
-
* ((<Application Commands>))
|
11
|
-
|
12
|
-
---------------------------------------------------------------------
|
13
|
-
|
14
|
-
==GPhys and its components
|
15
|
-
|
16
|
-
====GPhys Core Part
|
17
|
-
|
18
|
-
A GPhys object has the following structure:
|
19
|
-
|
20
|
-
-
|
21
|
-
has 1
|
22
|
-
a GPhys --------- array-like data (VArray)
|
23
|
-
| has 1
|
24
|
-
--------- grid (Grid)
|
25
|
-
| has rank
|
26
|
-
------------ axis (Axis)
|
27
|
-
| has 1
|
28
|
-
-------- 1D position data (VArray)
|
29
|
-
| has 0..
|
30
|
-
-------- ancillary data (VArray)
|
31
|
-
|
32
|
-
That is, a GPhys object consists of data (whose class is VArray) and
|
33
|
-
grid (whose class is Grid). The latter consists of axes (whose class is
|
34
|
-
Axis), which consist of VArray objects (such as ones that have
|
35
|
-
1-dimensional grid-point position data). To use GPhys, it is
|
36
|
-
useful to know these four classes.
|
37
|
-
|
38
|
-
* ((<class NumRu::VArray|URL:varray.html>)) :
|
39
|
-
Virtual Array class, which holds multi-dimensional data of various
|
40
|
-
format and media (on memory or in file).
|
41
|
-
|
42
|
-
* ((<class NumRu::VArrayComposite|URL:varraycomposite.html>)) :
|
43
|
-
Subclass of VArray to bundle multiple VArrays by "tiling".
|
44
|
-
|
45
|
-
* ((<class NumRu::Axis|URL:axis.html>)) : A class to represent a discretized physical coordinate.
|
46
|
-
* ((<class NumRu::Grid|URL:grid.html>)) : A class to represent discretized grids of physical quantities.
|
47
|
-
* ((<class NumRu::GPhys|URL:gphys.html>)) : Core part of the GPhys class
|
48
|
-
|
49
|
-
====Miscellaneous Extensions of GPhys
|
50
|
-
|
51
|
-
* ((<coordinate transformation|URL:coordtransform.html>)) :
|
52
|
-
Extension of the NumRu::GPhys class for coordinate transformation.
|
53
|
-
* ((<FFT|URL:gphys_fft.html>)) :
|
54
|
-
Extension of the NumRu::GPhys class
|
55
|
-
for the Fast Fourier Transformation and its applications
|
56
|
-
* ((<module NumRu::GPhys::Derivative|URL:derivative/index.html>)) :
|
57
|
-
Module functions to make differentiation of GPhys objects.
|
58
|
-
* ((<module NumRu::GPhys::EP_Flux|URL:ep_flux/index.html>)) :
|
59
|
-
Module functions to derive the Eliassen-Palm flux and related
|
60
|
-
quantities (such as the residual circulation and its mass stream function).
|
61
|
-
* ((<intepolation|URL:interpolate/index.html>)) : Interpolation library
|
62
|
-
* ((<GAnalysis::Met|URL:ganalysis_met/index.html>)) : Meteorological analysis library
|
63
|
-
|
64
|
-
====Miscellaneous Dependent Libraries Distributed with GPhys
|
65
|
-
|
66
|
-
* ((<class NumRu::UNumeric|URL:unumeric.html>)) :
|
67
|
-
Numeric with units (combination of Numeric and Units)
|
68
|
-
* ((<module NumRu::Derivative|URL:derivative/index.html>)) :
|
69
|
-
Module functions to make differentiation using NArray.
|
70
|
-
* ((<class NumRu::SubsetMapping>)) : Sorry, yet to be written.
|
71
|
-
* ((<class NumRu::Attribute|URL:attribute.html>)) : A Hash class compatible with NetCDF attributes.
|
72
|
-
* ((<class NumRu::CoordMapping|URL:coordmapping.html>)) :
|
73
|
-
* ((<class NumRu::LinearCoordMapping|URL:coordmapping.html>)) :
|
74
|
-
* ((<class NumRu::GrADS_Gridded|URL:grads_gridded.html>)) :
|
75
|
-
Class to handle GrADS data.
|
76
|
-
* ((<class NumRu::Grib|URL:grib.html>)) :
|
77
|
-
a class for Grib datasets.
|
78
|
-
* ((<class NumRu::GDir::HtDir|URL:htdir.html>)) :
|
79
|
-
A class to treat the URL of a "directory" as a directory (used in
|
80
|
-
GDir).
|
81
|
-
|
82
|
-
====External File Handlers of GPhys
|
83
|
-
|
84
|
-
* ((<module NumRu::GPhys::IO|URL:gphys_io.html>)) :
|
85
|
-
GPhys file IO module for all file types.
|
86
|
-
* ((<module NumRu::GPhys::NetCDF_IO|URL:gphys_netcdf_io.html>)) :
|
87
|
-
NetCDF data input/output.
|
88
|
-
* ((<module NumRu::NetCDF_Conventions,
|
89
|
-
module NumRu::NetCDF_Convention_Users_Guide etc.
|
90
|
-
|URL:netcdf_convention.html>)) :
|
91
|
-
NetCDF convention handler.
|
92
|
-
* ((<module NumRu::GPhys::GrADS_IO|URL:gphys_grads_io.html>)) :
|
93
|
-
GrADS data input/output.
|
94
|
-
* ((<module NumRu::GPhys::Grib_IO|URL:gphys_grib_io.html>)) :
|
95
|
-
Grib data IO.
|
96
|
-
|
97
|
-
==Applications distributed with GPhys
|
98
|
-
|
99
|
-
To use the following, you have to ((|require|)) explicitly.
|
100
|
-
|
101
|
-
* ((<module NumRu::GGraph|URL:ggraph.html>)) :
|
102
|
-
A graphic library using GPhys.
|
103
|
-
|
104
|
-
* ((<class NumRu::GDir|URL:gdir.html>)) :
|
105
|
-
A class to represent diretories and data files for GPhys.
|
106
|
-
|
107
|
-
* ((<irb start-up program gdir_connect_ftp-like|URL:gdir_connect_ftp-like.html>)) A library to be required
|
108
|
-
to interactively connect with a ((<gdir_server|URL:gdir_server.html>)).
|
109
|
-
|
110
|
-
==Application Commands
|
111
|
-
|
112
|
-
* ((<grads2nc_with_gphys|URL:grads2nc_with_gphys.html>)) file converter
|
113
|
-
from the GrADS format to NetCDF
|
114
|
-
* ((<gdir_server|URL:gdir_server.html>)) A dRuby server with a GDir
|
115
|
-
at the front end.
|
116
|
-
* ((<gdir_client|URL:gdir_client.html>)) : A client of gdir_server
|
117
|
-
using irb with ((<gdir_connect_ftp-like|URL:gdir_connect_ftp-like.html>))
|
118
|
-
|
119
|
-
* ((<gpcat|URL:gpcat.html>)) Read a variable in multiple NetCDF files, concatenate and write them to a single netcdf file.
|
120
|
-
* ((<gpcut|URL:gpcut.html>)) extract, slicing and thinning a GPhys variable
|
121
|
-
* ((<gplist|URL:gplist.html>)) print out variables and their dimnsions
|
122
|
-
* ((<gpmath|URL:gpmath.html>)) operate a math function to a GPhys variable
|
123
|
-
* ((<gpmaxmin|URL:gpmaxmin.html>)) prints maximum and minimum values of a GPhys variable
|
124
|
-
* ((<gpprint|URL:gpprint.html>)) prints the values of a GPhys variable
|
125
|
-
* ((<gpview|URL:gpview.html>)) visualizer (2D, 1D)
|
126
|
-
|
127
|
-
=end
|