Solved by vincentqb in post #2 
              
              
                This is expected. Do you need to apply the log transformation? If so, you can also add a little value before taking log: 
epsilon = 1e-6
log2(epsilon + specgram)