Skip to content

Current vector plot #89

@saeed-moghimi-noaa

Description

@saeed-moghimi-noaa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions