Skip to content

Computation of total oil mass #839

Answered by knutfrode
FrancoisDuquesne asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

It is not well documented, but time must be either a single time, or a two-element list [start_time, end_time]
For your case of multiple points, seeding has to be done in a loop:

for lon,lat,time in zip(lons, lats, times):
    o.seed_elements(lon=lon, lat=lat, time=time, <additional arguments such as number and m3_per_hour>)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by FrancoisDuquesne
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants