shadow program creates output with all LRS pixels
Output images will now have correct pixels.
The shadow program is creating an output image with all LRS pixels. I was able to track the problem down and it is a simple fix. If the input DEM is a 16-bit image the program tries to create a 16-bit output image which results in a image with all LRS because the output range of pixels is expected to be the same as the input. This of course is not the case. If the input DEM is 32-bit the output is correct. To fix this problem the shadow XML file should be modified so that the output cube PixelType attribute is included and set to Real.