Fitting an Image to a Projection
IDL gives you the ability to open image data within a map projection through iMap. IDL warps the image to fit the map automatically. In this example, we'll use IDL's automatic capabilities to open an image containing 1 km resolution global land cover data. (Image data courtesy of Reto Stöckli, NASA/Goddard Space Flight Center.)
- Open an iMap window by typing
IMAPat the IDL command line.

- Select Operations → Map Projection. This command opens the Map Projection dialog, shown here:
- Choose the Mollweide projection from the Projection pull-down list, then click OK.
- Now, open image data from the IDL examples files. Select File → Open and navigate to the IDL
examples/datadirectory. Choose the file namedDay.jpg. - Click Next to accept the default settings. Step Two of the IDL Map Register Image dialog appears, displaying the default data that IDL uses to fit the image to the projection.
- Click Finish to accept the default settings. In the iMap window, the image data display in the Mollweide projection:

The IDL Map Register Image Step 1 dialog appears.
See also Warping Images to Maps.