I am trying to restore a sav file with numpy readsav. The sav file contains an array of idl objects I have defined (with my own types).

This type information is completely absent from the recarray I obtain with readsav. The dtype.name property returns an integer which seems arbitrary to me (and I don't know how to get this number in IDL).

Is there a way to get this information ?

Thanks

有帮助吗?

解决方案

I'm guessing it is the heap identifier:

IDL> o = obj_new('IDLgrView')
IDL> print, obj_valid(o, /get_heap_identifier)
           1
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top