Re: [Numpy-discussion] numpy.fft, yet again

2010-07-14 Thread David Goldsmith
On Mon, Jul 12, 2010 at 8:26 PM, David Goldsmith wrote: > 2010/7/12 Jochen Schröder > >> On 13/07/10 08:04, Eric Firing wrote: >> > On 07/12/2010 11:43 AM, David Goldsmith wrote: >> >> > From the docstring: >> >> >> >> "A[0] contains the zero-frequency term (the mean of the signal)" >> >> >> >>

Re: [Numpy-discussion] Crosstabulation

2010-07-14 Thread Ionut Sandric
Thank you Zack: 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 other softwares (

Re: [Numpy-discussion] Crosstabulation

2010-07-14 Thread Zachary Pincus
Hi Ionut, Check out the "tabular" package: http://parsemydata.com/tabular/index.html It seems to be basically what you want... it does "pivot tables" (aka crosstabulation), it's built on top of numpy, and has simple data IO tools. Also check out this discussion on "pivot tables" from the num

[Numpy-discussion] Crosstabulation

2010-07-14 Thread Ionut Sandric
Sorry, the first email was sent before to finish it... Hi: 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? Thank you, Ionut _

[Numpy-discussion] Crosstab

2010-07-14 Thread Ionut Sandric
Hi: 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? T ___ NumPy-Discussion mailing list NumPy-Di

[Numpy-discussion] cannot set dtype on record array with 04 datetime records

2010-07-14 Thread John Hunter
I use record arrays extensively with python datetimes, which works if you pass in a list of lists of data with the names. numpy can accurately infer the dtypes and create a usable record array. Eg, import datetime import numpy as np rows = [ [datetime.date(2001,1,1), 12, 23.],

Re: [Numpy-discussion] HOWTO build NumPy without external math libs

2010-07-14 Thread David Cournapeau
On Sat, Jul 10, 2010 at 6:15 PM, Stefan Seefeld wrote: > Hello, > > the NumPy docs (at http://docs.scipy.org/doc/numpy/user/install.html) > suggest that NumPy doesn't require external linear algebra libraries > (such as ATLAS). How can I compiler NumPy without using them, even if > they are detect

Re: [Numpy-discussion] HOWTO build NumPy without external math libs

2010-07-14 Thread Charles R Harris
On Wed, Jul 14, 2010 at 12:25 AM, Stefan Seefeld wrote: > On 07/13/2010 04:05 PM, Christopher Barker wrote: > > Robert Kern wrote: > > > >>> I don't believe that there are any such options, but is there a > particular > >>> reason why you *don't* want to use such external libs if you have them? >

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

2010-07-14 Thread John Reid
Benjamin Root wrote: > On Tue, Jul 13, 2010 at 12:45 PM, Kurt Smith > wrote: > > On Tue, Jul 13, 2010 at 11:54 AM, John Reid > mailto:j.r...@mail.cryst.bbk.ac.uk>> > wrote: > > Hi, > > > > I have some arrays of various shapes in which I need t