OpenDrift / opendrift

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

edit the coastline #1157

Open Alonso112358 opened 1 year ago

Alonso112358 commented 1 year 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 1 year 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 1 year 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 1 year ago

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