More efficient array processing

sturlamolden sturlamolden at yahoo.no
Fri Oct 24 10:52:26 EDT 2008


On Oct 23, 8:11 pm, "John [H2O]" <washa... at gmail.com> wrote:

> datagrid = numpy.zeros(360,180,3,73,20)

On a 32 bit system, try this instead:

datagrid = numpy.zeros((360,180,3,73,20), dtype=numpy.float32)

(if you can use single precision that is.)















More information about the Python-list mailing list