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 Oct 18, 2023
1 parent 4bef6bd commit 7c54115
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ <h1>Source code for compass.ocean.tests.global_ocean.files_for_e3sm.remap_iceber
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">&#39;Renaming dimensions and variables...&#39;</span><span class="p">)</span>
<span class="n">rename</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">ncol</span><span class="o">=</span><span class="s1">&#39;nCells&#39;</span><span class="p">,</span>
<span class="n">month</span><span class="o">=</span><span class="s1">&#39;Time&#39;</span><span class="p">,</span>
<span class="n">Icb_flux</span><span class="o">=</span><span class="s1">&#39;bergFreshWaterFluxData&#39;</span><span class="p">)</span>
<span class="n">Icb_flux</span><span class="o">=</span><span class="s1">&#39;bergFreshwaterFluxData&#39;</span><span class="p">)</span>
<span class="n">ds</span> <span class="o">=</span> <span class="n">ds</span><span class="o">.</span><span class="n">rename</span><span class="p">(</span><span class="n">rename</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;Adding xtime...&#39;</span><span class="p">)</span>
<span class="n">xtime</span> <span class="o">=</span> <span class="p">[]</span>
Expand All @@ -294,7 +294,7 @@ <h1>Source code for compass.ocean.tests.global_ocean.files_for_e3sm.remap_iceber
<span class="n">ds</span><span class="p">[</span><span class="s1">&#39;xtime&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="s1">&#39;Time&#39;</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="n">xtime</span><span class="p">,</span> <span class="s1">&#39;S64&#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;Fix masking...&#39;</span><span class="p">)</span>
<span class="n">field</span> <span class="o">=</span> <span class="s1">&#39;bergFreshWaterFluxData&#39;</span>
<span class="n">field</span> <span class="o">=</span> <span class="s1">&#39;bergFreshwaterFluxData&#39;</span>
<span class="c1"># zero out the field where it&#39;s currently NaN</span>
<span class="n">ds</span><span class="p">[</span><span class="n">field</span><span class="p">]</span> <span class="o">=</span> <span class="n">ds</span><span class="p">[</span><span class="n">field</span><span class="p">]</span><span class="o">.</span><span class="n">where</span><span class="p">(</span><span class="n">ds</span><span class="p">[</span><span class="n">field</span><span class="p">]</span><span class="o">.</span><span class="n">notnull</span><span class="p">(),</span> <span class="mf">0.</span><span class="p">)</span>

Expand Down

0 comments on commit 7c54115

Please sign in to comment.