Super Quick Start

If you'd like to begin experimenting with IDL right away, before reading any more, try the following things:

Open the IDL Workbench

The IDL Workbench is a graphical interface and code development environment for IDL. To start the IDL Workbench:

The IDL Workbench is described in more detail in The IDL Workbench.

Display an Image

To quickly display an image using IDL:

  1. Select File  Open in the IDL Workbench and browse to the examples/data subdirectory of your IDL installation.
    sqs_iimage_rose.gif
  2. Select the file rose.jpg and click Open. The image is displayed in an iImage window.

IDL's image display and image processing facilities are described in more detail in Images.

Create a 2-D Plot

To further analyze the image displayed in the previous section, you might want to create a plot showing the values of selected pixels plotted against their positions in the image (a line profile). You can do this in two ways:

Clearly, creating a line profile interactively using the iImage tool is quicker in this example, but numerically selecting a vector from within an array is more precise and can be accomplished without mouse interaction.

Tip
You can quickly modify the appearance of your plot using the iTools property sheet controls. Simply double-click on an item (the plot line, for example) to display the property sheet. Change the selected options and see the results immediately.

IDL provides many tools for creating, annotating, and modifying two-dimensional plots. See Line Plots for additional details.

Overlay an Image on a Map

If your data is associated with geographic coordinates, you can easily overlay your data on a map using any of several map projections available in IDL:

  1. Enter imap at the IDL command prompt. The iMap window appears.
  2. Select File  Open in the iMap window and browse to the examples/data subdirectory of your IDL installation.
  3. Select the file avhrr.png and click Open. The iMap Register Image wizard appears, allowing you to specify how the pixels in the image map to geographic coordinates.
  4. Click Next, then Finish in the Register Image wizard to accept the default values.
    sqs_imap_world.gif
  5. On the Map tab, click Edit Projection and select Mollweide in the Projection field and click OK.
  6. Select Insert  Map  Countries (low res)
    to overlay country boundaries.

See Maps for more on working with maps in IDL.

Create a Simple IDL Program

Creating and running a program in IDL can be as simple as this:

  1. Create a new IDL source file in the IDL Workbench by clicking the New IDL Source file toolbar button tb_new_source_file.gif.
  2. Enter the following text in the editor window:
  3. PRO helloWorld 
     
    PRINT, 'Hello, World!' 
     
    END 
    
  4. Select File  Save and then click OK in the Save As dialog that appears, accepting the default filename and location. (This saves your code in a file named helloworld.pro in your default IDL project directory.)
  5. Select Run  Run helloworld or press F8. Your routine is compiled and the string Hello, World! is printed in the Console view.
  6. Tip
    You could also run your program by entering helloworld at the IDL command prompt, or from within another IDL program.

See Programming in IDL for more on creating programs in the IDL language.

Get Help

IDL provides several ways to get help, depending on what sort of assistance you require: