[Numpy-discussion] rollaxis

2010-07-17 Thread Charles R Harris
So, In [14]: x = zeros((2,3,4)) In [15]: rollaxis(x,0,3).shape Out[15]: (3, 4, 2) In [16]: rollaxis(x,0,2).shape Out[16]: (3, 2, 4) In [17]: rollaxis(x,0,1).shape Out[17]: (2, 3, 4) In [18]: rollaxis(x,0,0).shape Out[18]: (2, 3, 4) How come rollaxis(x,0,0) doesn't move 2 to the end ;) That's

Re: [Numpy-discussion] Numpy svn down

2010-07-17 Thread Robert Kern
On Sat, Jul 17, 2010 at 17:06, Charles R Harris wrote: > At the moment... Chuck I can svn up at the moment. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying tr

Re: [Numpy-discussion] Numpy svn down

2010-07-17 Thread Pauli Virtanen
Sat, 17 Jul 2010 16:06:40 -0600, Charles R Harris wrote: > At the moment... Chuck Worksforme at the moment. Pauli ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Numpy svn down

2010-07-17 Thread Charles R Harris
At the moment... Chuck ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Crosstabulation

2010-07-17 Thread Friedrich Romstedt
2010/7/17 Robert Kern : > On Sat, Jul 17, 2010 at 13:11, Friedrich Romstedt > wrote: >> 2010/7/14 Ionut Sandric : >> I'm afraid also Zach does not understand what you are talking about >> ... So my first question (please bear with me) would be: What's a dem? > > Digital Elevation Map. > >>  (n/a i

Re: [Numpy-discussion] PyDocWeb "the doc editor" and github transition

2010-07-17 Thread Vincent Davis
On Sat, Jul 17, 2010 at 1:47 PM, Pauli Virtanen wrote: > Sat, 17 Jul 2010 13:11:46 -0600, Vincent Davis wrote: >> I have not seen anything about the move to github and how this effects >> pydocweb or did I just miss it. I am willing to adapt pydocweb to work >> with github but not sure what the de

Re: [Numpy-discussion] PyDocWeb "the doc editor" and github transition

2010-07-17 Thread Pauli Virtanen
Sat, 17 Jul 2010 13:11:46 -0600, Vincent Davis wrote: > I have not seen anything about the move to github and how this effects > pydocweb or did I just miss it. I am willing to adapt pydocweb to work > with github but not sure what the desired integration would be. This > should not be to difficult

Re: [Numpy-discussion] Crosstabulation

2010-07-17 Thread Robert Kern
On Sat, Jul 17, 2010 at 13:11, Friedrich Romstedt wrote: > 2010/7/14 Ionut Sandric : >> By raster data I mean classified slope gradient (derived from a dem), >> landuse-landcover, lithology etc. A crosstabulation analysis will give me a >> table with the common areas for each class from each ras

[Numpy-discussion] PyDocWeb "the doc editor" and github transition

2010-07-17 Thread Vincent Davis
I have not seen anything about the move to github and how this effects pydocweb or did I just miss it. I am willing to adapt pydocweb to work with github but not sure what the desired integration would be. This should not be to difficult but should/needs to be part of the plan and documented. My in

Re: [Numpy-discussion] 1.5.x branched

2010-07-17 Thread Charles R Harris
On Sat, Jul 17, 2010 at 12:32 PM, Pauli Virtanen wrote: > Dear all, > > Based on patches contributed by Christoph Gohlke, I've created a branch > for 1.5.x: > >http://svn.scipy.org/svn/numpy/branches/1.5.x > > It should be > > a) Binary compatible with Numpy 1.4 on Python 2.x. > > Th

[Numpy-discussion] 1.5.x branched

2010-07-17 Thread Pauli Virtanen
Dear all, Based on patches contributed by Christoph Gohlke, I've created a branch for 1.5.x: http://svn.scipy.org/svn/numpy/branches/1.5.x It should be a) Binary compatible with Numpy 1.4 on Python 2.x. This meant rolling back the datetime and a couple other changes. b) Supp

Re: [Numpy-discussion] Crosstabulation

2010-07-17 Thread Friedrich Romstedt
2010/7/14 Ionut Sandric : > By raster data I mean classified slope gradient (derived from a dem), > landuse-landcover, lithology etc. A crosstabulation analysis will give me a > table with the common areas for each class from each raster and this will go > into other analysis. I can do it with o

Re: [Numpy-discussion] Crosstab

2010-07-17 Thread Friedrich Romstedt
2010/7/14 Ionut Sandric : > I have two raster data and I would like to do a crosstabulation between them > and export the results to a table in a text file. Is it possible to do it > with NumPy? Does someone have an example? Am I understanding you correctly when I suppose you mean what is explai

Re: [Numpy-discussion] Difference between shape=() and shape=(1,)

2010-07-17 Thread Friedrich Romstedt
2010/7/14 John Reid : > That sounds useful but I should have said: sometimes I need to replace > other values that aren't NaNs. Sorry, for the double dumb recommendation of nan_to_num, but when replacing other normal values mabe you can use: >>> a = numpy.asarray(1) >>> b = numpy.asarray([10, 1])

Re: [Numpy-discussion] Difference between shape=() and shape=(1,)

2010-07-17 Thread Friedrich Romstedt
2010/7/13 John Reid : > Hi, > > I have some arrays of various shapes in which I need to set any NaNs to > 0. I just ran across numpy.nan_to_num(): >>> a = numpy.log(-1) >>> b = numpy.log([-1, 1]) >>> a nan >>> b array([ NaN, 0.]) >>> numpy.nan_to_num(a) 0.0 >>> numpy.nan_to_num(b) array([ 0.,

Re: [Numpy-discussion] __array__struct__: about using PyCapsule instead of PyCObject for Python 2.7

2010-07-17 Thread Charles R Harris
On Sat, Jul 17, 2010 at 8:51 AM, Pauli Virtanen wrote: > Wed, 30 Jun 2010 12:13:38 -0600, Charles R Harris wrote: > [clip] > >> > Grrr... I didn't see the point, myself, I'm tempted to deprecate 2.7 > >> > just > >> to > >> > get even. There are some routines in the numpy/core/src includes that >

Re: [Numpy-discussion] __array__struct__: about using PyCapsule instead of PyCObject for Python 2.7

2010-07-17 Thread Pauli Virtanen
Wed, 30 Jun 2010 12:13:38 -0600, Charles R Harris wrote: [clip] >> > Grrr... I didn't see the point, myself, I'm tempted to deprecate 2.7 >> > just >> to >> > get even. There are some routines in the numpy/core/src includes that >> > you might want to copy, they will allow you to use a common inter

Re: [Numpy-discussion] _wrapit bug?

2010-07-17 Thread Charles R Harris
On Sun, Jun 20, 2010 at 2:43 PM, Benjamin Root wrote: > Hi, I was just digging through the fromnumeric.py code when I noticed that > the function _wrapit used asarray() rather than asanyarray(). I don't know > if this function really gets used anymore (as it gets called in special > situations),