Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 26, 2024
1 parent a7f1110 commit 6506e4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions latest/_modules/compass/ocean/mesh/cull.html
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,8 @@ <h1>Source code for compass.ocean.mesh.cull</h1><div class="highlight"><pre>
<span class="n">ds_map_culled_to_base</span><span class="p">,</span> <span class="n">ds_preserve</span><span class="p">,</span>
<span class="n">logger</span><span class="p">,</span> <span class="n">latitude_threshold</span><span class="p">,</span>
<span class="n">sweep_count</span><span class="p">)</span>
<span class="n">ds_topo</span><span class="p">[</span><span class="s1">&#39;ssh&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">ds_topo</span><span class="p">[</span><span class="s1">&#39;landIceDraftObserved&#39;</span><span class="p">]</span>

<span class="n">write_netcdf</span><span class="p">(</span><span class="n">ds_topo</span><span class="p">,</span> <span class="s1">&#39;topography_with_land_ice_mask.nc&#39;</span><span class="p">)</span>

<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">&#39;Culling topography&#39;</span><span class="p">)</span>
Expand Down Expand Up @@ -662,7 +664,7 @@ <h1>Source code for compass.ocean.mesh.cull</h1><div class="highlight"><pre>
<span class="n">not_preserve</span> <span class="o">=</span> <span class="n">ds</span><span class="o">.</span><span class="n">transectCellMasks</span><span class="o">.</span><span class="n">sum</span><span class="p">(</span><span class="n">dim</span><span class="o">=</span><span class="s1">&#39;nTransects&#39;</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span>

<span class="k">for</span> <span class="n">var</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;landIceFracObserved&#39;</span><span class="p">,</span> <span class="s1">&#39;landIcePressureObserved&#39;</span><span class="p">,</span>
<span class="s1">&#39;landIceDraftObserved&#39;</span><span class="p">,</span> <span class="s1">&#39;ssh&#39;</span><span class="p">,</span>
<span class="s1">&#39;landIceDraftObserved&#39;</span><span class="p">,</span>
<span class="s1">&#39;landIceGroundedFracObserved&#39;</span><span class="p">,</span>
<span class="s1">&#39;landIceFloatingFracObserved&#39;</span><span class="p">,</span> <span class="s1">&#39;landIceThkObserved&#39;</span><span class="p">]:</span>
<span class="n">ds_topo</span><span class="p">[</span><span class="n">var</span><span class="p">]</span> <span class="o">=</span> <span class="n">ds_topo</span><span class="p">[</span><span class="n">var</span><span class="p">]</span><span class="o">.</span><span class="n">where</span><span class="p">(</span><span class="n">not_preserve</span><span class="p">,</span> <span class="mf">0.0</span><span class="p">)</span>
Expand Down Expand Up @@ -690,7 +692,7 @@ <h1>Source code for compass.ocean.mesh.cull</h1><div class="highlight"><pre>

<span class="c1"># update land-ice variables and ocean fraction accordingly</span>
<span class="k">for</span> <span class="n">var</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">&#39;landIceFracObserved&#39;</span><span class="p">,</span> <span class="s1">&#39;landIcePressureObserved&#39;</span><span class="p">,</span>
<span class="s1">&#39;landIceDraftObserved&#39;</span><span class="p">,</span> <span class="s1">&#39;ssh&#39;</span><span class="p">,</span> <span class="s1">&#39;landIceGroundedFracObserved&#39;</span><span class="p">,</span>
<span class="s1">&#39;landIceDraftObserved&#39;</span><span class="p">,</span> <span class="s1">&#39;landIceGroundedFracObserved&#39;</span><span class="p">,</span>
<span class="s1">&#39;landIceFloatingFracObserved&#39;</span><span class="p">,</span> <span class="s1">&#39;landIceThkObserved&#39;</span><span class="p">]:</span>
<span class="n">ds_topo</span><span class="p">[</span><span class="n">var</span><span class="p">]</span> <span class="o">=</span> <span class="n">ds_topo</span><span class="p">[</span><span class="n">var</span><span class="p">]</span><span class="o">.</span><span class="n">where</span><span class="p">(</span><span class="n">land_ice_present</span><span class="p">,</span> <span class="mf">0.0</span><span class="p">)</span>

Expand Down
2 changes: 0 additions & 2 deletions latest/_modules/compass/ocean/mesh/remap_topography.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ <h1>Source code for compass.ocean.mesh.remap_topography</h1><div class="highligh

<span class="n">ds_out</span><span class="p">[</span><span class="s1">&#39;landIceDraftObserved&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">draft</span>

<span class="n">ds_out</span><span class="p">[</span><span class="s1">&#39;ssh&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">draft</span>

<span class="n">write_netcdf</span><span class="p">(</span><span class="n">ds_out</span><span class="p">,</span> <span class="s1">&#39;topography_remapped.nc&#39;</span><span class="p">)</span></div>
</div>

Expand Down

0 comments on commit 6506e4e

Please sign in to comment.