Jevy Wang's Blog

Translante IDL script to python

IDL programming language

IDL, short for Interactive Data Language, is a programming language used for data analysis. It is popular in particular areas of science, such as astronomy, atmospheric physics and medical imaging. (https://en.wikipedia.org/wiki/IDL_(programming_language))

IDL to python (numpy) document

idlwrap API

idlwrap helps you port IDL code to python by providing an IDL-like interface to numpy and scipy.

Note

  • Array

    • IDL a[i, *] is the same with Python a[:,i]
      There are two different ways of storing a matrix/array in memory: column-major and row-major.

    • IDL array index include the last element:

      1
      2
      IDL> (FLTARR(10))[3:5]
      0.00000 0.00000 0.00000 ; -> three elements
      1
      2
      >>> np.zeros(10)[3:5]
      array([0., 0.]) # -> two elements

专题:

本文发表于 2020-03-12,最后修改于 2020-03-13。

本站永久域名jevy.wang,也可搜索「 Jevy Wang's Blog 」找到我。

期待关注我的 知乎专栏 ,查看最近的文章和动态。


上一篇 « IP Camera BAT 310 Hacking

赞赏支持

请我吃胡萝卜 =^_^=

i ali

支付宝

i wechat

微信

推荐阅读

Big Image