Re: [Numpy-discussion] Crosstabulation

2010-07-22 Thread Friedrich Romstedt
2010/7/20 Vincent Schut : > slope_bin_edges = [0, 3, 15, 35] > landuse_bin_edges = [0, 1, 2, 3] > crosstab = numpy.histogram2d(landuse, slope, bins=(landuse_bin_edges, > slope_bin_edges)) I like it! I guess the actual bins are [0, 3), [3, 15) and [15, 35)? >From the docs, that is not so clear. E

Re: [Numpy-discussion] Crosstabulation

2010-07-20 Thread Vincent Schut
On 07/19/2010 10:14 PM, Friedrich Romstedt wrote: > 2010/7/19 sandric ionut: >> For land-use a class would be for example forest, other would be orchard >> etc. For Slope gradient I would have values which<3 and between 3 and 7 >> etc. So, I will have 2 raster data with, let's say, 3 classes each

Re: [Numpy-discussion] Crosstabulation

2010-07-19 Thread Friedrich Romstedt
2010/7/19 sandric ionut : > For land-use a class would be for example forest, other would be orchard > etc. For Slope gradient I would have values which <3 and between 3 and 7 > etc. So, I will have 2 raster data with, let's say, 3 classes each: forest, > orchards and built-up area and for slope gr

Re: [Numpy-discussion] Crosstabulation

2010-07-19 Thread eat
us" yale.edu> > To: "Discussion of Numerical Python" scipy.org> > Sent: Wednesday, July 14, 2010 9:42:49 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul > Subject: Re: [Numpy-discussion] Crosstabulation > > Hi Ionut, > > Check out the "tabular" pac

Re: [Numpy-discussion] Crosstabulation

2010-07-19 Thread Ionut Sandric
Thank you Vincent: I will try with histogram Ionut - Original Message - From: "Vincent Schut" To: numpy-discussion@scipy.org Sent: Monday, July 19, 2010 12:00:38 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: [Numpy-discussion] Crosstabulation On 07/19/

Re: [Numpy-discussion] Crosstabulation

2010-07-19 Thread Vincent Schut
s, Vincent Schut. > > ---- > *From:* Friedrich Romstedt > *To:* Discussion of Numerical Python > *Sent:* Sun, July 18, 2010 12:09:04 AM > *Subject:* Re: [Numpy-discussion] Crosstabulation > > 2010/7/17 Robert Ker

Re: [Numpy-discussion] Crosstabulation

2010-07-19 Thread sandric ionut
___ From: Friedrich Romstedt To: Discussion of Numerical Python Sent: Sun, July 18, 2010 12:09:04 AM Subject: Re: [Numpy-discussion] Crosstabulation 2010/7/17 Robert Kern : > On Sat, Jul 17, 2010 at 13:11, Friedrich Romstedt > wrote: >> 2010/7/14 Ionut Sandric : >> I'm afrai

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] 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

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] Crosstabulation

2010-07-14 Thread Ionut Sandric
Athens, Beirut, Bucharest, Istanbul Subject: Re: [Numpy-discussion] Crosstabulation 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 bui

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 _