<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://sichardt.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=IDL_Programmierung</id>
	<title>IDL Programmierung - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://sichardt.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=IDL_Programmierung"/>
	<link rel="alternate" type="text/html" href="https://sichardt.net/mediawiki/index.php?title=IDL_Programmierung&amp;action=history"/>
	<updated>2026-05-26T06:44:49Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in sichardt</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://sichardt.net/mediawiki/index.php?title=IDL_Programmierung&amp;diff=8&amp;oldid=prev</id>
		<title>Gabriel: Die Seite wurde neu angelegt: „IDL (Interactive Data Language) is a commercial &quot;programming language&quot; that is used for example in astro- and plasma-physics. The current version is developed…“</title>
		<link rel="alternate" type="text/html" href="https://sichardt.net/mediawiki/index.php?title=IDL_Programmierung&amp;diff=8&amp;oldid=prev"/>
		<updated>2016-08-24T17:42:33Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „IDL (Interactive Data Language) is a commercial &amp;quot;programming language&amp;quot; that is used for example in astro- and plasma-physics. The current version is developed…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;IDL (Interactive Data Language) is a commercial &amp;quot;programming language&amp;quot; that is used for example in astro- and plasma-physics. The current version is developed and sold by Exelisvis (http://www.exelisvis.com).&lt;br /&gt;
&lt;br /&gt;
An alternative that should be widely compatible is the GNU Data Language GDL that can be used for free (http://gnudatalanguage.sourceforge.net/).&lt;br /&gt;
&lt;br /&gt;
==Installation etc.==&lt;br /&gt;
===GDL Installation===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
to build library: netcdf with fpic&lt;br /&gt;
&lt;br /&gt;
cmake with -DPYTHON_MODULE=On&lt;br /&gt;
&lt;br /&gt;
===GDL and Python===&lt;br /&gt;
&lt;br /&gt;
===/CECL Keyword===&lt;br /&gt;
&lt;br /&gt;
The /CECL keyword is currently (version 0.9.5) not supported by GDL. Anyway, the GDL documentation states that this keyword is only important to Windows users. So I just removed that keyword in function calls (calls to external functions) without experiencing any problems.&lt;br /&gt;
&lt;br /&gt;
==Programming==&lt;br /&gt;
&lt;br /&gt;
===Concatenating Strings and other Datatypes===&lt;br /&gt;
In IDL/GDL the string datatype can be used easily by setting variables the following way:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;x = &amp;#039;text&amp;#039;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
In order to build up strings out of different phrases the &amp;#039;+&amp;#039; is used to concat them:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;x = &amp;#039;text&amp;#039;&lt;br /&gt;
y=&amp;#039;another text&amp;#039;&lt;br /&gt;
print, x+y&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
will print out &amp;#039;textanother text&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The same can be done with other datatypes when they are converted to the string datatype by means of the STRING() function:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;x = &amp;#039;text&amp;#039;&lt;br /&gt;
y=4.0&lt;br /&gt;
print, x+STRING(y)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Anyway, the print-out format will not be what you expect:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;text      4.00000&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
In order to get rid of the spaces, the STRTRIM() function can be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
===IDL runs fine but some standard procedures and functions are not found===&lt;br /&gt;
Strangely, IDL might run fine but complain from time to time when some included functions are called. In my case this happened when I wanted to use the coyote libraries for plotting. The solution is to make sure that the IDL library directory is in your IDL path:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;echo $IDL_PATH&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
If there is not something like /usr/share/itt/idl/idl6.4/lib in that path (version and distributor may be different) then add it. One option is to put &lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;export IDL_PATH=/usr/share/itt/idl/idl6.4/lib:$IDL_PATH&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
at the end of your /home/username/.bashrc file.&lt;/div&gt;</summary>
		<author><name>Gabriel</name></author>
	</entry>
</feed>