Hello.

If the desired circulation is along a longitude line, one would simply make a vector plot of w and u (for example Walker circulation). Similarly if the desired circulation is along a latitude line, one would simply make a vector plot of w and v (fro example Hadley Circulation). But what if the desired circulation vector is at angle?
I would like to approach this using wind-speed and wind direction.
I'm using the wrf-python tutorial data from
https://github.com/NCAR/wrf_tutorial_data for this question. I have also attached an ipynb file showing the steps I have taken . There is a transect line showing cross-section I would like to plot.
Below is the plots using crossvert.
I would like to make a vector plot using w and wind speed after this. However wind speed is not a vector. I would like to turn it into a pseudo-vector. If you look at the cross section of wind direction, the left side is from one direction, and the right side is from other position. I would like to calculate the angles of the transect against the lat-lon at every point in the crossvert, to be used as a threshold. If the wind direction at a point in the cross vert is below the threshold, I would apply negative to the wind speed at that point. In opposite situation, I would apply positive. This would turn one side of the wind speed cross-section into positive and the other into negative. This, when vectored/quivered with w, will make a circulation vector.
My question is how do I calculate the angle of the transect line aginst lat/lon axis? There is a lat/lon coordinate information inside the crossvert which I believe should be helpful.
I'm actually working on South Pole projection data, so the threshold angle I'm looking for is different at each point in the transect line.
A simpler question would be how do I plot a circulation vector along a transect line using u,v, and w data. I searched around, and there are questions and discussions about is using wrf-python, but I could not find any solution posted.
Yunus.