OpenDrift / opendrift

Open source framework for ocean trajectory modelling
https://opendrift.github.io
GNU General Public License v2.0
249 stars 120 forks source link

[How to] Seed with different markercolor? #633

Closed josefilho77 closed 1 year ago

josefilho77 commented 3 years ago

Hi, is possible to define marker color somewhere when defining seed position? I dig into the code (plot, animation) and concluded that there is a kind of default marker color (green/active, red/stranded) and others to compare.

Is it possible to define it based o position? i.e. I want my seeds in some position/seedtime with one color and the most northern part with a different color.

Sorry for the basic question, but I dig into the closed/open issues and did not find anything related to it.

Regards

knutfrode commented 3 years ago

Yes, there is an element property origin_marker for this purpose. It is not well documented, but I updated now one of the example scripts to illustrate the usage: https://github.com/OpenDrift/opendrift/pull/634/files

The gallery should be updated to show this within a few hours.