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 Jan 14, 2025
1 parent 33d4f4d commit db4f7af
Show file tree
Hide file tree
Showing 352 changed files with 471,821 additions and 469,207 deletions.
Binary file modified _downloads/029881e221949484b26146d507a804ad/example_depth.zip
Binary file not shown.
Binary file modified _downloads/033af0d93f9b09e836d807ac3b9561f7/example_relative.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/1e965db755ac760751848acdb71bc467/example_oil_ice.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/2f279a49c6164050f7f6f735325d2c2c/example_plast.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/36debc3f4a32a890e68397fb8f9a3de4/example_grid.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/455f4a0d6f55d57bec7b1548941dfe56/example_plot.zip
Binary file not shown.
Binary file modified _downloads/46b4cb42d5bb56cc39e2b5b2b520b38d/gallery_python.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/540eb5641f8ad1d8bbba63da7a6f1b55/example_openberg.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/55c56f11981bc8994b23dd67ccffd4ea/example_larvae.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/57d7c3a68ca90906235269c0c377050a/example_compare.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/80232020e698aa1c3db016afe427fe84/example_openoil.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/838aeedbd6bf9f4ea6ea3789d94e546a/example_fjord.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/9279195b7d521d2dd58211cf2d1ee7e2/example_codegg.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/a5e54d5079281985180311aeb584726e/example_map.zip
Binary file not shown.
Binary file modified _downloads/a724e3e7d25baaaa1d358c1bd5c2dd60/example_fvcom.zip
Binary file not shown.
Binary file modified _downloads/a799cfc3e2163a9601d1a00e61d10a39/example_trajan.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/b5b04944cba9e81b9a5872791330760c/example_ensemble.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/bb890d8fc18f9a21787029b6675af744/example_cone.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/c0a3a846dd7c6d6aa449fdf8fd813796/example_macondo.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/c121897cbb882ba2326dd7f0f3f9a5c6/example_drifter.zip
Binary file not shown.
Binary file modified _downloads/c53354a1383dae63edfb5fe0bcbb4be6/example_windblow.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/ed4c48daa486e7b41db355dc85b3fe89/example_generic.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/f301a4c979f22b9b7478e10e32a3e4dc/example_leeway.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/f93abdd76951294346e6f02f09086575/example_2d.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/fcaddee3a42ae2e2c41e00ae08d70347/gallery_jupyter.zip
Binary file not shown.
Binary file not shown.
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_coastline_options_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_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_coastline_options_3.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 modified _images/example_manual_aggregate_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
Binary file modified _images/example_oil_verticalmixing_1.gif
Binary file modified _images/example_oilspill_seafloor_biodegradation_0.gif
Binary file modified _images/example_oilspill_seafloor_biodegradation_1.gif
Binary file modified _images/example_plot_0.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_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 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_oilspill_seafloor_biodegradation_001.png
Binary file modified _images/sphx_glr_example_oilspill_seafloor_biodegradation_002.png
Binary file modified _images/sphx_glr_example_openberg_001.png
Binary file modified _images/sphx_glr_example_openberg_002.png
Binary file modified _images/sphx_glr_example_openberg_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_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
16 changes: 16 additions & 0 deletions _modules/opendrift/readers/reader_global_landmask.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,22 @@ <h1>Source code for opendrift.readers.reader_global_landmask</h1><div class="hig
<span class="k">if</span> <span class="n">fast</span><span class="p">:</span>
<span class="n">show_landmask_roaring</span><span class="p">(</span><span class="n">get_mask</span><span class="p">())</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">if</span> <span class="n">latmax</span><span class="o">-</span><span class="n">latmin</span> <span class="o">&lt;</span> <span class="mi">3</span> <span class="ow">and</span> <span class="n">lonmax</span><span class="o">-</span><span class="n">lonmin</span> <span class="o">&lt;</span> <span class="mi">3</span><span class="p">:</span>
<span class="c1"># Check first if there is land at all within map bounds</span>
<span class="n">roaring</span> <span class="o">=</span> <span class="n">get_mask</span><span class="p">()</span>
<span class="n">maxn</span> <span class="o">=</span> <span class="mf">512.</span>
<span class="n">dlon</span> <span class="o">=</span> <span class="p">(</span><span class="n">lonmax</span> <span class="o">-</span> <span class="n">lonmin</span><span class="p">)</span> <span class="o">/</span> <span class="n">maxn</span>
<span class="n">dlat</span> <span class="o">=</span> <span class="p">(</span><span class="n">latmax</span> <span class="o">-</span> <span class="n">latmin</span><span class="p">)</span> <span class="o">/</span> <span class="n">maxn</span>
<span class="n">dlon</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="n">roaring</span><span class="o">.</span><span class="n">dx</span><span class="p">,</span> <span class="n">dlon</span><span class="p">)</span>
<span class="n">dlat</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="n">roaring</span><span class="o">.</span><span class="n">dy</span><span class="p">,</span> <span class="n">dlat</span><span class="p">)</span>
<span class="n">lons</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="n">lonmin</span><span class="p">,</span> <span class="n">lonmax</span><span class="p">,</span> <span class="n">dlon</span><span class="p">)</span>
<span class="n">lats</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="n">latmin</span><span class="p">,</span> <span class="n">latmax</span><span class="p">,</span> <span class="n">dlat</span><span class="p">)</span>
<span class="n">lats</span><span class="p">,</span> <span class="n">lons</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">meshgrid</span><span class="p">(</span><span class="n">lats</span><span class="p">,</span> <span class="n">lons</span><span class="p">)</span>
<span class="n">land</span> <span class="o">=</span> <span class="n">roaring</span><span class="o">.</span><span class="n">mask</span><span class="o">.</span><span class="n">contains_many</span><span class="p">(</span><span class="n">lons</span><span class="o">.</span><span class="n">ravel</span><span class="p">(),</span> <span class="n">lats</span><span class="o">.</span><span class="n">ravel</span><span class="p">())</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">land</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">debug</span><span class="p">(</span><span class="s1">&#39;No raster land within plot area, skipping plotting of GSHHG vectors&#39;</span><span class="p">)</span>
<span class="k">return</span>

<span class="n">land</span> <span class="o">=</span> <span class="n">LandmaskFeature</span><span class="p">(</span><span class="n">scale</span><span class="o">=</span><span class="n">lscale</span><span class="p">,</span> <span class="n">facecolor</span><span class="o">=</span><span class="n">land_color</span><span class="p">,</span> <span class="n">globe</span><span class="o">=</span><span class="n">crs_lonlat</span><span class="o">.</span><span class="n">globe</span><span class="p">,</span> <span class="n">levels</span><span class="o">=</span><span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">5</span><span class="p">,</span><span class="mi">6</span><span class="p">])</span>

<span class="n">ax</span><span class="o">.</span><span class="n">add_feature</span><span class="p">(</span><span class="n">land</span><span class="p">,</span> <span class="n">zorder</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span>
Expand Down
Loading

0 comments on commit db4f7af

Please sign in to comment.