Re: [gdal-dev] GDAL and numpy, masking arrays

2008-11-12 Thread Armin Burger
I guess I found it, looks like the function filled(c, 255) does this. Armin On 12/11/2008 21:54, Armin Burger wrote: Chris thanks a lot for the quick and very helpful explanations. Is there a possibility to reset the masked values '--' after the calculation to a special value? Best regards

Re: [gdal-dev] GDAL and numpy, masking arrays

2008-11-12 Thread Armin Burger
Chris thanks a lot for the quick and very helpful explanations. Is there a possibility to reset the masked values '--' after the calculation to a special value? Best regards Armin On 12/11/2008 21:27, Christopher Barker wrote: Armin Burger wrote: maybe someone on this list has some experie

Re: [gdal-dev] GDAL and numpy, masking arrays

2008-11-12 Thread Christopher Barker
Armin Burger wrote: maybe someone on this list has some experience using numpy in combination with GDAL/Python and could give me some advice. For further questions about numpy, the numpy list is very helpful. difference can be easily calculated after reading both images into an array and sub

[gdal-dev] GDAL and numpy, masking arrays

2008-11-12 Thread Armin Burger
Hi everybody maybe someone on this list has some experience using numpy in combination with GDAL/Python and could give me some advice. I wanted to try to use GDAL/Python/numpy to caculate the difference between 2 images. The images are vegetation indexes for different dates. The direct diffe