Doing a plot only with currents (with no seeded elements) #1374
-
Hi! I'm trying to do a plot using o.plot() function and with x and y surface current velocity on the background, but I don't want to seed any element, I really just want the grid of the current. I tried to do some research but I haven't found anything yet. I was hoping someone could help me figure out what I should do. I also would like to do an animation of the currents over time. Is there any function ou functions that help me do it? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, You can plot a scalar field from a reader like this: But you can make both plots and animations from a simulation object, after seeding an element that you can chose not to show:
The |
Beta Was this translation helpful? Give feedback.
Hi,
You can plot a scalar field from a reader like this:
r.plot(variable='sea_water_temperature', time=datetime(2024, 8, 1, 12))
However, this does not yet support vector fields (e.g. current), and there is no reader method to create animations.
But you can make both plots and animations from a simulation object, after seeding an element that you can chose not to show: