TypeError: Input arrays must have same length. Lengths given: [2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2040, 2080, 2040]
from datetime import timedelta
from opendrift.readers import reader_basemap_landmask
from opendrift.readers import reader_netCDF_CF_generic
from opendrift.models.openoil3D import OpenOil3D
o = OpenOil3D(loglevel=0, weathering_model='noaa') # Set loglevel to 0 for debug information
reader_arome = reader_netCDF_CF_generic.Reader('http://thredds.met.no/thredds/dodsC/arome25/arome_metcoop_default2_5km_latest.nc')
reader_norkyst = reader_netCDF_CF_generic.Reader('http://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be')
o.add_reader([reader_norkyst, reader_arome])
# Seeding some particles
lon = 4.9; lat = 62.1; # Stad
time = reader_arome.start_time
# Seed oil elements at defined position and time
oiltype='AVALDSNES'
o.seed_elements(lon, lat, z=0, radius=1000, number=2000, time=time, oiltype=oiltype)
o.seed_elements(lon+.2, lat-.3, z=-100, radius=100, number=100, time=[time, time+timedelta(hours=5)], oiltype=oiltype)
o.seed_elements([lon, lon+.2], [lat, lat-.3], z=-100, radius=[100, 500], number=100, time=[time, time+timedelta(hours=5)], oiltype=oiltype)
# Running model
o.run(steps=8, time_step=900, time_step_output=1800, outfile='ex_json.nc')