Some remarks about lidar data preprocessing and different implementations of the gradient method for determining the aerosol layers