Re: [Numpy-discussion] Removing scipy.stsci was [Re: [SciPy-dev] Deprecate chararray [was Plea for help]]

2009-08-20 Thread James Turner
Hi Chris & Stefan, I will be around for most of the weekend (as I believe will Perry). I'm not sure I'll be able to contribute a lot to coding, but if there's any stuff you want to co-ordinate between STScI and Stefan's scikit, let me know if I can help. That's probably about the most useful thing

Re: [Numpy-discussion] cubic spline function in numarray or numpy

2008-08-06 Thread James Turner
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 w

Re: [Numpy-discussion] Core dump during numpy.test()

2008-07-30 Thread James Turner
> oops. It is ATLAS. I was able to run with a nonoptimized lapack. Just to confirm, it also works for me when I use Netlib BLAS instead of ATLAS. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/num

Re: [Numpy-discussion] Core dump during numpy.test()

2008-07-29 Thread James Turner
> This smells like an ATLAS problem. You should seed a note to Clint > Whaley (the ATLAS guy). IIRC, ATLAS has some hand coded asm routines and > it seems that support for these very new processors might be broken. I believe the machine is a couple of years old, though it's a fairly high-end wo

Re: [Numpy-discussion] FFT usage / consistency

2008-07-29 Thread James Turner
> Rather than look for errors in the scaling factors or errors in your code, I > think that you should try to expand your understanding of the (subtly) > different > types of Fourier representations. I'd strongly recommend "The Fourier Transform and its Applications" by Bracewell, if that helps.

Re: [Numpy-discussion] Core dump during numpy.test()

2008-07-29 Thread James Turner
Thanks everyone. I think I might try using the Netlib BLAS, since it's a server installation... but please let me know if you'd like me to troubleshoot this some more (the sooner the easier). James. ___ Numpy-discussion mailing list Numpy-discussion@sci

Re: [Numpy-discussion] Core dump during numpy.test()

2008-07-29 Thread James Turner
> Are you using ATLAS? If so, where did you get it and what cpu do you have? Yes. I have Atlas 3.8.2. I think I got it from http://math-atlas.sourceforge.net. I also included Lapack 3.1.1 from Netlib when building it from source. This worked on another machine. According to /proc/cpuinfo, I have

[Numpy-discussion] Core dump during numpy.test()

2008-07-29 Thread James Turner
Thanks, Robert. > Can you do > > numpy.test(verbosity=2) OK. Here is the line that fails: check_matvec (numpy.core.tests.test_numeric.TestDot)Floating exception (core dumped) > A gdb backtrace would also help. OK. I'm pretty ignorant about using debuggers, but I did "gdb python core.23696" a

[Numpy-discussion] Core dump during numpy.test()

2008-07-29 Thread James Turner
I have built NumPy 1.1.0 on RedHat Enterprise 3 (Linux 2.4.21 with gcc 3.2.3 and glibc 2.3.2) and Python 2.5.1. When I run numpy.test() I get a core dump, as follows. I haven't noticed any special errors during the build. Should I post the entire terminal output from "python setup.py install"? Mayb

Re: [Numpy-discussion] Ctypes required? Fails to build.

2008-07-04 Thread James Turner
Thanks, Robert and Stefan for your helpful replies. It makes a big difference to know which problem I need to solve and which I don't :-). Unfortunately I'm still getting those undefined symbol errors for certain maths functions. I tried "python setup.py build_ext -lm build" and don't have $LDFLAG

[Numpy-discussion] Ctypes required? Fails to build.

2008-07-02 Thread James Turner
Hello, I'm trying to build Python 2.5.1 on Solaris 9 with the Sun WorkShop 6 compiler, but it is failing to build the ctypes extension. Can anyone tell me whether NumPy 1.1 (or 1.04) can work without ctypes, please? What about SciPy 0.6? Maybe that's a silly question, but I can't see how to make i

Re: [Numpy-discussion] Numpy-discussion Digest, Vol 19, Issue, 44

2008-04-10 Thread James Turner
Hi Robert et al., > Please do not respond to digest messages. If you want to respond to > messages, subscribe to receive messages individually. Respond to the > just messages you are interested in and keep the Subject lines intact. Just a suggestion, which I hope doesn't annoy anyone :-). I rece

Re: [Numpy-discussion] GPU implementation?

2007-05-31 Thread James Turner
Hi Martin, > I was wondering if anyone has thought about accelerating NumPy with a > GPU. For example nVidia's CUDA SDK provides a feasible way to offload > vector math onto the very fast SIMD processors available on the GPU. > Currently GPUs primarily support single precision floats and are n

Re: [Numpy-discussion] Question about Optimization (Inline, and Pyrex)

2007-04-17 Thread James Turner
Hi Anne, Your reply to Lou raises a naive follow-up question of my own... > Normally, python's multithreading is effectively cooperative, because > the interpreter's data structures are all stored under the same lock, > so only one thread can be executing python bytecode at a time. > However, man

Re: [Numpy-discussion] nd_image.affine_transform edge effects

2007-04-11 Thread James Turner
Hi Stefan, Sorry for the slow reply to this. > Thanks for spotting that. When I fix those lines, I see: > > [[ 3.901 3.099 2.099 1.1002 1.8998 2.901 ] > [ 3.901 3.099 2.099 1.1002 1.8998 2.901 ]] Actually, I think I made a mis

Re: [Numpy-discussion] nd_image.affine_transform edge effects

2007-04-04 Thread James Turner
> It looks like the last output value is produced by reflecting the > input and then interpolating, but presumably then the first value > should be 3.9, for consistency, not 3.1? Does that make sense? Aargh. I think I see what's happening now. The input is supposed to be interpolated and then r

Re: [Numpy-discussion] nd_image.affine_transform edge effects

2007-04-04 Thread James Turner
> OK, that was a one-line patch. Please test to see if there are any > subtle conditions on the border that I may have missed. I know of one > already, but I'd be glad if you can find any others :) Thanks, Stefan! That looks much better. Today I finally had time to figure out the basics of SV

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-26 Thread James Turner
PS... (sorry for all the posts, for anyone who isn't interested...) > Agreed, it looks like aliasing. Nevertheless, any resampling > procedure is supposed to deal with this internally, right? Either by > lowpass filtering (traditional case), or by spline fitting (spline > case as described by Unse

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-24 Thread James Turner
Hi Stéfan, > Agreed, but the aliasing effects isn't not the problem here, as it > should be visible in the input image as well. It's a bit academic now that Zach seems to have found the answer, but I don't think this is true. Aliasing is *present* in the input image, but is simply manifested as

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-24 Thread James Turner
Hi Zach, > Based on my reading of the two excellent Unser papers (both the one > that ndimage's spline code is based on, and the one that Travis > linked to), it seems like a major point of using splines for > interpolation is *better* behavior in the case of non-band-limited > data than the

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-23 Thread James Turner
Hi Zach, > Hmm, this is worrisome. There really shouldn't be ringing on > continuous-tone images like Lena -- right? (And at no step in an > image like that should gaussian filtering be necessary if you're > doing spline interpolation -- also right?) That's hard to say. Just because it's mainly

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-23 Thread James Turner
Thanks for the explanation, Travis. It now looks like there are 2 distinct issues getting mixed up here, however. First, there is the issue of the mirror symmetry of the spline algorithm affecting the data towards the edges, as described by Peter and Travis (this is probably also what Anne is refe

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-23 Thread James Turner
Hi Zach, > further I'm sorry to have caused Peter to be further bothered about > this non-issue. Don't worry -- I have let him know that we've probably figured it out. I hope Stefan agrees. > I now (hopefully) understand that the spline "pre-filter", while > explicitly analogous to a traditi

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-22 Thread James Turner
By the way, ringing at sharp edges is an intrinsic feature of higher- order spline interpolation, right? I believe this kind of interpolant is really intended for smooth (band-limited) data. I'm not sure why the pre-filtering makes a difference though; I don't yet understand well enough what the pr

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-22 Thread James Turner
Hi Zachary, OK - I sent Peter the URL for your post... Cheers, James. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-22 Thread James Turner
The people at STScI put me in touch with Peter Verveer, the author of nd_image. Unfortunately Peter is currently unable to maintain the code (either in numarray or scipy), but he did send me some comments on the problem discussed in this thread. Here's what he said: James. - Hi James, Yes,

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-19 Thread James Turner
Thanks, Stefan. > In [25]: import numpy as N > In [26]: x = N.array([[4,3,8,1],[4,3,8,1.]]) > In [27]: > ndi.geometric_transform(x,shift,output_shape=(2,6),prefilter=False,order=0,cval=-1) > Out[27]: > array([[-1., 3., 8., 1., 8., -1.], > [-1., 3., 8., 1., 8., -1.]]) Your example se

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-16 Thread James Turner
Hi Stefan, > I'd like to confirm that you see the same results when running your > script: > > [[ 4. 3. 2. 1.] > [ 4. 3. 2. 1.]] > [[-1. 3.12520003 2.11439991 1.0171 1.87479997 -1.] > [-1. 3.12520003 2.11439991 1.0171 1.87479997 -1.]] > [[-1.

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-15 Thread James Turner
Sorry I accidentally broke this thread in 2 (see thread of March 9). I tried manually adding the right reference in the mail header to continue the same thread, but obviously got it wrong (I think because I replied to the digest email instead of starting a new one). Not sure whether there is a bet

Re: [Numpy-discussion] nd_image.affine_transform edge effects

2007-03-15 Thread James Turner
Hi Stefan, Thanks for the suggestions! > Is this related to > > http://projects.scipy.org/scipy/scipy/ticket/213 > > in any way? As far as I can see, the problems look different, but thanks for the example of how to document this. I did confirm that your example exhibits the same behaviour und

[Numpy-discussion] nd_image.affine_transform edge effects

2007-03-09 Thread James Turner
Last year I wrote a program that uses the affine_transform() function in numarray to resample and co-add datacubes with WCS offsets in 3D. This function makes it relatively easy to handle N-D offsets and rotations with a smooth interpolant, which is exactly what I wanted. However, I am finding that