comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » python, strange result
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
python, strange result [message #91721] Fri, 14 August 2015 08:22 Go to previous message
Dae-Kyu Shin is currently offline  Dae-Kyu Shin
Messages: 25
Registered: February 2015
Junior Member
Here is example code

pro test4

compile_opt idl2

x = indgen(4)
y = indgen(3)
z = indgen(4, 3)



python.run, 'from scipy import interpolate'
f = python.interpolate.interp2d(x, y, z)
print, f(x, y)


end



The output of "f" is
0.00000000 4.0000000 8.0000000 1.0000000
5.0000000 9.0000000 2.0000000 6.0000000
10.000000 3.0000000 7.0000000 11.000000

What happend?
Exact answer is "z".
[Message index]
 
Read Message
Read Message
Previous Topic: Apply a shapefile to raster images in IDL
Next Topic: plot function performance

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:10:50 PDT 2025

Total time taken to generate the page: 0.00419 seconds