-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Residence time? #31
Comments
Hi, This should be possible to achieve somehow.
|
Great, that solves 2) and 3). As for 1), there could be also two other options A) For the particles to be able to bounce on the coast. In both cases one would need to know it the nearby cells are land. Is there an option to obtain that information for each particle, at each time step? |
Yes, those are two other relevant options. Regarding "land in nearby cells": The readers, however, are responsible to obtain forcing data (current, temperatures, wind etc) from various external sources, which is most often output from an ocean model etc, with data on a discrete, regular grid. The readers then also interpolate this data onto the particle positions, and provide this data to the actual model, which knows nothing about how the data was obtained. |
Thaks for the reply. I'll try to find someone better at coding than me to work on those ideas. I understand from your comment that the "land_binary_mask" could be read from the forcing file, a ROMS file in my case. If so, do you have an example of how this is done? |
You can check from commandline |
Strange.. the file has a variable with that description
but the script readerinfo doesn't recognizes it
I use ROMS_AGRIF, just in case. Any clue why is not identified? |
It seems that your ROMS file has the landmask defined on rho-points ("mask_rho"), whereas the ROMS files we have been using (not AGRIF) have landmask defined on psi-points ("mask_psi"). I have now updated the ROMS reader to map both of these onto the CF standard name "land_binary_mask". |
ok, this works fine. My script is like this now o = OceanDrift(loglevel=0) # Set loglevel to 0 for debug information nordic_native = reader_ROMS_native.Reader(o.test_data_folder() + ##Landmask (Basemap) resolution='f', projection='merc') However it plots an area much larger than the domain, with a coastline (from I-don't-know-where). How can I restrict the area to be plotted within the reader_ROMS_native? |
Your simulations above are using landmask from ROMS to checking stranding during the run, but for the plotting, Bamemap coast contours are always used. However, even when using ROMS landmask, particles will hit land and become deactivated. |
A very basic non-stranding algorithm is now implemented in OpenDrift, as described in #32 This is not well tested yet, but please give it a try. |
For the ROMS reader there were some problems with the anti-stranding mechanism due to staggere/shifted grids of u and v. This is now improved, although some particles may still be trapped at the coastline. |
I would like to use OpenDrift to study the residence time of a semi-enclosed area. I would need to
Any hinds on how (if possible) to define this here? Thanks
The text was updated successfully, but these errors were encountered: