Skip to content

Commit

Permalink
[skip ci] Update stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure Pipelines committed Jan 12, 2024
1 parent f710399 commit bc4c7fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stable/_modules/mpas_tools/mesh/mask.html
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,9 @@ <h1>Source code for mpas_tools.mesh.mask</h1><div class="highlight"><pre>

<span class="n">dsMasks</span> <span class="o">=</span> <span class="n">xr</span><span class="o">.</span><span class="n">Dataset</span><span class="p">()</span>

<span class="c1"># make sure lon is between -180 and 180</span>
<span class="n">lon</span> <span class="o">=</span> <span class="n">numpy</span><span class="o">.</span><span class="n">mod</span><span class="p">(</span><span class="n">lon</span> <span class="o">+</span> <span class="mf">180.</span><span class="p">,</span> <span class="mf">360.</span><span class="p">)</span> <span class="o">-</span> <span class="mf">180.</span>

<span class="n">Lon</span><span class="p">,</span> <span class="n">Lat</span> <span class="o">=</span> <span class="n">numpy</span><span class="o">.</span><span class="n">meshgrid</span><span class="p">(</span><span class="n">lon</span><span class="p">,</span> <span class="n">lat</span><span class="p">)</span>

<span class="n">shape</span> <span class="o">=</span> <span class="n">Lon</span><span class="o">.</span><span class="n">shape</span>
Expand Down

0 comments on commit bc4c7fb

Please sign in to comment.