On Wed, May 20, 2009 at 7:24 AM, Cristi Constantin wrote:
> Thank you for your help. :)
>
> I used this :
> try: NData[ (NData==transparent)[:len(OData)] ] = OData[
> (NData==transparent)[:len(OData)] ]
> except: pass
>
> That means overwrite all "transparent" data from NData with valid data from
's the only one that works.
--- On Mon, 5/18/09, Cristi Constantin wrote:
From: Cristi Constantin
Subject: [Numpy-discussion] Overlap arrays with "transparency"
To: "Numpy Discussion"
Date: Monday, May 18, 2009, 5:37 AM
Good day.
I am working on this algorithm for a few
On Mon, May 18, 2009 at 11:38 AM, Michael S. Gilbert
wrote:
> On Mon, 18 May 2009 05:37:09 -0700 (PDT), Cristi Constantin wrote:
>> Good day.
>> I am working on this algorithm for a few weeks now, so i tried almost
>> everything...
>> I want to overlap / overwrite 2 matrices, but completely ignor
On Mon, 18 May 2009 05:37:09 -0700 (PDT), Cristi Constantin wrote:
> Good day.
> I am working on this algorithm for a few weeks now, so i tried almost
> everything...
> I want to overlap / overwrite 2 matrices, but completely ignore some values
> (in this case ignore 0)
> Let me explain:
>
> a =
Good day.
I am working on this algorithm for a few weeks now, so i tried almost
everything...
I want to overlap / overwrite 2 matrices, but completely ignore some values (in
this case ignore 0)
Let me explain:
a = [
[1, 2, 3, 4, 5],
[9,7],
[0,0,0,0,0],
[5,5,5] ]
b = [
[0,0,9,9],
[1,1,1,1],
[2,2