[SciPy-User] [Matplotlib-users] griddata
Ryan May
rmay31 at gmail.com
Mon Feb 14 10:06:48 EST 2011
On Mon, Feb 14, 2011 at 8:40 AM, Nils Wagner
<nwagner at iam.uni-stuttgart.de> wrote:
> Hi all,
>
> Is it possible to apply griddata to polar coordinates or
> do I need cartesian coordinates ?
>
> http://matplotlib.sourceforge.net/api/mlab_api.html#matplotlib.mlab.griddata
You can keep the data in polar coordinates, you just need to pass in
the locations of the points in cartesian coordinates:
x = r * cos(theta)
y = r * sin(theta)
Ryan
--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
More information about the SciPy-User
mailing list