Skip to content

Instantly share code, notes, and snippets.

@caioerick
Created June 28, 2022 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caioerick/470f8d1f6c567438669a2ef2a362612e to your computer and use it in GitHub Desktop.
Save caioerick/470f8d1f6c567438669a2ef2a362612e to your computer and use it in GitHub Desktop.
conversão direção de onda pra componente U e V
dado = pd.read_csv('...')
dado['onda_dp_u'] = np.sin(np.deg2rad(dado_boia['onda_dp']))*-1#*dado_boia['onda_hs']
dado['onda_dp_v'] = np.cos(np.deg2rad(dado_boia['onda_dp']))*-1#*dado_boia['onda_hs']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment