IDL’s MAP function allows you to view more than 30 different map projections. This topic shows how to use the MAP function to view projections, and how to warp a map image to a map projection. The code shown below creates the maps shown above. You can copy the entire block and paste it into the IDL command line to run it. The MAP function does not accept data, it is used to define the map projection only. The MAP function does accept the properties for the WINDOW and GRID functions. The following examples use global image data. (This example data is available in the examples/data directory of your IDL installation.) The code shown below creates the graphic shown above. You can copy the entire block and paste it into the IDL command line to run it. The keywords used are explained in detail after the example code. The next step is to view the data as a map, which warps the image to the map projection you want to use. The following image is the same data warped to the Mollweide map projection: To make IDL understand that this image is map data, you must register the image, defining the map boundaries, units, location, and dimensions of the image. Source.