OpenDrift / opendrift

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

edit the coastline #1157

Open Alonso112358 opened 10 months ago

Alonso112358 commented 10 months ago

hi , I'm running "example_leeway.py " and I just wonder if is there any chance to edit the coastline, I'm asking because my seed leeway elements are near the coast, and sometimes its position fall on the land. thanks !!

knutfrode commented 9 months ago

Hi,

The default coastline is from GSHHG, and is not straightforward to modify. However, it is possible to use your own shapefile, or an ocean model raster landmask: https://opendrift.github.io/gallery/example_shape_landmask.html https://opendrift.github.io/gallery/example_model_landmask.html

Anyway, particles seeded on land, will be moved to the closest point in ocean at the first timestep, as long as config setting seed:ocean_only is set to True (default)

Alonso112358 commented 9 months ago

Thanks so much for answering !! By the module example leeway, Is it a 3D or 2D model? I'm asking because the example by default use surfaces current (norkyst800_subset_16Nov2015.nc) and when download netcdf files from copernicus I also use surface current (uo and vo), or it depends of the input?

knutfrode commented 9 months ago

Leeway is 2D model, so it only uses surface current