Replies: 3 comments 3 replies
-
Not sure to exactly understand what you are asking for, because of my limited technical background Do you mean : can you linked directly a .o or .so created for IDL in GDL ? Yes, I did that for quiet large and complex libs. in C without trouble. (and we read the raw Planck HFI data in GDL 😄 without trouble). You can have a look to I started to play with ICY/SPICE/NAIF, and yes I succeed to compile the C code ... but I did not located a tuto or demo up to now to test the IDL side. |
Beta Was this translation helpful? Give feedback.
-
going ahead ...
and succeed to compile ... |
Beta Was this translation helpful? Give feedback.
-
Was this issue resolved? I've been seeking a similar solution, to use GDL with the SPICE routines. In GDL, I can use linkimage procedure to link to a function: But when I use call_external, GDL crashes (exits) with the following message: I've searched for the error message above online, and have found several discussions relating to ImageMagick, but I'm not so sure this is a solution for our problem! Any help appreciated. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I got an IDL code that I should port to another language. I'm all new to IDL, currently, I'm trying to run that script in GDL to look at the output and compare the code's behaviour.
The IDL code uses NAIF SPICE toolkit [1], with it's IDL interface, "icy". From what I understand, the toolkit uses DLM, and the code accesses it with the DLM_register function. And to compile the IDL interface, it needs an "export.h" header that's provided by IDL that don't exist in GDL (and that seems to declare structures that don't exist in GDL).
So my question is this: is using DLM stuff from IDL supported by GDL ? Any idea if someone uses SPICE from GDL?
If not, as the code seems to only use a handful of functions, it might be possible to just wrap the ones I need and call them from the spice C interface with CALL_EXTERNAL, but I don't know how much work the IDL code does and what other incompatibilites lurk in the code.
[1] https://naif.jpl.nasa.gov/naif/toolkit.html
Beta Was this translation helpful? Give feedback.
All reactions