Skip to content

Commit

Permalink
[skip ci] Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-build committed Mar 29, 2024
1 parent a2446cc commit 040fa4d
Show file tree
Hide file tree
Showing 280 changed files with 336,668 additions and 355,865 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 642146e8b99aada0158fefbb31cb31fb
config: 14386eef9b4aae79c2f810df51e43a9a
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified _downloads/46b4cb42d5bb56cc39e2b5b2b520b38d/gallery_python.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
o.time = time
o.time_step = timedelta(hours=hours)
o.release_elements()
o.environment = np.array(np.ones(N)*sea_floor_depth,
dtype=[('sea_floor_depth_below_sea_level', np.float32)]).view(np.recarray)
o.environment = np.array(list(zip(np.ones(N)*sea_floor_depth, np.zeros(N))),
dtype=[('sea_floor_depth_below_sea_level', np.float32),
('sea_surface_height', np.float32)]).view(np.recarray)
o.environment_profiles = {
'z': z,
'ocean_vertical_diffusivity':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"outputs": [],
"source": [
"time = datetime(2020, 1, 1, 0)\no = OceanDrift(loglevel=20)\no.set_config('drift:vertical_mixing', True)\no.set_config('vertical_mixing:diffusivitymodel', 'environment')\no.set_config('vertical_mixing:timestep', timestep_seconds)\no.set_config('environment:fallback:land_binary_mask', 0)\no.seed_elements(lon=4, lat=60, z=seed_depth, time=time, number=N, terminal_velocity=terminal_velocity)\no.time = time\no.time_step = timedelta(hours=hours)\no.release_elements()\no.environment = np.array(np.ones(N)*sea_floor_depth,\n dtype=[('sea_floor_depth_below_sea_level', np.float32)]).view(np.recarray)\no.environment_profiles = {\n 'z': z,\n 'ocean_vertical_diffusivity':\n np.tile(diffusivity, (N, 1)).T}"
"time = datetime(2020, 1, 1, 0)\no = OceanDrift(loglevel=20)\no.set_config('drift:vertical_mixing', True)\no.set_config('vertical_mixing:diffusivitymodel', 'environment')\no.set_config('vertical_mixing:timestep', timestep_seconds)\no.set_config('environment:fallback:land_binary_mask', 0)\no.seed_elements(lon=4, lat=60, z=seed_depth, time=time, number=N, terminal_velocity=terminal_velocity)\no.time = time\no.time_step = timedelta(hours=hours)\no.release_elements()\no.environment = np.array(list(zip(np.ones(N)*sea_floor_depth, np.zeros(N))),\n dtype=[('sea_floor_depth_below_sea_level', np.float32),\n ('sea_surface_height', np.float32)]).view(np.recarray)\no.environment_profiles = {\n 'z': z,\n 'ocean_vertical_diffusivity':\n np.tile(diffusivity, (N, 1)).T}"
]
},
{
Expand Down
Binary file modified _downloads/fcaddee3a42ae2e2c41e00ae08d70347/gallery_jupyter.zip
Binary file not shown.
Binary file modified _images/example_2d_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_biodegradation_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_chemicaldrift_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_chemicaldrift_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_coastline_options_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_codegg_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_codegg_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_cone_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_depth_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_dominating_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_ensemble_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_entrainment_rate_oil_types_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_entrainment_rate_oil_types_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_huge_output_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_huge_output_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/example_macondo_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_mixed_layer_depth_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_mixed_layer_depth_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_mixed_layer_depth_2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oil_ice_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oil_thickness_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oil_thickness_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oil_verticalmixing_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oil_verticalmixing_1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oilspill_seafloor_biodegradation_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/example_oilspill_seafloor_biodegradation_1.gif
Binary file modified _images/example_plot_0.gif
Binary file modified _images/example_radionuclides_0.gif
Binary file modified _images/example_radionuclides_1.gif
Binary file modified _images/example_river_runoff_0.gif
Binary file modified _images/example_sediments_0.gif
Binary file modified _images/example_sediments_resuspension_0.gif
Binary file modified _images/example_seed_from_shapefile_0.gif
Binary file modified _images/example_shipdrift_0.gif
Binary file modified _images/example_shipdrift_leeway_0.gif
Binary file modified _images/example_static_2d_current_0.gif
Binary file modified _images/sphx_glr_example_2d_001.png
Binary file modified _images/sphx_glr_example_2d_thumb.png
Binary file modified _images/sphx_glr_example_advection_schemes_eddy_001.png
Binary file modified _images/sphx_glr_example_advection_schemes_eddy_thumb.png
Binary file modified _images/sphx_glr_example_biodegradation_001.png
Binary file modified _images/sphx_glr_example_biodegradation_thumb.png
Binary file modified _images/sphx_glr_example_chemicaldrift_001.png
Binary file modified _images/sphx_glr_example_chemicaldrift_thumb.png
Binary file modified _images/sphx_glr_example_coastline_options_001.png
Binary file modified _images/sphx_glr_example_coastline_options_thumb.png
Binary file modified _images/sphx_glr_example_codegg_001.png
Binary file modified _images/sphx_glr_example_codegg_thumb.png
Binary file modified _images/sphx_glr_example_cone_001.png
Binary file modified _images/sphx_glr_example_cone_thumb.png
Binary file modified _images/sphx_glr_example_depth_001.png
Binary file modified _images/sphx_glr_example_depth_thumb.png
Binary file modified _images/sphx_glr_example_ensemble_001.png
Binary file modified _images/sphx_glr_example_ensemble_thumb.png
Binary file modified _images/sphx_glr_example_entrainment_rate_oil_types_001.png
Binary file modified _images/sphx_glr_example_entrainment_rate_oil_types_002.png
Binary file modified _images/sphx_glr_example_entrainment_rate_oil_types_thumb.png
Binary file modified _images/sphx_glr_example_huge_output_001.png
Binary file modified _images/sphx_glr_example_huge_output_thumb.png
Binary file added _images/sphx_glr_example_macondo_001.png
Binary file added _images/sphx_glr_example_macondo_002.png
Binary file modified _images/sphx_glr_example_macondo_thumb.png
Binary file modified _images/sphx_glr_example_oil_ice_001.png
Binary file modified _images/sphx_glr_example_oil_ice_thumb.png
Binary file modified _images/sphx_glr_example_oil_thickness_001.png
Binary file modified _images/sphx_glr_example_oil_thickness_002.png
Binary file modified _images/sphx_glr_example_oil_thickness_thumb.png
Binary file modified _images/sphx_glr_example_oil_verticalmixing_001.png
Binary file modified _images/sphx_glr_example_oil_verticalmixing_002.png
Binary file modified _images/sphx_glr_example_oil_verticalmixing_003.png
Binary file modified _images/sphx_glr_example_oil_verticalmixing_thumb.png
Binary file modified _images/sphx_glr_example_openberg_new_001.png
Binary file modified _images/sphx_glr_example_openberg_new_thumb.png
Binary file modified _images/sphx_glr_example_radionuclides_001.png
Binary file modified _images/sphx_glr_example_radionuclides_002.png
Binary file modified _images/sphx_glr_example_radionuclides_thumb.png
Binary file modified _images/sphx_glr_example_river_runoff_001.png
Binary file modified _images/sphx_glr_example_river_runoff_002.png
Binary file modified _images/sphx_glr_example_river_runoff_thumb.png
Binary file modified _images/sphx_glr_example_roms_native_001.png
Binary file modified _images/sphx_glr_example_roms_native_thumb.png
Binary file modified _images/sphx_glr_example_sediments_001.png
Binary file modified _images/sphx_glr_example_sediments_resuspension_001.png
Binary file modified _images/sphx_glr_example_sediments_resuspension_thumb.png
Binary file modified _images/sphx_glr_example_sediments_thumb.png
Binary file modified _images/sphx_glr_example_seed_from_shapefile_001.png
Binary file modified _images/sphx_glr_example_seed_from_shapefile_thumb.png
Binary file modified _images/sphx_glr_example_shipdrift_001.png
Binary file modified _images/sphx_glr_example_shipdrift_leeway_001.png
Binary file modified _images/sphx_glr_example_shipdrift_leeway_thumb.png
Binary file modified _images/sphx_glr_example_shipdrift_thumb.png
3 changes: 2 additions & 1 deletion _modules/opendrift/readers/reader_ROMS_native.html
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ <h1>Source code for opendrift.readers.reader_ROMS_native</h1><div class="highlig
<span class="c1"># Transform z_rho to match convention of z.</span>
<span class="n">z_rho</span> <span class="o">-=</span> <span class="n">np</span><span class="o">.</span><span class="n">asarray</span><span class="p">(</span><span class="n">zeta</span><span class="p">)[</span><span class="n">np</span><span class="o">.</span><span class="n">newaxis</span><span class="p">]</span>

<span class="k">assert</span> <span class="p">(</span><span class="n">z_rho</span> <span class="o">&lt;=</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">all</span><span class="p">()</span>
<span class="k">if</span> <span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">nanmax</span><span class="p">(</span><span class="n">z_rho</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">any</span><span class="p">():</span>
<span class="n">logger</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span><span class="s1">&#39;z_rho is positive, but should be negative or 0.&#39;</span><span class="p">)</span>

<span class="c1"># Element indices must be relative to extracted subset</span>
<span class="n">indx_el</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">clip</span><span class="p">(</span><span class="n">indx_el</span> <span class="o">-</span> <span class="n">indx</span><span class="o">.</span><span class="n">min</span><span class="p">(),</span> <span class="mi">0</span><span class="p">,</span> <span class="n">z_rho</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="o">-</span><span class="mi">1</span><span class="p">)</span>
Expand Down
Loading

0 comments on commit 040fa4d

Please sign in to comment.