IDL 8.5: other stuff
posted Tue 8 Sep 2015 by Michael Galloy under IDLThere are quite a few new features in IDL 8.5 that I have not covered in previous articles. Here is a summary list:
- There is now a
DIALOG_COLORPICKER
which you can present to users to choose a color:
- Analogous to the command line utility with the same name, IDL 8.5 adds a
WGET
routine to retrieve the contents of a URL:
IDL> wget('http://www.google.com/index.html', filename='google.html')<br />/Users/mgalloy/Desktop/google.html
-
In function graphics, the
BARPLOT
,ELLIPSE
, andPOLYGON
routines now support fill patterns. The new keywordsPATTERN_BITMAP
,PATTERN_ORIENTATION
,PATTERN_SPACING
, andPATTERN_THICK
specify the fill pattern. -
Before IDL 8.5, it was possible to have hashes of hashes of hashes, etc., but it was necessary to manually create each level of the hashes. Elements of a hash of a hash were accessed via
h['a', 'b']
, which was shorthand for(h['a'])['b']
. Now it is possible to have IDL automatically create the necessary levels of the hash during a hash assignment:
IDL> h = hash()
IDL> h['a', 'b', 'c'] = 5
IDL> h
{
"a": {
"b": {
"c": 5
}
}
}
- Server-side sockets actually have been present in IDL for awhile, but they are now documented.