IDL Satellite Image Mapping Tool

Latest Revision 26 March 1999
(Fixed problem with NOERASE keyword, added tips for use with !P.MULTI)

IMAGEMAP allows you to display a satellite image (e.g. AVHRR) on a map projection. The input is a 2D array of satellite image values, and corresponding 2D arrays of latitude and longitude for each pixel.

If you've ever tried to display a large (say 1000x1000 pixel) satellite image on a base map in IDL, then you've probably been frustrated at the lack of an easy-to-use tool. I spent many hours playing with TRIANGULATE, TRIGRID, POLY_2D, and POLYWARP, and never found a satisfactory solution (let me know if you do!).

Hermann Mannstein suggested a solution in response to a question I posted to the IDL newsgroup. First, MAP_SET is used to define a map projection in the current display window. CONVERT_COORD is then used to copy pixel values from the input image to the corresponding location on the map projection. Finally DILATE is used to fill any holes in the resampled image.

The results turn out quite well, considering the simplicity of the algorithm. Remember, I'm talking about a display tool here, not a robust resampling. Some examples for different sensors are shown below.

Usage Tips

Sample images
Liam E. Gumley
Last updated 26 March 1999