This routine fills the output array pixels with the results
of taking the exponential of the pixels of the input array
to the base specified, i.e. New_value = Base 
Old_value.
If the result is bigger than the maximum-allowed value
then a bad pixel value is substituted in the output array.
If variance is present it is computed as: 2
New_Variance = Old_Variance
( New_value
log Base )