ec-jrc / Thalassa

Large scale visualizations of unstructured mesh data
https://thalassa.readthedocs.io/en/latest/?badge=latest
European Union Public License 1.2
20 stars 15 forks source link

Current vector plot #89

Open saeed-moghimi-noaa opened 6 months ago

saeed-moghimi-noaa commented 6 months ago

All,

Is any body tried vector plots using thalassa api?

Something like this:


ds['uv_mag_surface'] = (ds.uvel_surface **2 + ds.vvel_surface **2) ** 0.5
ds['uv_ang_surface'] = np.pi / 2 - np.arctan2(-ds.vvel_surface, -ds.uvel_surface)
vectorfield = gv.VectorField((ds['lon'], ds['lon'],  ds['uv_ang_surface'][1,:], ds['uv_mag_surface'][1,:]))

Any idea how to accomplish that?

Thanks, -Saeed