OpenDrift / opendrift

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

opendrift simulation with high resolution coastlines by using local nc file #1053

Closed Morhaf-ALjber closed 1 year ago

Morhaf-ALjber commented 1 year ago

Dear all, I'm using open drift to run a simulation for a particle tracking in a bay using the water currents resulted from Schism model. I have the binary map of the bay and I want to used it in the simulation because the resolution is higher than those provided by the code. I imported the nc file map which contains longitude, latitude, and land_binary_mask using, reader_landmask = reader_netCDF_CF_generic.Reader('land_mask.nc'), to my code and I changed the debugging source in the line number 83 in "reader_global_landmask.py" to the directory that contains the file that I want to use. Still I'm receiving the resulted plotted map from GSHHG. How I can obtain my resulted using the high resolution map I have.

knutfrode commented 1 year ago

Hi, please see this example: https://opendrift.github.io/gallery/example_model_landmask.html

knutfrode commented 1 year ago

Please reopen if this did not work for you

Morhaf-ALjber commented 1 year ago

Thank you for your help.

Morhaf Aljber (Mr.), Master Candidate, CHESS lab http://home.hiroshima-u.ac.jp/leehs/ Transdisciplinary Science and Engineering (TSE) Programme, Graduate School of Advanced Science and Engineering, Hiroshima Univ http://www.hiroshima-u.ac.jp/index-j.html. E-mail: @.***

On Wed, 19 Apr 2023 at 14:02, Knut-Frode Dagestad @.***> wrote:

Closed #1053 https://github.com/OpenDrift/opendrift/issues/1053 as completed.

— Reply to this email directly, view it on GitHub https://github.com/OpenDrift/opendrift/issues/1053#event-9042240417, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWLLZTOYXP5R3F6R24J6DPTXB5WXVANCNFSM6AAAAAAUBDHRC4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>