Commit 5eef530e authored by GROUAZEL's avatar GROUAZEL

cmt

parent ea32241e
......@@ -74,6 +74,7 @@ class SpectrumReaderWw3(AbstractSpectrumReader):
if True:#patch agrouaze Sept 2019: (90-val+180)%360 correction sans explication qui vient de tests sur http://grougrou1.ifremer.fr:8888/notebooks/workspace_leste/cfosat_perso/verif_windir_computation.ipynb#
# wdir = (90-np.arctan2(wind['U'],wind['V']) * 180 / np.pi + 180.) % 360
wdir = (np.arctan2(wind['V'],wind['U']) * 180 / np.pi + 180.) % 360 #trop bien jai trouvé que en inversant V et U comme dans la doc numpy on retombe bien sur la bonne direction
#Il faut mettre le V d abord (ie la composent meridional) et en second le U (ie composante zonale)
wind['V'] = speed*np.cos(np.radians(wdir))
wind['U'] = speed*np.sin(np.radians(wdir))
# print('plop')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment