[Numpy-discussion] How to modify an array

2012-02-26 Thread tetsuro_kikuchi
Dear sirs, Please allow me to ask you a beginner's question. I have an nparray whose shape is (144, 91, 1). The elements of this array are integer 0, 1 or 2, but I don't know which of the three integers is assigned to each element. I would like to make a copy of this array, and then replace

Re: [Numpy-discussion] How to modify an array

2012-02-26 Thread tetsuro_kikuchi
Dear Olivier, Thank you very much for your help. It worked fine! Tetsuro Kikuchi Olivier Delalleau