Error when defining function in GDL on Ubuntu 20 #1504
Replies: 6 comments
-
I am unable to reproduce your problem, with various versions of GDL including git version "around" 0.9.9 Unclear how do you proceed, the way you show it here is not clear. A question : did you put the function in a external file ? if you run it like :
it is not OK, and yes you will receive, in IDL or GDL :
|
Beta Was this translation helpful? Give feedback.
-
hello, works for me:
What you show us is the result of
@ should not be used to call procedures or functions. note that JULDAY and its reverse CALDAT are already present in GDL:
|
Beta Was this translation helpful? Give feedback.
-
All the code is written in a |
Beta Was this translation helpful? Give feedback.
-
@EdwardEisenhauer IDL behaves the same (below).
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your clarification. idlde (GUI) runs the same code with no problem (it has to interpret the script differently). Moving the functions into the separate .pro files resolved my issue and code was interpreted correctly by GDL. That you all! |
Beta Was this translation helpful? Give feedback.
-
incidentally, there is a gdlde |
Beta Was this translation helpful? Give feedback.
-
Stack Overflow question
I have a GDL v0.9.9 installed on my machine running Ubuntu 20.04. I am trying to write a function calculating a Julian Date:
Unfortunately, I get the error(s):
I compared my code with the documentation of IDL (as it should be "mutually intelligible") and it looked good for me. Is declaring/defining/calling a function in GDL different than in IDL?
Edit 1: I managed to run my code on the machine with IDL 8.5. The functions must be declared in the beginning of the file before any variables. However it does not change the behaviour of GDL.
Beta Was this translation helpful? Give feedback.
All reactions