Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit the coastline #1157

Open
Alonso112358 opened this issue Sep 12, 2023 · 3 comments
Open

edit the coastline #1157

Alonso112358 opened this issue Sep 12, 2023 · 3 comments

Comments

@Alonso112358
Copy link

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
Copy link
Collaborator

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
Copy link
Author

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants