[SciPy-User] scipy 0.9 deb

Josselin Jacquard josselin.jacquard@gmail....
Fri Nov 12 09:44:27 CST 2010


2010/11/10 Pauli Virtanen <pav@iki.fi>:
> On Wed, 10 Nov 2010 20:55:14 +0100, Josselin Jacquard wrote:
>> 2010/11/10 Pauli Virtanen <pav@iki.fi>:
> [clip]
>> I'm able to construct my Cloutch interpolator, but I don't know how to
>> evaluate it on a given point.
>> I see in the pyx file this declaration def _evaluate_${DTYPE}(self,
>> np.ndarray[np.double_t, ndim=2] xi), but I don't know how to call it :
>>
>> self.interpolator = CloughTocher2DInterpolator(self.srcdots,
>>                                                self.dstdots)
>> result = self.interpolator._evaluate_((x,y)) # is this correct ?
>
> Like this:
>
>        result = self.interpolator((x, y))
>
> It should perhaps also allow the more obvious interpolator(x, y) syntax,
> but that part hasn't been done yet.

Thanks, it works like a charm.

Another question not related to scipy, I would like to print
fullscreen a calibration image (just a centered cross), does anyone
know how to do this in python ?
This calibration image is use to acquire coordinates used for my
Cloutch interpolator.

Bye

Joss

>
> --
> Pauli Virtanen
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>


More information about the SciPy-User mailing list