[Numpy-discussion] first recarray steps

Robert Kern robert.kern@gmail....
Wed May 21 01:57:08 CDT 2008

On Wed, May 21, 2008 at 1:48 AM, Vincent Schut <schut@sarvision.nl> wrote:
> Christopher Barker wrote:

>> Also, if you image data is rgb, usually, that's a (width, height, 3)
>> array: rgbrgbrgbrgb... in memory. If you have a (3, width, height)
>> array, then that's rrrrrrr....gggggggg......bbbbbbbb. Some image libs
>> may give you that, I'm not sure.
> My data is. In fact, this is a simplification of my situation; I'm
> processing satellite data, which usually has more (and other) bands than
> just rgb. But the data is definitely in shape (bands, y, x).

I don't think record arrays will help you much, then. Individual
records need to be contiguous (bar padding). You can't interleave

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 truth."
 -- Umberto Eco

More information about the Numpy-discussion mailing list