changed logData to allow flexibility to have different dimensions for different variables.
changed logData to allow flexibility to have different dimensions
for different variables.

hk310/parSpectral,JoyMonteiro/parSpectral