Seafloor oilspill rate and total amount released #1085
Replies: 19 comments 40 replies
-
You can seed with The total mass is divided by all particles initially. |
Beta Was this translation helpful? Give feedback.
-
To continue on the topic. Do backward trajectories work in the oilspill module? |
Beta Was this translation helpful? Give feedback.
-
Yes it works, but weathering (eg evaporstion) is then deactivated
…On Tue, Apr 18, 2023, 22:01 Andres Sepulveda ***@***.***> wrote:
To continue on the topic. Do backward trajectories work in the oilspill
module?
—
Reply to this email directly, view it on GitHub
<#1085 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABH25I76Y633LSBDAQQM3QLXB3XK3ANCNFSM6AAAAAAW6STDCI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi,
|
Beta Was this translation helpful? Give feedback.
-
I start by modifying a little the "reader_ROMS_native.py" as mentioned above `from datetime import timedelta o = Leeway(loglevel=0) filename_his = 'croco_Sim01_1month.nc' filename_blk = 'croco_blk_ERA5_Y2010M01.nc' o.add_reader([reader_norkyst_his], variables=['time']) However, the following instruction gives an error: I think I have first to read the gridfile ! I have another issue with time, how define the start time and time duration Thank you very much for your time ! |
Beta Was this translation helpful? Give feedback.
-
Hi, I tried to do the following to define the reader_norkyst_blk by: This last instruction gave the following error: I did the modification as: Now the error is : I did try to read time from "_his" file: But the problem persist ... |
Beta Was this translation helpful? Give feedback.
-
File "/home/bejaoui/miniconda3/envs/opendrift/lib/python3.11/site-packages/xarray/core/utils.py", line 455, in getitem During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/bejaoui/miniconda3/envs/opendrift/lib/python3.11/site-packages/xarray/core/utils.py", line 455, in getitem
|
Beta Was this translation helpful? Give feedback.
-
The line numbers in the error message do not seem to match the latest version of ROMS reader: Did you manage to update code to the latest version? Or perhaps you have local modifications that make a conflict? You can check with |
Beta Was this translation helpful? Give feedback.
-
If you can share the bulk- and the grid-files, then I could have a look at them |
Beta Was this translation helpful? Give feedback.
-
The unit of time in this file was At least it works for me now, and I can do e.g.
|
Beta Was this translation helpful? Give feedback.
-
I now discovered that the file contains a global attribute This attribute could of course be read dynamically, but it does not seem like a good (standard) practice to have the zero time specified this way. |
Beta Was this translation helpful? Give feedback.
-
The line numbers in this error message do not match the latest version of |
Beta Was this translation helpful? Give feedback.
-
If you are happy to discard your local changes (they should mostly be in my corresponding updates), you can do |
Beta Was this translation helpful? Give feedback.
-
This is quite strange, as the same works for me. |
Beta Was this translation helpful? Give feedback.
-
I see that you are in "conda base environment".
You must activate the opendrift environment with
`conda activate opendrift`
…On Fri, Apr 28, 2023, 18:22 Béchir Béjaoui ***@***.***> wrote:
Hi the command
pip install -e .
gives the following in terminal :
*(base)
***@***.***:/scratch/CROCO/croco_useful_bb/Lagrangian_Andres_Tun/opendrift$
pip install -e . ERROR: File "setup.py" or "setup.cfg" not found. Directory
cannot be installed in editable mode:
/scratch/CROCO/croco_useful_bb/Lagrangian_Andres_Tun/opendrift (A
"pyproject.toml" file was found, but editable mode currently requires a
setuptools-based build.)*
—
Reply to this email directly, view it on GitHub
<#1085 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABH25IZWVRSB535Y4LAAU4DXDPVFHANCNFSM6AAAAAAW6STDCI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yes, then it is ok. Then you can do either Btw, NorKyst is a specific Norwegian ocean model used in the examples, so a better name for your reader would be |
Beta Was this translation helpful? Give feedback.
-
It seems you have created a Leeway simulation object, but this is for
search and rescue.
You should instead use OpenOil.
You will find several examples in the gallery.
…On Fri, Apr 28, 2023, 19:14 Béchir Béjaoui ***@***.***> wrote:
Hi Knute one more clarification,
1.
*>>> o.set_config('drift:vertical_mixing', True)*
Traceback (most recent call last):
File "", line 1, in
File
"/scratch/CROCO/croco_useful_bb/Lagrangian_Andres_Tun/opendrift/opendrift/models/basemodel.py",
line 660, in set_config
raise ValueError('No config setting named %s' % key)
*ValueError: No config setting named drift:vertical_mixing*
1.
*>>> o.seed_elements(lon=10.124, lat=33.953, z='seafloor', m3_per_hour=30,
radius=0, number=7200, ... time=time_seed, oil_type='GAS OIL, EXXON')*
18:10:54 INFO opendrift.models.leeway:209: Seeding elements of object type
1: PIW-1 (Person-in-water (PIW), unknown state (mean values))
Traceback (most recent call last):
File "", line 1, in
File
"/scratch/CROCO/croco_useful_bb/Lagrangian_Andres_Tun/opendrift/opendrift/models/leeway.py",
line 274, in seed_elements
super(Leeway, self).seed_elements(lon, lat,
File
"/scratch/CROCO/croco_useful_bb/Lagrangian_Andres_Tun/opendrift/opendrift/models/basemodel.py",
line 1854, in seed_elements
seafloor_constant = self.get_config(
^^^^^^^^^^^^^^^^
File
"/scratch/CROCO/croco_useful_bb/Lagrangian_Andres_Tun/opendrift/opendrift/models/basemodel.py",
line 706, in get_config
raise ValueError('No config setting named %s' % key)
*ValueError: No config setting named
environment:constant:sea_floor_depth_below_sea_level*
—
Reply to this email directly, view it on GitHub
<#1085 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABH25I4UUGDP7HF23YDUOYDXDP3IVANCNFSM6AAAAAAW6STDCI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am trying this code with the corrections to the reader mentioned before
I had to add the lat_rho and lon_rho variables to the BLK file using NCO, since the option
gave me problems However the output indicates that wind is not to be found 16:04:04 WARNING opendrift.models.basemodel: Missing variables: ['x_wind', 'y_wind', 'sea_surface_wave_significant_height'] What could be the issue? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I want to study a case of a seafloor oilspill, a sunken boat with 10 Tons of Gas Oil
How do I define the release rate from the sunken boat?
How do I set the case so that only 10 Tons are released? With the seeding time? Each particle has a volumen that I can relate to the oil density?
Any help is appreciated.
Andres
Beta Was this translation helpful? Give feedback.
All reactions