opendrift icon indicating copy to clipboard operation
opendrift copied to clipboard

edit the coastline

Open Alonso112358 opened this issue 2 years ago • 3 comments

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 !!

Alonso112358 avatar Sep 12 '23 19:09 Alonso112358

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)

knutfrode avatar Oct 04 '23 14:10 knutfrode

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?

Alonso112358 avatar Oct 10 '23 04:10 Alonso112358

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

knutfrode avatar Oct 10 '23 05:10 knutfrode