[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dennou-ruby:002739] [Ruby-NetCDF] Bug in NetCDFVar#[]
- To: Dennou-ruby <dennou-ruby@xxxxxxxxxxx>
- Subject: [dennou-ruby:002739] [Ruby-NetCDF] Bug in NetCDFVar#[]
- From: "Seiya Nishizawa" <seiya@xxxxxxxxxxxxxx>
- Date: Sat, 2 Dec 2006 18:09:28 +0900
- Sender: seiyani@xxxxxxxxx
西澤です。
NetCDFVar#[] が、
引数に配列を取るとき、
他の引数に、整数がある場合にエラーとなります。
全てが配列かtureのである場合は期待通りの動作をします。
file = NetCDF.open("T.jan.nc")
var = file.var("T")
ix = [1,3,5]
iy = [2,4,6,8]
var[ix,iy,true] # => NArray.sfloat(3,4,9)
var[ix,true,0] # error
var[ix,iy,0] # error
--
Seiya Nishizawa
Research Institute for Mathematical Sciences, Kyoto University
Oiwake-cho Kitarakawa Sakyo-ku Kyoto, Japan, 606-8502
Tel: +81-75-753-7252
Fax: +81-75-753-7272