Example 3A
 
This image was created using the same using the same code as Example 3, with one small change.  The second array, dat1, was used to create the texture image that was imposed on the surface of the first array, dat0.  Here is a short segment of code taken from Example 3.  The array name is the only change, and it is shown in bold below. 
; Create the palette to be used to color the surface
; Load the palette into a texture image for the surface
; In this case, use the second column of data from the
; input file
mypalette=OBJ_NEW('IDLgrPalette')
mypalette->LOADCT, 4  ;color table 4 is green-blue-red-yellow
mytextureimage=OBJ_NEW('IDLgrImage',BYTSCL(dat1), PALETTE=mypalette)

; Create the surface object.  Use the array dat1.  Style 2 is "filled",
; ie. solid. Other choices are 0=points, 1=wire mesh, 3= ruled XZ, etc.
; Apply the textureimage created above.
mysurface = OBJ_NEW('IDLgrSurface', dat0, Style=2, $
   texture_map=mytextureimage)


Compare the image above with those where the first array is used to color the first array surface, and the second array used to color the first array surface.