Methodology for error analysis and simulation of lidar aerosol measurements