Re: [Numpy-discussion] Meshgrid with Huge Arrays

2010-10-08 Thread sicre
My program works with NrHorPixels=10 NrVerPixels=10 NrCellsPerPixel=16 but not with NrHorPixels=2048 NrVerPixels=2048 NrCellsPerPixel=100 The problem is in the variable Z definition and in the meshgrid, getting MemoryError and ValueError: dimensions too large. Is there any solution to avoid such

Re: [Numpy-discussion] Meshgrid with Huge Arrays

2010-10-07 Thread Nadav Horesh
: Thu 07-Oct-10 12:21 To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] Meshgrid with Huge Arrays I used your suggestion, but it keeps getting me those errors mentioned, but on the definition of Z (line of the following code): from pylab import * import numpy as np #VARIABLES

Re: [Numpy-discussion] Meshgrid with Huge Arrays

2010-10-07 Thread sicre
I used your suggestion, but it keeps getting me those errors mentioned, but on the definition of Z (line of the following code): from pylab import * import numpy as np #VARIABLES NrHorPixels=512 NrVerPixels=512 NrCellsPerPixel=16 GaussianCenterX=256 GaussianCenterY=256 SigmaX=1 SigmaY=1 Amplitud

Re: [Numpy-discussion] Meshgrid with Huge Arrays

2010-10-06 Thread Nadav Horesh
@scipy.org Subject: [Numpy-discussion] Meshgrid with Huge Arrays I do not have good programming skills, I am trying to create a 2048x2048 3D pixel array where each pixel has 100 cells. I am using meshgrid in order to create a 3D array, then adding a gaussian function to the entire array centered

[Numpy-discussion] Meshgrid with Huge Arrays

2010-10-06 Thread sicre
I do not have good programming skills, I am trying to create a 2048x2048 3D pixel array where each pixel has 100 cells. I am using meshgrid in order to create a 3D array, then adding a gaussian function to the entire array centered in (1024,1024). I am having three types of errors: #FIRST ERROR: