interpolate inside a circle

Dears, I want to interpolate some irregular data using radial basis.
Can I interpolate only the data that falls inside a circle (or a
polygon)?

TIA

···

--
Prof. Carlos Henrique Grohmann - Geologist D.Sc.
Institute of Geosciences - Univ. of São Paulo, Brazil
http://www.igc.usp.br/pessoais/guano
Linux User #89721
________________
Can’t stop the signal.

May these pages help you?
http://www.scipy.org/Cookbook/RadialBasisFunctions
http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.Rbf.html

···

Le mardi 25 mai 2010 à 21:47 -0300, Carlos Grohmann a écrit :

Dears, I want to interpolate some irregular data using radial basis.
Can I interpolate only the data that falls inside a circle (or a
polygon)?

Thanks Fabrice.

I can interpolate my data using rbf, but only inside a rectangular
area (mesh). I'm looking into how to interpolate data inside a
circular area, that is, disregarding anything outside a circle (or a
polygon, like a convex hull)

tks

Carlos

···

On Wed, May 26, 2010 at 09:29, Fabrice Silva <silva@...1918...> wrote:

Le mardi 25 mai 2010 à 21:47 -0300, Carlos Grohmann a écrit :

Dears, I want to interpolate some irregular data using radial basis.
Can I interpolate only the data that falls inside a circle (or a
polygon)?

May these pages help you?
http://www.scipy.org/Cookbook/RadialBasisFunctions
http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.Rbf.html

------------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Prof. Carlos Henrique Grohmann - Geologist D.Sc.
Institute of Geosciences - Univ. of São Paulo, Brazil
http://www.igc.usp.br/pessoais/guano
Linux User #89721
________________
Can’t stop the signal.

If you can define your polygon/circle, you can filter your points and select only those within the boundary. You can do this with pnpoly if you have matplotlib (see this: <http://matplotlib.sourceforge.net/faq/howto_faq.html#test-whether-a-point-is-inside-a-polygon>). You can then interpolate your points, into a regular grid, and discard the gridcell values outside your region of interest.

J

···

On 26 May 2010 17:20, Carlos Grohmann <carlos.grohmann@…287…> wrote:

I can interpolate my data using rbf, but only inside a rectangular

area (mesh). I’m looking into how to interpolate data inside a

circular area, that is, disregarding anything outside a circle (or a

polygon, like a convex hull)