Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project!

Re: [Matplotlib-users] interpolate inside a circle

 Re: [Matplotlib-users] interpolate inside a circle From: Carlos Grohmann - 2010-05-26 16:21:33 ```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 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@... > 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. ```

 [Matplotlib-users] interpolate inside a circle From: Carlos Grohmann - 2010-05-26 00:47:41 ```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. ```
 Re: [Matplotlib-users] interpolate inside a circle From: Fabrice Silva - 2010-05-26 12:38:58 ```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 ```
 Re: [Matplotlib-users] interpolate inside a circle From: Carlos Grohmann - 2010-05-26 16:21:33 ```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 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@... > 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. ```
 Re: [Matplotlib-users] interpolate inside a circle From: Jose Gomez-Dans - 2010-05-26 18:39:25 Attachments: Message as HTML ```On 26 May 2010 17:20, Carlos Grohmann 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) > 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 ```