Fish Eggs and Larvae

from datetime import datetime, timedelta
from opendrift.readers.reader_constant import Reader as ConstantReader
from opendrift.models.larvalfish import LarvalFish

o = LarvalFish(loglevel=50)

Seeding 20 fish eggs, which will hatch as larvae after some time, depending om temperature

time = datetime(2020, 7, 1, 12)
o.seed_elements(lon=4, lat=60, time=[time, time+timedelta(hours=24)], number=20)

No horizontal movement, here only investigating vertical mixing and swimming

r = ConstantReader(
        {'x_sea_water_velocity': 0, 'y_sea_water_velocity': 0, 'x_wind': 0, 'y_wind': 0,
         'sea_water_temperature': 10,
         'land_binary_mask': 0, 'ocean_vertical_diffusivity': .02})

o.set_config('general:use_auto_landmask', False)

After 20 days eggs are hatched as Larvae, and starting to grow

  • weight
  • length

We see that larvae (after hatching) avoid the upper meters at daytime, to avoid predators. Vertical motion is a combination of vertical mixing, buoyancy and swimming.


Mean daily depth shows more clearly the diurnal migration of larvae

o.plot_property('z', mean=True)

Total running time of the script: ( 0 minutes 22.195 seconds)

Gallery generated by Sphinx-Gallery