gphys 1.1.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (369) hide show
  1. data/.gitignore +17 -0
  2. data/ChangeLog +221 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +18 -30
  5. data/README +23 -26
  6. data/README.md +29 -0
  7. data/Rakefile +1 -56
  8. data/bin/gpaop +2 -1
  9. data/bin/gpcut +3 -2
  10. data/bin/gpedit +6 -2
  11. data/bin/gpmath +3 -2
  12. data/bin/gpmaxmin +3 -2
  13. data/bin/gpprint +2 -1
  14. data/bin/gpvect +28 -5
  15. data/bin/gpview +43 -5
  16. data/extconf.rb +5 -6
  17. data/gphys.gemspec +34 -0
  18. data/interpo.c +63 -24
  19. data/lib/gphys.rb +2 -0
  20. data/lib/numru/dclext.rb +2636 -0
  21. data/lib/numru/derivative.rb +53 -12
  22. data/lib/numru/ganalysis/eof.rb +4 -0
  23. data/lib/numru/ganalysis/histogram.rb +73 -5
  24. data/lib/numru/ganalysis/met.rb +163 -2
  25. data/lib/numru/ganalysis/planet.rb +230 -20
  26. data/lib/numru/ggraph.rb +147 -2247
  27. data/lib/numru/gphys/assoccoords.rb +19 -3
  28. data/lib/numru/gphys/axis.rb +1 -1
  29. data/lib/numru/gphys/coordmapping.rb +2 -2
  30. data/lib/numru/gphys/derivative.rb +56 -13
  31. data/lib/numru/gphys/gphys.rb +17 -1
  32. data/lib/numru/gphys/gphys_grads_io.rb +6 -5
  33. data/lib/numru/gphys/gphys_grib_io.rb +6 -6
  34. data/lib/numru/gphys/gphys_io.rb +25 -6
  35. data/lib/numru/gphys/grads_gridded.rb +31 -29
  36. data/lib/numru/gphys/grib.rb +13 -9
  37. data/lib/numru/gphys/interpolate.rb +153 -29
  38. data/lib/numru/gphys/unumeric.rb +29 -6
  39. data/lib/numru/gphys/varray.rb +9 -0
  40. data/lib/numru/gphys/varraygrib.rb +70 -8
  41. data/lib/version.rb +3 -0
  42. metadata +247 -531
  43. data/doc/attribute.html +0 -19
  44. data/doc/attributenetcdf.html +0 -15
  45. data/doc/axis.html +0 -376
  46. data/doc/coordmapping.html +0 -111
  47. data/doc/coordtransform.html +0 -36
  48. data/doc/derivative/gphys-derivative.html +0 -80
  49. data/doc/derivative/index.html +0 -21
  50. data/doc/derivative/index.rd +0 -14
  51. data/doc/derivative/math-doc/document/document.css +0 -30
  52. data/doc/derivative/math-doc/document/document.html +0 -57
  53. data/doc/derivative/math-doc/document/images.aux +0 -1
  54. data/doc/derivative/math-doc/document/images.log +0 -385
  55. data/doc/derivative/math-doc/document/images.pl +0 -186
  56. data/doc/derivative/math-doc/document/images.tex +0 -364
  57. data/doc/derivative/math-doc/document/img1.png +0 -0
  58. data/doc/derivative/math-doc/document/img10.png +0 -0
  59. data/doc/derivative/math-doc/document/img11.png +0 -0
  60. data/doc/derivative/math-doc/document/img12.png +0 -0
  61. data/doc/derivative/math-doc/document/img13.png +0 -0
  62. data/doc/derivative/math-doc/document/img14.png +0 -0
  63. data/doc/derivative/math-doc/document/img15.png +0 -0
  64. data/doc/derivative/math-doc/document/img16.png +0 -0
  65. data/doc/derivative/math-doc/document/img17.png +0 -0
  66. data/doc/derivative/math-doc/document/img18.png +0 -0
  67. data/doc/derivative/math-doc/document/img19.png +0 -0
  68. data/doc/derivative/math-doc/document/img2.png +0 -0
  69. data/doc/derivative/math-doc/document/img20.png +0 -0
  70. data/doc/derivative/math-doc/document/img21.png +0 -0
  71. data/doc/derivative/math-doc/document/img22.png +0 -0
  72. data/doc/derivative/math-doc/document/img23.png +0 -0
  73. data/doc/derivative/math-doc/document/img24.png +0 -0
  74. data/doc/derivative/math-doc/document/img25.png +0 -0
  75. data/doc/derivative/math-doc/document/img26.png +0 -0
  76. data/doc/derivative/math-doc/document/img27.png +0 -0
  77. data/doc/derivative/math-doc/document/img28.png +0 -0
  78. data/doc/derivative/math-doc/document/img29.png +0 -0
  79. data/doc/derivative/math-doc/document/img3.png +0 -0
  80. data/doc/derivative/math-doc/document/img30.png +0 -0
  81. data/doc/derivative/math-doc/document/img4.png +0 -0
  82. data/doc/derivative/math-doc/document/img5.png +0 -0
  83. data/doc/derivative/math-doc/document/img6.png +0 -0
  84. data/doc/derivative/math-doc/document/img7.png +0 -0
  85. data/doc/derivative/math-doc/document/img8.png +0 -0
  86. data/doc/derivative/math-doc/document/img9.png +0 -0
  87. data/doc/derivative/math-doc/document/index.html +0 -57
  88. data/doc/derivative/math-doc/document/labels.pl +0 -13
  89. data/doc/derivative/math-doc/document/next.png +0 -0
  90. data/doc/derivative/math-doc/document/next_g.png +0 -0
  91. data/doc/derivative/math-doc/document/node1.html +0 -238
  92. data/doc/derivative/math-doc/document/node2.html +0 -75
  93. data/doc/derivative/math-doc/document/prev.png +0 -0
  94. data/doc/derivative/math-doc/document/prev_g.png +0 -0
  95. data/doc/derivative/math-doc/document/up.png +0 -0
  96. data/doc/derivative/math-doc/document/up_g.png +0 -0
  97. data/doc/derivative/math-doc/document.pdf +0 -0
  98. data/doc/derivative/math-doc/document.tex +0 -158
  99. data/doc/derivative/numru-derivative.html +0 -129
  100. data/doc/ep_flux/ep_flux.html +0 -469
  101. data/doc/ep_flux/ggraph_on_merdional_section.html +0 -71
  102. data/doc/ep_flux/index.html +0 -31
  103. data/doc/ep_flux/index.rd +0 -24
  104. data/doc/ep_flux/math-doc/document/WARNINGS +0 -1
  105. data/doc/ep_flux/math-doc/document/contents.png +0 -0
  106. data/doc/ep_flux/math-doc/document/crossref.png +0 -0
  107. data/doc/ep_flux/math-doc/document/document.css +0 -30
  108. data/doc/ep_flux/math-doc/document/document.html +0 -101
  109. data/doc/ep_flux/math-doc/document/images.aux +0 -1
  110. data/doc/ep_flux/math-doc/document/images.log +0 -1375
  111. data/doc/ep_flux/math-doc/document/images.pl +0 -1328
  112. data/doc/ep_flux/math-doc/document/images.tex +0 -1471
  113. data/doc/ep_flux/math-doc/document/img1.png +0 -0
  114. data/doc/ep_flux/math-doc/document/img10.png +0 -0
  115. data/doc/ep_flux/math-doc/document/img100.png +0 -0
  116. data/doc/ep_flux/math-doc/document/img101.png +0 -0
  117. data/doc/ep_flux/math-doc/document/img102.png +0 -0
  118. data/doc/ep_flux/math-doc/document/img103.png +0 -0
  119. data/doc/ep_flux/math-doc/document/img104.png +0 -0
  120. data/doc/ep_flux/math-doc/document/img105.png +0 -0
  121. data/doc/ep_flux/math-doc/document/img106.png +0 -0
  122. data/doc/ep_flux/math-doc/document/img107.png +0 -0
  123. data/doc/ep_flux/math-doc/document/img108.png +0 -0
  124. data/doc/ep_flux/math-doc/document/img109.png +0 -0
  125. data/doc/ep_flux/math-doc/document/img11.png +0 -0
  126. data/doc/ep_flux/math-doc/document/img110.png +0 -0
  127. data/doc/ep_flux/math-doc/document/img111.png +0 -0
  128. data/doc/ep_flux/math-doc/document/img112.png +0 -0
  129. data/doc/ep_flux/math-doc/document/img113.png +0 -0
  130. data/doc/ep_flux/math-doc/document/img114.png +0 -0
  131. data/doc/ep_flux/math-doc/document/img115.png +0 -0
  132. data/doc/ep_flux/math-doc/document/img116.png +0 -0
  133. data/doc/ep_flux/math-doc/document/img117.png +0 -0
  134. data/doc/ep_flux/math-doc/document/img118.png +0 -0
  135. data/doc/ep_flux/math-doc/document/img119.png +0 -0
  136. data/doc/ep_flux/math-doc/document/img12.png +0 -0
  137. data/doc/ep_flux/math-doc/document/img120.png +0 -0
  138. data/doc/ep_flux/math-doc/document/img121.png +0 -0
  139. data/doc/ep_flux/math-doc/document/img122.png +0 -0
  140. data/doc/ep_flux/math-doc/document/img123.png +0 -0
  141. data/doc/ep_flux/math-doc/document/img124.png +0 -0
  142. data/doc/ep_flux/math-doc/document/img125.png +0 -0
  143. data/doc/ep_flux/math-doc/document/img126.png +0 -0
  144. data/doc/ep_flux/math-doc/document/img127.png +0 -0
  145. data/doc/ep_flux/math-doc/document/img128.png +0 -0
  146. data/doc/ep_flux/math-doc/document/img129.png +0 -0
  147. data/doc/ep_flux/math-doc/document/img13.png +0 -0
  148. data/doc/ep_flux/math-doc/document/img130.png +0 -0
  149. data/doc/ep_flux/math-doc/document/img131.png +0 -0
  150. data/doc/ep_flux/math-doc/document/img132.png +0 -0
  151. data/doc/ep_flux/math-doc/document/img133.png +0 -0
  152. data/doc/ep_flux/math-doc/document/img134.png +0 -0
  153. data/doc/ep_flux/math-doc/document/img135.png +0 -0
  154. data/doc/ep_flux/math-doc/document/img136.png +0 -0
  155. data/doc/ep_flux/math-doc/document/img137.png +0 -0
  156. data/doc/ep_flux/math-doc/document/img138.png +0 -0
  157. data/doc/ep_flux/math-doc/document/img139.png +0 -0
  158. data/doc/ep_flux/math-doc/document/img14.png +0 -0
  159. data/doc/ep_flux/math-doc/document/img140.png +0 -0
  160. data/doc/ep_flux/math-doc/document/img141.png +0 -0
  161. data/doc/ep_flux/math-doc/document/img142.png +0 -0
  162. data/doc/ep_flux/math-doc/document/img143.png +0 -0
  163. data/doc/ep_flux/math-doc/document/img144.png +0 -0
  164. data/doc/ep_flux/math-doc/document/img145.png +0 -0
  165. data/doc/ep_flux/math-doc/document/img146.png +0 -0
  166. data/doc/ep_flux/math-doc/document/img147.png +0 -0
  167. data/doc/ep_flux/math-doc/document/img148.png +0 -0
  168. data/doc/ep_flux/math-doc/document/img149.png +0 -0
  169. data/doc/ep_flux/math-doc/document/img15.png +0 -0
  170. data/doc/ep_flux/math-doc/document/img150.png +0 -0
  171. data/doc/ep_flux/math-doc/document/img151.png +0 -0
  172. data/doc/ep_flux/math-doc/document/img152.png +0 -0
  173. data/doc/ep_flux/math-doc/document/img153.png +0 -0
  174. data/doc/ep_flux/math-doc/document/img154.png +0 -0
  175. data/doc/ep_flux/math-doc/document/img155.png +0 -0
  176. data/doc/ep_flux/math-doc/document/img156.png +0 -0
  177. data/doc/ep_flux/math-doc/document/img157.png +0 -0
  178. data/doc/ep_flux/math-doc/document/img158.png +0 -0
  179. data/doc/ep_flux/math-doc/document/img159.png +0 -0
  180. data/doc/ep_flux/math-doc/document/img16.png +0 -0
  181. data/doc/ep_flux/math-doc/document/img160.png +0 -0
  182. data/doc/ep_flux/math-doc/document/img161.png +0 -0
  183. data/doc/ep_flux/math-doc/document/img162.png +0 -0
  184. data/doc/ep_flux/math-doc/document/img163.png +0 -0
  185. data/doc/ep_flux/math-doc/document/img164.png +0 -0
  186. data/doc/ep_flux/math-doc/document/img165.png +0 -0
  187. data/doc/ep_flux/math-doc/document/img166.png +0 -0
  188. data/doc/ep_flux/math-doc/document/img167.png +0 -0
  189. data/doc/ep_flux/math-doc/document/img168.png +0 -0
  190. data/doc/ep_flux/math-doc/document/img169.png +0 -0
  191. data/doc/ep_flux/math-doc/document/img17.png +0 -0
  192. data/doc/ep_flux/math-doc/document/img170.png +0 -0
  193. data/doc/ep_flux/math-doc/document/img171.png +0 -0
  194. data/doc/ep_flux/math-doc/document/img172.png +0 -0
  195. data/doc/ep_flux/math-doc/document/img173.png +0 -0
  196. data/doc/ep_flux/math-doc/document/img174.png +0 -0
  197. data/doc/ep_flux/math-doc/document/img175.png +0 -0
  198. data/doc/ep_flux/math-doc/document/img176.png +0 -0
  199. data/doc/ep_flux/math-doc/document/img177.png +0 -0
  200. data/doc/ep_flux/math-doc/document/img178.png +0 -0
  201. data/doc/ep_flux/math-doc/document/img179.png +0 -0
  202. data/doc/ep_flux/math-doc/document/img18.png +0 -0
  203. data/doc/ep_flux/math-doc/document/img180.png +0 -0
  204. data/doc/ep_flux/math-doc/document/img181.png +0 -0
  205. data/doc/ep_flux/math-doc/document/img182.png +0 -0
  206. data/doc/ep_flux/math-doc/document/img183.png +0 -0
  207. data/doc/ep_flux/math-doc/document/img184.png +0 -0
  208. data/doc/ep_flux/math-doc/document/img185.png +0 -0
  209. data/doc/ep_flux/math-doc/document/img186.png +0 -0
  210. data/doc/ep_flux/math-doc/document/img187.png +0 -0
  211. data/doc/ep_flux/math-doc/document/img188.png +0 -0
  212. data/doc/ep_flux/math-doc/document/img189.png +0 -0
  213. data/doc/ep_flux/math-doc/document/img19.png +0 -0
  214. data/doc/ep_flux/math-doc/document/img190.png +0 -0
  215. data/doc/ep_flux/math-doc/document/img191.png +0 -0
  216. data/doc/ep_flux/math-doc/document/img192.png +0 -0
  217. data/doc/ep_flux/math-doc/document/img193.png +0 -0
  218. data/doc/ep_flux/math-doc/document/img194.png +0 -0
  219. data/doc/ep_flux/math-doc/document/img195.png +0 -0
  220. data/doc/ep_flux/math-doc/document/img196.png +0 -0
  221. data/doc/ep_flux/math-doc/document/img197.png +0 -0
  222. data/doc/ep_flux/math-doc/document/img198.png +0 -0
  223. data/doc/ep_flux/math-doc/document/img199.png +0 -0
  224. data/doc/ep_flux/math-doc/document/img2.png +0 -0
  225. data/doc/ep_flux/math-doc/document/img20.png +0 -0
  226. data/doc/ep_flux/math-doc/document/img200.png +0 -0
  227. data/doc/ep_flux/math-doc/document/img21.png +0 -0
  228. data/doc/ep_flux/math-doc/document/img22.png +0 -0
  229. data/doc/ep_flux/math-doc/document/img23.png +0 -0
  230. data/doc/ep_flux/math-doc/document/img24.png +0 -0
  231. data/doc/ep_flux/math-doc/document/img25.png +0 -0
  232. data/doc/ep_flux/math-doc/document/img26.png +0 -0
  233. data/doc/ep_flux/math-doc/document/img27.png +0 -0
  234. data/doc/ep_flux/math-doc/document/img28.png +0 -0
  235. data/doc/ep_flux/math-doc/document/img29.png +0 -0
  236. data/doc/ep_flux/math-doc/document/img3.png +0 -0
  237. data/doc/ep_flux/math-doc/document/img30.png +0 -0
  238. data/doc/ep_flux/math-doc/document/img31.png +0 -0
  239. data/doc/ep_flux/math-doc/document/img32.png +0 -0
  240. data/doc/ep_flux/math-doc/document/img33.png +0 -0
  241. data/doc/ep_flux/math-doc/document/img34.png +0 -0
  242. data/doc/ep_flux/math-doc/document/img35.png +0 -0
  243. data/doc/ep_flux/math-doc/document/img36.png +0 -0
  244. data/doc/ep_flux/math-doc/document/img37.png +0 -0
  245. data/doc/ep_flux/math-doc/document/img38.png +0 -0
  246. data/doc/ep_flux/math-doc/document/img39.png +0 -0
  247. data/doc/ep_flux/math-doc/document/img4.png +0 -0
  248. data/doc/ep_flux/math-doc/document/img40.png +0 -0
  249. data/doc/ep_flux/math-doc/document/img41.png +0 -0
  250. data/doc/ep_flux/math-doc/document/img42.png +0 -0
  251. data/doc/ep_flux/math-doc/document/img43.png +0 -0
  252. data/doc/ep_flux/math-doc/document/img44.png +0 -0
  253. data/doc/ep_flux/math-doc/document/img45.png +0 -0
  254. data/doc/ep_flux/math-doc/document/img46.png +0 -0
  255. data/doc/ep_flux/math-doc/document/img47.png +0 -0
  256. data/doc/ep_flux/math-doc/document/img48.png +0 -0
  257. data/doc/ep_flux/math-doc/document/img49.png +0 -0
  258. data/doc/ep_flux/math-doc/document/img5.png +0 -0
  259. data/doc/ep_flux/math-doc/document/img50.png +0 -0
  260. data/doc/ep_flux/math-doc/document/img51.png +0 -0
  261. data/doc/ep_flux/math-doc/document/img52.png +0 -0
  262. data/doc/ep_flux/math-doc/document/img53.png +0 -0
  263. data/doc/ep_flux/math-doc/document/img54.png +0 -0
  264. data/doc/ep_flux/math-doc/document/img55.png +0 -0
  265. data/doc/ep_flux/math-doc/document/img56.png +0 -0
  266. data/doc/ep_flux/math-doc/document/img57.png +0 -0
  267. data/doc/ep_flux/math-doc/document/img58.png +0 -0
  268. data/doc/ep_flux/math-doc/document/img59.png +0 -0
  269. data/doc/ep_flux/math-doc/document/img6.png +0 -0
  270. data/doc/ep_flux/math-doc/document/img60.png +0 -0
  271. data/doc/ep_flux/math-doc/document/img61.png +0 -0
  272. data/doc/ep_flux/math-doc/document/img62.png +0 -0
  273. data/doc/ep_flux/math-doc/document/img63.png +0 -0
  274. data/doc/ep_flux/math-doc/document/img64.png +0 -0
  275. data/doc/ep_flux/math-doc/document/img65.png +0 -0
  276. data/doc/ep_flux/math-doc/document/img66.png +0 -0
  277. data/doc/ep_flux/math-doc/document/img67.png +0 -0
  278. data/doc/ep_flux/math-doc/document/img68.png +0 -0
  279. data/doc/ep_flux/math-doc/document/img69.png +0 -0
  280. data/doc/ep_flux/math-doc/document/img7.png +0 -0
  281. data/doc/ep_flux/math-doc/document/img70.png +0 -0
  282. data/doc/ep_flux/math-doc/document/img71.png +0 -0
  283. data/doc/ep_flux/math-doc/document/img72.png +0 -0
  284. data/doc/ep_flux/math-doc/document/img73.png +0 -0
  285. data/doc/ep_flux/math-doc/document/img74.png +0 -0
  286. data/doc/ep_flux/math-doc/document/img75.png +0 -0
  287. data/doc/ep_flux/math-doc/document/img76.png +0 -0
  288. data/doc/ep_flux/math-doc/document/img77.png +0 -0
  289. data/doc/ep_flux/math-doc/document/img78.png +0 -0
  290. data/doc/ep_flux/math-doc/document/img79.png +0 -0
  291. data/doc/ep_flux/math-doc/document/img8.png +0 -0
  292. data/doc/ep_flux/math-doc/document/img80.png +0 -0
  293. data/doc/ep_flux/math-doc/document/img81.png +0 -0
  294. data/doc/ep_flux/math-doc/document/img82.png +0 -0
  295. data/doc/ep_flux/math-doc/document/img83.png +0 -0
  296. data/doc/ep_flux/math-doc/document/img84.png +0 -0
  297. data/doc/ep_flux/math-doc/document/img85.png +0 -0
  298. data/doc/ep_flux/math-doc/document/img86.png +0 -0
  299. data/doc/ep_flux/math-doc/document/img87.png +0 -0
  300. data/doc/ep_flux/math-doc/document/img88.png +0 -0
  301. data/doc/ep_flux/math-doc/document/img89.png +0 -0
  302. data/doc/ep_flux/math-doc/document/img9.png +0 -0
  303. data/doc/ep_flux/math-doc/document/img90.png +0 -0
  304. data/doc/ep_flux/math-doc/document/img91.png +0 -0
  305. data/doc/ep_flux/math-doc/document/img92.png +0 -0
  306. data/doc/ep_flux/math-doc/document/img93.png +0 -0
  307. data/doc/ep_flux/math-doc/document/img94.png +0 -0
  308. data/doc/ep_flux/math-doc/document/img95.png +0 -0
  309. data/doc/ep_flux/math-doc/document/img96.png +0 -0
  310. data/doc/ep_flux/math-doc/document/img97.png +0 -0
  311. data/doc/ep_flux/math-doc/document/img98.png +0 -0
  312. data/doc/ep_flux/math-doc/document/img99.png +0 -0
  313. data/doc/ep_flux/math-doc/document/index.html +0 -101
  314. data/doc/ep_flux/math-doc/document/internals.pl +0 -258
  315. data/doc/ep_flux/math-doc/document/labels.pl +0 -265
  316. data/doc/ep_flux/math-doc/document/next.png +0 -0
  317. data/doc/ep_flux/math-doc/document/next_g.png +0 -0
  318. data/doc/ep_flux/math-doc/document/node1.html +0 -104
  319. data/doc/ep_flux/math-doc/document/node10.html +0 -164
  320. data/doc/ep_flux/math-doc/document/node11.html +0 -86
  321. data/doc/ep_flux/math-doc/document/node12.html +0 -166
  322. data/doc/ep_flux/math-doc/document/node13.html +0 -897
  323. data/doc/ep_flux/math-doc/document/node14.html +0 -1065
  324. data/doc/ep_flux/math-doc/document/node15.html +0 -72
  325. data/doc/ep_flux/math-doc/document/node16.html +0 -81
  326. data/doc/ep_flux/math-doc/document/node2.html +0 -82
  327. data/doc/ep_flux/math-doc/document/node3.html +0 -91
  328. data/doc/ep_flux/math-doc/document/node4.html +0 -149
  329. data/doc/ep_flux/math-doc/document/node5.html +0 -330
  330. data/doc/ep_flux/math-doc/document/node6.html +0 -99
  331. data/doc/ep_flux/math-doc/document/node7.html +0 -98
  332. data/doc/ep_flux/math-doc/document/node8.html +0 -83
  333. data/doc/ep_flux/math-doc/document/node9.html +0 -140
  334. data/doc/ep_flux/math-doc/document/prev.png +0 -0
  335. data/doc/ep_flux/math-doc/document/prev_g.png +0 -0
  336. data/doc/ep_flux/math-doc/document/up.png +0 -0
  337. data/doc/ep_flux/math-doc/document/up_g.png +0 -0
  338. data/doc/ep_flux/math-doc/document.pdf +0 -0
  339. data/doc/ep_flux/math-doc/document.tex +0 -2018
  340. data/doc/gdir.html +0 -412
  341. data/doc/gdir_client.html +0 -16
  342. data/doc/gdir_connect_ftp-like.html +0 -61
  343. data/doc/gdir_server.html +0 -45
  344. data/doc/ggraph.html +0 -1615
  345. data/doc/gpcat.html +0 -44
  346. data/doc/gpcut.html +0 -41
  347. data/doc/gphys.html +0 -532
  348. data/doc/gphys_fft.html +0 -324
  349. data/doc/gphys_grads_io.html +0 -69
  350. data/doc/gphys_grib_io.html +0 -82
  351. data/doc/gphys_io.html +0 -120
  352. data/doc/gphys_io_common.html +0 -18
  353. data/doc/gphys_netcdf_io.html +0 -283
  354. data/doc/gplist.html +0 -24
  355. data/doc/gpmath.html +0 -51
  356. data/doc/gpmaxmin.html +0 -31
  357. data/doc/gpprint.html +0 -34
  358. data/doc/gpview.html +0 -270
  359. data/doc/grads2nc_with_gphys.html +0 -21
  360. data/doc/grads_gridded.html +0 -307
  361. data/doc/grib.html +0 -144
  362. data/doc/grid.html +0 -212
  363. data/doc/index.html +0 -133
  364. data/doc/index.rd +0 -127
  365. data/doc/netcdf_convention.html +0 -136
  366. data/doc/unumeric.html +0 -176
  367. data/doc/update +0 -64
  368. data/doc/varray.html +0 -299
  369. data/doc/varraycomposite.html +0 -67
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/ChangeLog CHANGED
@@ -1,3 +1,224 @@
1
+ Fri Mar 2 2012 T Horinouchi
2
+ * gphys-1.2.2 released (cvs tag gphys-1_2_2)
3
+ Tue Feb 28 2012 R Mizuta
4
+ * lib/numru/gphys/unumeric.rb: not to use Date#to_datetime
5
+ + fix for "proleptic_gregorian" calendar.
6
+ Mon Feb 27 2012 T Horinouchi
7
+ * (Added Mar 2) I thought I did the following, but it has not been
8
+ released:
9
+ * gphys-1.2.2 released (cvs tag gphys-1_2_2)
10
+ * lib/numru/varraygrib.rb : changed to explicitly raise LoadError
11
+ if rb-GRIB is not available and VArrayGrib::use_rb_grib is called.
12
+ * lib/numru/ggraph.rb : altered the recently commited test :
13
+ reduced the numbder of figs; added cliping to polar stereo etc.
14
+ * lib/numru/gphys/assoccoords.rb : debug
15
+ * lib/numru/gphys/unumeric.rb: (for Ruby 1.8) not to use
16
+ Date#to_datetime if not defined.
17
+ Sun Feb 26 2012 S Otsuka
18
+ * lib/numru/dclext.rb
19
+ * bugfix in color_bar
20
+ * lib/numru/ggraph.rb
21
+ * bugfix of map_axes for itr == 10
22
+ Fri Feb 24 2012 S Otsuka
23
+ * lib/numru/dclext.rb
24
+ * bugfix in color_bar for itr >= 10
25
+ * lib/numru/ggraph.rb
26
+ * test of color_bar for itr = 13..15 and 20..23
27
+ Thu Feb 23 2012 T Horinouchi
28
+ * gphys-1.2.1 released (cvs tag gphys-1_2_1)
29
+ Tue Feb 21 2012 T Horinouchi
30
+ * install.rb: added again
31
+ Tue Feb 21 2012 T Horinouchi
32
+ * gphys-1.2.0 released (cvs tag gphys-1_2_0)
33
+ Tue Feb 21 2012 T Horinouchi
34
+ * lib/numru/gphys/grib.rb : class name changed: NumRu::Grib -->
35
+ NumRu::GPhys::Grib etc
36
+ * lib/numru/gphys/varraygrads.rb: made gphys_grib (NumRu::GPhys::Grib)
37
+ the default, supported switching between gphys_grib and rb-GRIB
38
+ (external library)
39
+ * lib/numru/gphys/gphys_io.rb, lib/numru/gphys/gphys_grib_io.rb:
40
+ Changed accordingly
41
+ Mon Feb 20 2012 T Horinouchi
42
+ * gphys_grib_io.rb, gphys_io.rb, varraygrib.rb: previous changes
43
+ are reverted
44
+ * README : updated
45
+ Mon Feb 20 2012 S Nishizawa
46
+ * gphys_grib_io.rb, gphys_io.rb, varraygrib.rb: enable to switch
47
+ grib library (default is the gphys grib).
48
+ * to switch it use GPhys::IO.use_gphys_grib or GPhys:IO.use_rb_grib
49
+ Mon Feb 20 2012 T Horinouchi
50
+ * README : added a remark on rb-GRIB
51
+ * lib/numru/ggraph.rb : added a colorbar in graph 34 & 36 (itr=5)
52
+ * lib/numru/gphys/grib.rb : not show the warning (... is obsolte).
53
+ Mon Feb 20 2012 S Otsuka
54
+ * lib/numru/dclext.rb
55
+ * bugfix in color_bar for itr = 5, 6
56
+ Sun Feb 19 2012 T Horinouchi
57
+ * install.rb: deleted (it has been obsolete since extconf.rb
58
+ was introduced years ago.)
59
+ Sun Feb 19 2012 S Takehiro
60
+ * lib/numru/gphys/gphys_io.rb parse_gturl:
61
+ * gturl format was changed so as to be able to use "/"
62
+ as a separater between path and variable.
63
+ * bin/ : comments updated according to the change of gturl format.
64
+ Sun Feb 19 2012 T Horinouchi
65
+ * README: udpated
66
+ * lib/numru/gphys/coordmapping.rb: adapted the test part to Ruby 1.9
67
+ * lib/numru/ganalysis/histogram.rb: bugfix
68
+ Fri Feb 17 2012 T Horinouchi
69
+ * lib/numru/ganalysis/met.rb: added an option to frontogenesis_func
70
+ * lib/numru/dclext.rb : updated the documentation part
71
+ * doc/ : updated
72
+ Thu Feb 16 2012 T Horinouchi
73
+ * lib/numru/dclext.rb DCLExt::flow_vect_anyproj
74
+ * improved not to show arrows on the baskside when the
75
+ projection is multi-valued (map projections)
76
+ * added handling of NaNs
77
+ * modified test part
78
+ Wed Feb 15 2012 T Horinouchi
79
+ * lib/numru/ggraph.rb (separated DCLExt into the new file dclext.rb)
80
+ * lib/numru/dclext.rb (new file) NumRu::DCLExt is separated from
81
+ lib/numru/ggraph.rb
82
+ Wed Feb 15 2012 T Horinouchi (actually done in Dec 2011)
83
+ * DCLExt::flow_vect_anyproj : added option polar_thinning etc.
84
+ Thu Feb 9 2012 S Otsuka
85
+ * lib/numru/ggraph.rb
86
+ * In GGraph, GPhys#name will be used for the title of a diagram
87
+ if GPhys#long_name is too long.
88
+ * tentative workaround in GGraph#color_bar
89
+ * lib/numru/ganalysis/eof.rb
90
+ * Load rubygems because Ruby/GSL might be installed via rubygems.
91
+ Thu Feb 9 2012 R Mizuta
92
+ * lib/numru/gphys/unumeric.rb
93
+ * bugfix in the method self::from_date with "360_day" calendar.
94
+ Fri Feb 3 2012 S Otsuka
95
+ * lib/numru/ggraph.rb
96
+ * Map projection numbers 16--19 and 34 are enabled.
97
+ Additional modifications might be needed in future.
98
+ (DCL 5.4.3 or later is needed to actually use these.)
99
+ Fri Feb 3 2012 R Mizuta
100
+ * lib/numru/gphys/grads_gridded.rb, gphys_grads_io.rb:
101
+ * fixed an error when variable names in grads ctl files
102
+ conflict with dimension names (x,y,z,t).
103
+ Wed Feb 1 2012 S Takehiro < S. Nishizawa
104
+ * bin/gpview
105
+ * added --tonf option.
106
+ * bin/gpvect
107
+ * added --tonf option.
108
+ Tue Jan 31 2012 R Mizuta
109
+ * lib/numru/gphys/unumeric.rb
110
+ * added support for "proleptic_gregorian" calendar.
111
+ * added check for invalid date in "360_day" calendar.
112
+ Tue Jan 24 2012 T Horinouchi
113
+ * commited some enhancement/modification made in Dec 2011
114
+ * lib/numru/ganalysis/planet.rb
115
+ * supported boundary condition selection for derivatives (lat_bc)
116
+ * added some methods (grad_sx, grad_sy, grad_sy_cosphifact,
117
+ weight_tanphi, weight_cosphi, weight_sinphi)
118
+ * lib/numru/ganalysis/met.rb
119
+ * added a method df_dx_vialogscale, to support numerical
120
+ derivative in log-p coordinate. This is not necessarily
121
+ an improvement --- it depends on inputs, but the default
122
+ is tentatively changed to use it.
123
+ * added new methods: z2geostrophic_wind, frontogenesis_func
124
+ Sun Jan 8 2012 S Otsuka
125
+ * lib/numru/ggraph.rb:
126
+ * default value of LGLOBE in map projections are changed.
127
+ * when Mercator, LGLOBE becomes true only if the window is
128
+ almost global.
129
+ * bugfix in DCLExt#color_bar: when map projection is used
130
+ in the main plot, ITR was reset when DCLExt.color_bar was called.
131
+ Wed Jan 4 2012 S Otsuka
132
+ * lib/numru/gphys/varray.rb: marshal dump and load are implemented.
133
+ Thu Dec 24 2011 S Otsuka
134
+ * lib/numru/ganalysis/histogram.rb: bugfix for logarithmic axes.
135
+ Thu Dec 22 2011 S Otsuka
136
+ * lib/numru/ggraph.rb: log10_safe and log10_or_0 are defined
137
+ in order to prevent errors when 0 is given to Math::log10.
138
+ Math::log10 in color_bar-related functions are substituted
139
+ with log10_or_0.
140
+ * lib/numru/ganalysis/histogram.rb: bugfix of default window.
141
+ Wed Dec 14 2011 T Horinouchi
142
+ * lib/numru/ggraph.rb: Supported vector drawing in any projection
143
+ (esp. map projection!). It requires a new (yet to come) version
144
+ of NArrayMiss -- it depends on NArrayMiss#valid? with argument(s).
145
+ * New methods:
146
+ * DCLExt::flow_vect_anyproj : flow_vect on any DCL projection.
147
+ Arrows drawn by this method are properly directed locally
148
+ (consistent with the local coordinate). Their lengths are
149
+ proportional to those of the data given. (currently not yet
150
+ tested with the tranformations 5 and 6, which I'm not used to).
151
+ * DCLExt::unit_vect_single : for DCLExt::flow_vect_anyproj.
152
+ Draws only one arrow to express the scaling (by default,
153
+ upward oriented.)
154
+ * Default change:
155
+ * GGraph::vector : changed to use flow_vect_anyproj if
156
+ the current projection number is >= 2. (the method to use
157
+ can be switched by the new option "flow_vect_anyproj")
158
+
159
+ Mon Dec 12 2011 T Horinouchi
160
+ * lib/numru/interpolate.rb: debug of mouse_cut: up to the previous
161
+ version, the end point of the last line segment is not included
162
+ in the sample points. (So the debug is to cover this end point.)
163
+ * lib/numru/interpolate.rb: debug of coord_data_reverse :
164
+ to avoid a side effect on the grid of self.
165
+ * lib/numru/interpolate.rb: Added a new method dcl_fig_cut,
166
+ which is separated from mouse_cut for use cases without
167
+ mouse click.
168
+ Fri Dec 9 2011 S Otsuka
169
+ * lib/numru/ggraph.rb: xreverse and yreverse will be true
170
+ when the unit of an axis is compatible with that specified
171
+ as an option (previously xreverse/yreverse became true
172
+ only when the unit was exactly the same).
173
+ Fri Dec 2 2011 T Horinouchi
174
+ * lib/numru/gphys/gphys.rb: added a new method shape_coerce_full
175
+ (similar to shape_coerce but possibly expands by replication)
176
+ * lib/numru/interpolate.rb: added a new method coord_data_reverse
177
+ (reverses the main data (i.e., the dependent variable) and one of the
178
+ coordinates (an independent variable) through interpolation.)
179
+ Thu Dec 1 2011 T Horinouchi
180
+ * lib/numru/interpolate.rb, interpo.c: Supported a behavior
181
+ not to make extrapolation outside the original grid.
182
+ Changed the default behavior to this one.
183
+ * lib/numru/interpolate.rb: added a new class method
184
+ GPhys::extrapolation=(extrapo), where extrapo is true or
185
+ false --- the default behavior is false, as noted above.
186
+ Tue Nov 29 2011 S Nishizawa
187
+ * lib/numru/grib.rb: print message to inform that this grib library is obsoluted.
188
+ * lib/numru/varraygrib: change to find rb-grib library first.
189
+ Sun Nov 20 2011 S Takehiro
190
+ * bin/gpview: option --eddy implemented.
191
+ * bin/gpvect: option --eddy implemented.
192
+ Fri Nov 11 2011 T Horinouchi
193
+ * lib/numru/ggraph.rb: added 'xloglabelall' and
194
+ 'yloglabelall' to the options of GGraph::axes (to show
195
+ lavels for all log-level tick marks)
196
+ Thu Nov 03 2011 S Takehiro
197
+ * bin/gpview: option --time_ax implemented.
198
+ Fri Oct 28 2011 S Otsuka
199
+ * lib/numru/ganalysis/histogram.rb:
200
+ * support for itr=2, 3, and 4 in GGraph#histogram.
201
+ Tue Oct 18 2011 T Horinouchi
202
+ * lib/numru/ganalysis/planet.rb :
203
+ * Changed method name: get_lonlat --> get_lambda_phi.
204
+ * method get_lambda_phi: added an optional argument
205
+ err_raise (default:true). Changed the order of outputs.
206
+ Added doc.
207
+ * lib/numru/interpolate.rb: minor reformating of documentation
208
+ * lib/numru/gphys/axis.rb: Axis#cyclic_extendible?: debug
209
+ Mon Oct 17 2011 T Horinouchi
210
+ * lib/numru/ganalysis/planet.rb : find_lon_lat_dims: Refined the
211
+ criteria
212
+ Fri Oct 14 2011 T Horinouchi
213
+ * lib/numru/gphys/derivative.rb: added a new method deriv2nd
214
+ * lib/numru/derivative.rb: added a new method deriv2nd
215
+ (2nd derivative covering uniform grids)
216
+ Sun Sep 04 2011 S Otsuka
217
+ * When max and min of an axis are the same integer value,
218
+ window values become invalid.
219
+ Thu Aug 18 2011 T Horinouchi
220
+ * lib/numru/interpolate.rb: mouse_cut: added optional arguments
221
+ line_type & line_index, whose default values are 1 & 1,respectively.
1
222
  Mon Aug 15 2011 T Horinouchi
2
223
  * gphys-1.1.1 released (cvs tag gphys-1_1_1)
3
224
  Thu Aug 11 2011 T Horinouchi
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gphys.gemspec
4
+ gemspec
data/LICENSE.txt CHANGED
@@ -1,34 +1,22 @@
1
- GPhys is copyrighted free software by Takeshi Horinouchi and
2
- GFD Dennou Club (http://www.gfd-dennou.org/).
1
+ Copyright (c) 2012 Eriko Nishimoto
3
2
 
4
- Copyright 2011 (C) Takeshi Horinouchi and GFD Dennou Club
5
- (http://www.gfd-dennou.org/) All rights reserved.
3
+ MIT License
6
4
 
7
- Redistribution and use in source and binary forms, with or without
8
- modification, are permitted provided that the following conditions are
9
- met:
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
10
12
 
11
- 1. Redistributions of source code must retain the above copyright
12
- notice, this list of conditions and the following disclaimer.
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
13
15
 
14
- 2. Redistributions in binary form must reproduce the above copyright
15
- notice, this list of conditions and the following disclaimer in
16
- the documentation and/or other materials provided with the
17
- distribution.
18
-
19
- THIS SOFTWARE IS PROVIDED BY GFD DENNOU CLUB AND CONTRIBUTORS ``AS IS''
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GFD DENNOU CLUB OR
23
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
-
31
- The views and conclusions contained in the software and documentation
32
- are those of the authors and should not be interpreted as representing
33
- official policies, either expressed or implied, of Takeshi Horinouchi
34
- and GFD Dennou Club.
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README CHANGED
@@ -1,33 +1,30 @@
1
+ = GPhys -- a class of multi-dimensional Gridded Physical quantities
1
2
 
2
- GPhys -- a class of multi-dimensional Gridded Physical quantities
3
+ == Description and general information
4
+ See http://ruby.gfd-dennou.org/products/gphys/
3
5
 
4
- by T Horinouchi
5
- 2003/05/14
6
+ == Licence
7
+ See LICENSE.txt
6
8
 
7
- * DESCRIPTION
9
+ == Dependent libraries
8
10
 
9
- To be written.
10
- See http://ruby.gfd-dennou.org/workshop200303/horinout/ (in Japanese).
11
+ As of GPhys 1.2.0.
11
12
 
12
- * INSTALL
13
+ Dependent libraries and their versions (required or recommended):
14
+ * Ruby 1.8 or 1.9
15
+ * NArray: 0.5.7 or later
16
+ * NumRu::Misc : 0.1.0 or later
17
+ * NumRu::Units : 1.7 or later
18
+ * NArrayMiss : 1.2.4 or later
19
+ * RubyNetCDF : 0.6.6 or later
20
+ * RubyDCL : 1.6.1 or later
21
+ * Ruby-FFTW3 : 0.3 or later
22
+ * RubyGSL : 1.14 or later
13
23
 
14
- # ruby extconf.rb && make && make install
15
- # ruby ./install.rb
24
+ Recommended libraries:
25
+ * Ruby-LAPACK : 1.5 or later (used for efficiency if installed)
16
26
 
17
- * SAMPLE PROGRAMS
18
-
19
- Each library file has a sample program part, which is invoked by
20
- directly feeding the file to Ruby. For example
21
-
22
- % cd lib/numru/
23
- % ruby ggraph.rb
24
-
25
- % cd lib/numru/gphys
26
- % ruby gphys.rb
27
- % ruby gphys_netcdf_io.rb
28
-
29
- Sample programs are also found in the
30
-
31
- ./sample
32
-
33
- diredtory.
27
+ Optional dependent libraries:
28
+ * rb-GRIB : 0.2.0 or later (used if installed and explicitly specified.
29
+ Needed to read GRIB2 data. But rb-GRIB 0.2.0 is experimental, so it
30
+ is not recommended. Wait for a future version.)
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Gphys
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'gphys'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install gphys
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile CHANGED
@@ -1,56 +1 @@
1
- require 'rake/gempackagetask'
2
-
3
- NAME = 'gphys'
4
- VER = '1.1.1'
5
-
6
- PKG_FILES = FileList[
7
- '**',
8
- 'bin/**/*',
9
- 'doc/**/*',
10
- 'lib/**/*',
11
- 'sample/**/*',
12
- 'test/**/*',
13
- 'testdata/**/*'
14
- ]
15
-
16
- spec = Gem::Specification.new do |s|
17
- s.name = NAME
18
- s.version = VER
19
- s.authors = ["Takeshi Horinouchi", "Ryo Mizuta",\
20
- "Daisuke Tsukahara", "Seiya Nishizawa", "Shin-ichi Takehiro"]
21
- s.email = ['eriko@gfd-dennou.org']
22
- s.homepage = 'http://www.gfd-dennou.org/arch/ruby/products/gphys/'
23
- s.licenses = ["GFD Dennou Club"]
24
- s.platform = Gem::Platform::RUBY
25
- s.summary = %q{a multi-purpose class to handle Gridded Physical quantities}
26
- s.description = %q{comprehensive library for self-descriptive gridded physical data (in NetCDF, GrADS, or on memory) with graphicsgraphicsgraphicsgraphics.}
27
-
28
- s.files = PKG_FILES.to_a
29
- s.require_paths = ['lib']
30
- s.test_files = Dir.glob("test/*")
31
- s.bindir = 'bin'
32
- s.executables = ['gdir_client','gpaop','gpcut','gplist'\
33
- ,'gpmaxmin','gpvect','grads2nc_with_gphys','gdir_server'\
34
- ,'gpcat','gpedit','gpmath','gpprint','gpview']
35
-
36
- s.has_rdoc = false
37
- #s.extra_rdoc_files = ['README']
38
-
39
- s.required_ruby_version = Gem::Requirement.new(">= 1.6")
40
-
41
- s.add_runtime_dependency(%q<narray>, [">= 0"])
42
- s.add_runtime_dependency(%q<numru-misc>, [">= 0.0.4"])
43
- s.add_runtime_dependency(%q<numru-units>, [">= 1.5"])
44
- s.add_runtime_dependency(%q<narray_miss>, [">= 0"])
45
- s.add_runtime_dependency(%q<ruby-netcdf>, [">= 0.5.2"])
46
- s.add_runtime_dependency(%q<ruby-dcl>, [">= 1.2.1"])
47
- s.add_runtime_dependency(%q<fftw3>, [">= 0.2"])
48
-
49
- s.extensions << "extconf.rb"
50
- end
51
-
52
- Rake::GemPackageTask.new(spec) do |pkg|
53
- pkg.gem_spec = spec
54
- pkg.need_tar = true
55
- end
56
-
1
+ require "bundler/gem_tasks"
data/bin/gpaop CHANGED
@@ -20,7 +20,7 @@ by the following command formats.
20
20
 
21
21
  % gpaop -f func [options] gturl1 gturl2 ...
22
22
 
23
- Format of 'gturl*' is 'path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]'
23
+ Format of 'gturl*' is 'path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]'
24
24
 
25
25
  % gpaop -f func --var varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]] [options] gtfile1 gtfile2 ...
26
26
 
@@ -55,6 +55,7 @@ Usage Examples
55
55
  2005/08/21 S Takehiro (created)
56
56
  2005/08/23 S Takehiro (common methods to gp* commandmoved to gpcommon.rb)
57
57
  2010/03/10 Y SASAKI (change help block into RD format)
58
+ 2012/02/19 S Takehiro (description for gturl format updated)
58
59
 
59
60
  =end
60
61
 
data/bin/gpcut CHANGED
@@ -10,7 +10,7 @@ gpcut - Extract, slicing and thinning a GPhys variable.
10
10
 
11
11
  = USAGE
12
12
 
13
- % gpcut [options] path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
13
+ % gpcut [options] path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
14
14
 
15
15
  = OPTIONS
16
16
 
@@ -30,6 +30,7 @@ gpcut - Extract, slicing and thinning a GPhys variable.
30
30
  2005/08/21 S Takehiro (global attributes copied to the output file)
31
31
  2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)
32
32
  2010/03/10 Y SASAKI (change help block into RD format)
33
+ 2012/02/19 S Takehiro (description for gturl format updated)
33
34
 
34
35
  =end
35
36
 
@@ -41,7 +42,7 @@ require "getoptlong"
41
42
 
42
43
  #------------------------ Default Settings ------------------------
43
44
  Output_default = 'gphys.nc'
44
- URLfmt = "path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]"
45
+ URLfmt = "path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]"
45
46
 
46
47
  #---------------------- Option Configuration ----------------------
47
48
  parser = GetoptLong.new(
data/bin/gpedit CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  = USAGE
10
10
 
11
- % gpedit [options] path@[varname:var_attr=...][varname|+global_attr]
11
+ % gpedit [options] path[@|/][varname:var_attr=...][varname|+global_attr]
12
12
 
13
13
  = EXAMPLES
14
14
 
@@ -23,6 +23,7 @@
23
23
  "
24
24
  = HISTORY
25
25
 
26
+ 2012/02/19 S Takehiro (gturl format updated)
26
27
  2010/03/10 Y SASAKI (change help block into RD format)
27
28
  2007/07/18 Y. Morikawa 'gpattr' is renamed to 'gpedit'
28
29
  2006/09/29 Y. Morikawa A value looks like numeric is treated as a numerical value
@@ -142,8 +143,11 @@ def parse_gturl_for_attr(gturl)
142
143
  if /(.*)@(.*)/ =~ gturl
143
144
  file = $1
144
145
  var = $2
146
+ elsif /(.*)\/(.*)/ =~ gturl
147
+ file = $1
148
+ var = $2
145
149
  else
146
- url_error "'@' between path & variable is not found"
150
+ url_error "'[@|/]' between path & variable is not found"
147
151
  end
148
152
  if /(.*):(.*)/ =~ var
149
153
  var_name = var.split(":")[0]
data/bin/gpmath CHANGED
@@ -6,7 +6,7 @@ gpmath - operating a mathematical function to a GPhys variable.
6
6
 
7
7
  = USAGE
8
8
 
9
- % gpmath [options] path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
9
+ % gpmath [options] path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
10
10
 
11
11
  = OPTIONS
12
12
 
@@ -33,6 +33,7 @@ gpmath - operating a mathematical function to a GPhys variable.
33
33
  2005/08/21 S Takehiro (global attributes copied to the output file)
34
34
  2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)
35
35
  2010/03/10 Y SASAKI (change help block into RD format)
36
+ 2012/02/19 S Takehiro (description for gturl format updated)
36
37
 
37
38
  =end
38
39
 
@@ -44,7 +45,7 @@ require "getoptlong"
44
45
 
45
46
  #------------------------ Default Settings ------------------------
46
47
  Output_default = 'gphys.nc'
47
- URLfmt = "path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]"
48
+ URLfmt = "path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]"
48
49
 
49
50
  #---------------------- Option Configuration ----------------------
50
51
  parser = GetoptLong.new(
data/bin/gpmaxmin CHANGED
@@ -6,7 +6,7 @@ gpmaxmin - printing maximum and minimum values of a GPhys variable.
6
6
 
7
7
  = USAGE
8
8
 
9
- % gpmaxmin [options] path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
9
+ % gpmaxmin [options] path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
10
10
 
11
11
  = OPTIONS
12
12
 
@@ -26,6 +26,7 @@ gpmaxmin - printing maximum and minimum values of a GPhys variable.
26
26
  2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)
27
27
  2006/03/07 M Nakano (USAGE Typo fixed)
28
28
  2010/03/10 Y SASAKI (change help block into RD format)
29
+ 2012/02/19 S Takehiro (description for gturl format updated)
29
30
 
30
31
  =end
31
32
 
@@ -36,7 +37,7 @@ include NumRu
36
37
  require "getoptlong"
37
38
 
38
39
  #------------------------ Default Settings ------------------------
39
- URLfmt = "path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]"
40
+ URLfmt = "path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]"
40
41
  print_maxdefault=5
41
42
 
42
43
  #---------------------- Option Configuration ----------------------
data/bin/gpprint CHANGED
@@ -18,7 +18,7 @@ texts with line feeding to avoid long lines and are made to stdout.
18
18
 
19
19
  where the format of the url is
20
20
 
21
- path@varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
21
+ path[@|/]varname[,dimname=pos1[:pos2[:thinning_intv]][,dimname=...]]
22
22
 
23
23
  = EXAMPLES
24
24
 
@@ -35,6 +35,7 @@ where the format of the url is
35
35
  2005/08/10 S Takehiro (utilize internal function for printing help message)
36
36
  2005/08/23 S Takehiro (common methods to gp* command moved to gpcommon.rb)
37
37
  2010/03/10 Y SASAKI (change help block into RD format)
38
+ 2012/02/19 S Takehiro (description for gturl format updated)
38
39
 
39
40
  =end
40
41
  ##################################################