The SHADE_SURF_IRR procedure creates a shaded surface representation of an irregularly gridded elevation dataset.
The data must be representable as an array of quadrilaterals. This routine should be used when the ( X, Y, Z ) arrays are too irregular to be drawn by SHADE_SURF, but are still semi-regular.
This routine is written in the IDL language. Its source code can be found in the file
shade_surf_irr.pro
in the
lib
subdirectory of the IDL distribution.
Set this keyword to a named variable that will contain the resulting shaded surface image. The variable is returned as a byte array of the same size as the currently selected graphics device.
The following example creates a semi-regular data set in the proper format at displays the resulting irregular surface.
z = DIST(10,10)*100.0 ; Create some elevation data.
x = FLTARR(10,10) & y = FLTARR(10,10) ; Create arrays to hold X and Y data.
FOR i = 0,9 do x[0:9,i] = FINDGEN(10)
FOR j = 0,9 DO y[j,0:9] = FINDGEN(10) ; Ensure that X and Y arrays are in "clockwise" order.
x = x + RANDOMU(seed,10,10)*0.49
y = y + RANDOMU(seed,10,10)*0.49 ; Make X and Y arrays irregular.