Closed vincelhx closed 5 months ago
the second change concerns the wind direction output from inversion. The returned angle was false before these commits. Now, the return complex can be used.
use this formula to get wind direction in meteorological convention :
90 - (np.angle(-np.conj(wind_xsarsea), deg=True)) + xr_dataset.ground_heading) % 360
Lut being symetrical, i chose phi or -phi by taking the closest angle from ancillary.
i also updated documentation. make html is ok @agrouaze
added cmod7 gmf
The first commint concerns cases where sigma0 <=0 or sigma0 == NaN (on the left side of the image here)
before commit : after commit :
In this case in the previous version, xsarsea was replacing copol by ancillary and used ancillary for dualpol inversion. Now inversion returns NaN