cubic spline function in numarray or numpy
hi list, I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can't find "ndimage" Would someone point me to 1-D cubic spline functions either in numarray or numpy? and their help pages? I use python 2.3.5 and numpy 1.0.1. Are they too old to use cubic spline? thanks, Shawn
You're best off using scipy. Just Google search for "scipy spline": e.g. <http://www.scipy.org/Cookbook/Interpolation> <http://xinqingpeng.blogspot.com/2007/07/scipy-spline-example.html> Gary R. Gong, Shawn (Contractor) wrote:
hi list,
I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can’t find “ndimage”
Would someone point me to 1-D cubic spline functions either in numarray or numpy? and their help pages?
I use python 2.3.5 and numpy 1.0.1. Are they too old to use cubic spline?
thanks,
Shawn
Hi Shawn,
I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can’t find “ndimage”
Numpy provides tools for creating and dealing with multidimensional arrays and some basic FFT and linear algebra functions. You want to look at scipy, a set of packages built on numpy that provide more sophisticated domain-specific functionality. Specifically, ndimage is part of *scipy*, not numpy. Zach On Aug 6, 2008, at 11:46 AM, Gong, Shawn (Contractor) wrote:
hi list,
I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can’t find “ndimage”
Would someone point me to 1-D cubic spline functions either in numarray or numpy? and their help pages?
I use python 2.3.5 and numpy 1.0.1. Are they too old to use cubic spline?
thanks,
Shawn
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
You can access nd_image by: from numpy.numarray import nd_image but as Zach noted, scipy.interpolate is what you are looking for. Nadav. -----הודעה מקורית----- מאת: numpy-discussion-bounces@scipy.org בשם Zachary Pincus נשלח: ד 06-אוגוסט-08 19:09 אל: Discussion of Numerical Python נושא: Re: [Numpy-discussion] cubic spline function in numarray or numpy Hi Shawn,
I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can’t find “ndimage”
Numpy provides tools for creating and dealing with multidimensional arrays and some basic FFT and linear algebra functions. You want to look at scipy, a set of packages built on numpy that provide more sophisticated domain-specific functionality. Specifically, ndimage is part of *scipy*, not numpy. Zach On Aug 6, 2008, at 11:46 AM, Gong, Shawn (Contractor) wrote:
hi list,
I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can’t find “ndimage”
Would someone point me to 1-D cubic spline functions either in numarray or numpy? and their help pages?
I use python 2.3.5 and numpy 1.0.1. Are they too old to use cubic spline?
thanks,
Shawn
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Thank you both, Nadav and Zach. Shawn -----Original Message----- From: numpy-discussion-bounces@scipy.org [mailto:numpy-discussion-bounces@scipy.org] On Behalf Of Nadav Horesh Sent: Wednesday, August 06, 2008 12:16 PM To: Discussion of Numerical Python Subject: RE: [Numpy-discussion] cubic spline function in numarray or numpy You can access nd_image by: from numpy.numarray import nd_image but as Zach noted, scipy.interpolate is what you are looking for. Nadav. -----הודעה מקורית----- מאת: numpy-discussion-bounces@scipy.org בשם Zachary Pincus נשלח: ד 06-אוגוסט-08 19:09 אל: Discussion of Numerical Python נושא: Re: [Numpy-discussion] cubic spline function in numarray or numpy Hi Shawn,
I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can’t find “ndimage”
Numpy provides tools for creating and dealing with multidimensional arrays and some basic FFT and linear algebra functions. You want to look at scipy, a set of packages built on numpy that provide more sophisticated domain-specific functionality. Specifically, ndimage is part of *scipy*, not numpy. Zach On Aug 6, 2008, at 11:46 AM, Gong, Shawn (Contractor) wrote:
hi list,
I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can’t find “ndimage”
Would someone point me to 1-D cubic spline functions either in numarray or numpy? and their help pages?
I use python 2.3.5 and numpy 1.0.1. Are they too old to use cubic spline?
thanks,
Shawn
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Nadav Horesh wrote:
You can access nd_image by:
from numpy.numarray import nd_image
but as Zach noted, scipy.interpolate is what you are looking for.
Nadav.
The ndimage modules is now officially supported by the scipy project. You can get it from scipy.ndimage(). Chris -- Christopher Hanley Systems Software Engineer Space Telescope Science Institute 3700 San Martin Drive Baltimore MD, 21218 (410) 338-4338
Hi Shawn,
I am trying to find 1-D cubic spline function. But I am not able to call it. Error message can’t find “ndimage”
Ndimage is a module in SciPy, so you'd need to install that first, not just NumPy. I'm not really familar with the available 1-D cubic spline functions, but I think you will find those in SciPy too.
Would someone point me to 1-D cubic spline functions either in numarray or numpy? and their help pages?
Try looking at the cookbook: http://scipy.org/Cookbook
I use python 2.3.5 and numpy 1.0.1. Are they too old to use cubic spline?
I doubt it. Cheers, James.
participants (6)
-
Christopher Hanley -
Gary Ruben -
Gong, Shawn (Contractor) -
James Turner -
Nadav Horesh -
Zachary Pincus