Monthly Archives: July 2012

The command line and the Workbench

There are two primary ways of using IDL: the command line (CLI*) and the Workbench (WB). The CLI allows direct access to the IDL interpreter. The WB is a separate program that sits on top of IDL and provides a slew … Continue reading

Posted in workbench | Tagged | 3 Comments

Testing parameters with N_ELEMENTS and !null

The N_ELEMENTS function is typically used to test whether an input parameter has data. For example, here’s a program that doubles a number: function double_it, x compile_opt idl2 on_error, 2 if n_elements(x) eq 0 then $ message, ‘Need input number … Continue reading

Posted in language, programming | Tagged , , , | 6 Comments

Sandia National Labs visit

I’ll be at Sandia National Laboratories in Albuquerque this Wednesday, July 18, to give a talk on using IDL 8. The talk is scheduled for 9-11 am in Bldg. 960, Rm. 1001B. If you’re at the lab, please join us!

Posted in seminar, VIS | Tagged , | Leave a comment

Updates to the MAPGRID function

Prior to IDL 8.2, the labels used on the graticule produced by MAPGRID were hardcoded (e.g., 30oE or 15oS). Now, with the LABEL_FORMAT property, you can provide a callback function to create labels with custom formatting. Also, through the LATITUDES and … Continue reading

Posted in visualization | Tagged , , , | Leave a comment

(New) Graphics Erase method

Here’s a small, but worthy, addition to IDL in 8.2: NG now has an Erase method, analogous to the ERASE procedure in DG. For example, a window with a plot and an annotation: IDL> w = window(window_title=’Reuse this window!’) IDL> … Continue reading

Posted in language, visualization | Tagged , , , | Leave a comment