python - Scipy readav 和 IDL 类型

标签 python scipy idl-programming-language

我正在尝试使用 numpy readsav 恢复 sav 文件。 sav 文件包含我定义的 idl 对象数组(使用我自己的类型)。

我用readsav获得的记录中完全不存在这种类型信息。 dtype.name 属性返回一个整数,这对我来说似乎是任意的(而且我不知道如何在 IDL 中获取这个数字)。

有办法获取这些信息吗?

谢谢

最佳答案

我猜它是堆标识符:

IDL> o = obj_new('IDLgrView')
IDL> print, obj_valid(o, /get_heap_identifier)
           1

关于python - Scipy readav 和 IDL 类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19117955/

相关文章:

python - Python 中无法解析 JSON 错误

python - 从控制台读取未知行数

java - Java/Scala 中类似 Scipy 的功能?

idl-programming-language - 如何在for循环中声明变量? (IDL)

Python - Tensorflow - LSTM- ValueError : Error when checking model target: expected dense_16 to have shape (None, 100) 但得到了形状为 (16, 2) 的数组

python - 一种通过使用通配符更改文件名中的索引来迭代一个规则的方法(在 snakemake 中)

python - Octave/Matlab 与 Scipy 中的周期图

python - 调用 scipy.linalg.cython_blas.daxpy 的正确方法是什么?

error-handling - 如何正确执行错误处理?

c++ - 格式化二进制 double 二维矩阵以读入 IDL 的最基本方法是什么?