gentooboontoo-gphys 0.6.1.3

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