summaryrefslogtreecommitdiffstats
path: root/software/idl.page
diff options
context:
space:
mode:
Diffstat (limited to 'software/idl.page')
-rw-r--r--software/idl.page33
1 files changed, 28 insertions, 5 deletions
diff --git a/software/idl.page b/software/idl.page
index 00b444a..78e41b3 100644
--- a/software/idl.page
+++ b/software/idl.page
@@ -1,7 +1,7 @@
---
format: rst
categories: software
-toc: yes
+toc: no
...
==================
@@ -24,12 +24,29 @@ Syntax
-----------------
Procedures are called with a comma seperated list-like syntax where the first
-element is the procedure and the following elements are arguments.
+element is the procedure and the following elements are arguments.
-Command Interface
------------------
+The ``!`` character as a prefix is used to designate system variables.
+
+``;`` is used for commenting.
+
+``.`` can be used to start executive commands,
+Indicate constant is floating point
+Start executive command
+
+``&`` separates multiple statements/expressions on a single line (like ``;``
+often does in other languages).
+
+``*`` can be used for pointer dereferencing, as well as for multiplication
+and a wild card in array slicing.
-Instead of the ever-standard ``!`` to execute system commands, use ``$``.
+``@`` is used to include files, or execute a batch file.
+
+``?`` brings up the IDL GUI help interface when entered at the
+command line.
+
+Instead of the ever-standard ``!`` to execute system commands, use ``$``. Also,
+an ``$`` at the end of a line means continue to the next line, like ``\``.
X Windows
--------------
@@ -43,3 +60,9 @@ add these lines to your ``~/.Xdefaults``::
and then run ``xrdb -merge ~/.Xdefault``. (This tip from
http://star.pst.qub.ac.uk/help/idl.shtml)
+
+Basic Constructors
+--------------------
+BINDGEN, CINDGEN, DCINDGEN, DINDGEN, FINDGEN, L64INDGEN, LINDGEN, UINDGEN, UL64INDGEN, and ULINDGEN create arrays of increasing values, similar to range() in python; the prefix characters indicate the data type (B = byte, C = complex integer, etc).
+
+The exponent notation ``5.67e3`` creates a floating point number, while ``5.67d3`` creates a double length float. \ No newline at end of file