#!/usr/bin/env python """ Cod egg ============= """ from opendrift.readers import reader_netCDF_CF_generic from opendrift.models.pelagicegg import PelagicEggDrift from datetime import datetime o = PelagicEggDrift(loglevel=20) # Set loglevel to 0 for debug information # Forcing with Topaz ocean model and MEPS atmospheric model o.add_readers_from_list([ 'https://thredds.met.no/thredds/dodsC/topaz/dataset-topaz4-arc-unmasked-be', 'https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc' ]) #%% # spawn NEA cod eggs at defined position and time time = datetime.now() o.seed_elements(14., 68.1, z=-40, radius=2000, number=500, time=time, diameter=0.0014, neutral_buoyancy_salinity=31.25) o.seed_elements(12.5, 68.,
#!/usr/bin/env python """ Cod egg ============= """ from opendrift.readers import reader_netCDF_CF_generic from opendrift.models.pelagicegg import PelagicEggDrift from datetime import datetime, timedelta o = PelagicEggDrift(loglevel=20) # Set loglevel to 0 for debug information # Forcing with Topaz ocean model and MEPS atmospheric model o.add_readers_from_list([ 'https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml', 'https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc' ]) #%% # spawn NEA cod eggs at defined position and time time = datetime.utcnow() o.seed_elements(14., 68.1, z=-40, radius=2000, number=500, time=time, diameter=0.0014, neutral_buoyancy_salinity=31.25) o.seed_elements(12.5, 68.,