From: Francesc A. <fa...@ca...> - 2005-09-07 16:30:19
|
A Wednesday 07 September 2005 17:12, phi...@ho... va escriure: > >Ok. I understand better now. With that, what you want is something > >similar to: > > > >pressure.where(pressure.axis.longitude =3D=3D 0.2 and > > pressure.axis.latitude =3D=3D 0.45 ) > > > > That's exactly the idea behind all. And you go further with the > suggestion about the direct mapping into indices. That could be very > powerfull. Yes. I'm thinking that this kind of approach could let the user do: pressure.where(pressure.axis.longitude > 0.2 and pressure.axis.latitude < 0.45 ) or=20 pressure.where(0.1 <=3D pressure.axis.longitude <=3D 0.2 or pressure.axis.latitude < 0.45 ) or any other boolean combination. In addition, as HDF5 supports natively boolean combinations of hyperslabs, this kind of operations will potentially be very I/O efficient. > Thanks a lot for taking in account new improvements. > Of course, i can give you a hand if you need help. > Tell me when you start programming it, we can work together. > If you didn't have time, i will try soon to modify pytables code with > your rigths. Well, we are working in other things right now, but indeed I'd like to have some spare time to implement this. Of course, you can always have a deeper look into it and if you end with something I'll be more than happy to include it in PyTables. Cheers, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |