请选择 进入手机版 | 继续访问电脑版
爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 20980|回复: 15

[分享资料] IDL8.5 Python Bridge

[复制链接]

新浪微博达人勋

发表于 2016-4-13 08:45:11 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
本帖最后由 longlivehj 于 2016-4-13 08:50 编辑

IDL8.5百度云网盘下载


无标题.png


Python Bridge

IDL now has a bridge from IDL to Python and Python to IDL. From your IDL code, you can now access any Python modules, transfer variables, and call built-in functions. Similarly, from your Python code, you can make IDL calls, transfer variables, and manipulate IDL objects. The bridge has the following features:

Works with Python 2.7+ and Python 3.4+
Access to all IDL routines and Python modules
Seamless: looks just like an IDL object or Python module
All bridge output is redirected to the standard output
Case sensitivity and row/column major is handled automatically
Can execute arbitrary command strings in either language
Automatic data conversion from IDL arrays to numpy arrays
Data is passed by reference when calling routines/methods
Can pass main variables back & forth
For example, within IDL, you could execute the following Python commands to create a matplotlib plot:

IDL> ran = Python.Import('numpy.random')
IDL> arr = ran.rand(100) ; call "rand" method
IDL> plt = Python.Import('matplotlib.pyplot')
IDL> p = plt.plot(arr)   ; call "plot", pass an array
IDL> void = plt.show(block=0) ; pass keyword

Within IDL, you can also directly enter Python "command-line mode":

IDL> >>>
>>> import matplotlib.pyplot as plt
>>> import numpy.random as ran
>>> arr = ran.rand(100)
>>> p = plt.plot(arr)
>>> plt.show()
>>>
IDL>

On the Python side, you can easily access all IDL functionality:

>>> from idlpy import IDL
>>> import numpy.random as ran
>>> arr = ran.rand(100)
>>> p = IDL.plot(arr, title='My Plot')
>>> p.color = 'red'
>>> p.save('myplot.pdf')
>>> p.close()
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-4-13 08:52:46 | 显示全部楼层
python胶水黏性很强~
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-4-13 18:04:56 | 显示全部楼层
楼主威武
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2016-4-18 09:55:50 | 显示全部楼层

好人啊,有8.5的crack。相信好使!
多谢啦
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-4-18 10:45:03 | 显示全部楼层
楼主威武,看你回帖都简洁明快,直击目标
虽然 不明 但是非常 觉厉
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-4-20 23:12:41 | 显示全部楼层
很好的东东,谢谢分享,希望大家用起来!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-4-27 23:11:51 | 显示全部楼层
xi谢谢楼主,找很久了{:5_231:}{:5_231:}
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-5-24 22:45:10 | 显示全部楼层
感谢,这个破解 IMSL 仿佛可用?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-5-24 22:45:43 | 显示全部楼层
请问楼主 有linux 下的licnese 或破解吗? 谢谢!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-6-29 16:02:29 | 显示全部楼层
freemanxu 发表于 2016-5-24 22:45
感谢,这个破解 IMSL 仿佛可用?

您的意思是 IMSL_*这个高级函数库系列,在IDL8.5里面可用啦?
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表