I would like to ask about horizontal wind shear. In most cases, we frequently talk about vertical wind shear (VWS), which is the change in wind speed and direction with height or within a given layer/depth of the atmosphere. I understand that VWS is calculated typically as a vector difference between wind velocities at different levels in the atmosphere, say between the 850 hPa and 200 hPa pressure levels.
What I'm wondering about is: how can I calculate horizontal wind shear (HWS)? I'm interested in calculating and visualizing how wind velocities change along the horizontal or parallel to the Earth's surface, preferably via Python given gridded data (esp. reanalysis), especially in phenomena where there are sharp changes in wind velocity (esp. shear lines, but also in true fronts). Since we calculate VWS along an axis (i.e. along the vertical axis), I assume that HWS should also be calculated along an axis, but which axis exactly? Would it be North-South (meridional) or East-West (zonal), or both (like components being combined into a vector)? And how do I calculate the vector differences? Would it be in between points, or in between lines or latitude/longitude?