Jeff Whitaker wrote:
> Armin Moser wrote:
>> Jeff Whitaker wrote:
>>  
>>> Armin Moser wrote:
>>>    
>>>> Hi,
>>>>
>>>> I would like to interpolate an array of shape (801,676) to regularily
>>>> spaced datapoints using griddata. This interpolation is quick if the
>>>> (x,y) supporting points are computed as X,Y = meshgrid(x,y). If this
>>>> condition is not fullfilled the delaunay triangulation is extremely
>>>> slow, i.e. not useable. Is this a known property of the used
>>>> triangulation? The triangulation can be performed with matlab without
>>>> any problems.
>>>>
>>>> Armin
>>>>         
>>> Armin:  You could try installing the natgrid toolkit and see if that
>>> speeds up griddata at all.  If not, please post a test script with data
>>> and maybe we can figure out what is going on.
>>>     
>> I have already tried natgrid and it didn't improve the situation. As
>> suggested I append a script demonstrating the problem.
>>
>> Thanks
>> Armin
>>   
> 
> Armin:  On my mac, your two benchmarks take 15 and 14 seconds.  Do you
> consider that too slow?
No definitely not but up to now I always killed the process (after more
than 10 minutes). I tried the script again and it worked... I have to
check the original on monday at work.
> 
> Perhaps this is just a toy example to test griddata, but I assume you
> realize that you wouldn't normally use griddata to interpolate data on
> one regular grid to another regular grid.  griddata is strictly for
> interpolating scatter data (not on a regular mesh) to a regular mesh.
Yes I do, but the supporting points of the second example are not on a
regular grid.

Thanks a lot
Armin

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to