Skip to content

Commit

Permalink
deploy: 9b31bb4
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc2 committed Dec 10, 2023
1 parent 18c081d commit dddcced
Show file tree
Hide file tree
Showing 10 changed files with 158 additions and 172 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 1 addition & 12 deletions _sources/notebooks/03-uxarray-vis/06-performance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -278,17 +278,6 @@
"collapsed": false
}
},
{
"cell_type": "markdown",
"source": [
"```Python\n",
"uxds['relhum_200hPa'][0].plot.rasterize(method='polygon', width=1000, height=500, exclude_antimeridian=True, clim=clim, title=\"Global Polygon Raster\")\n",
"```"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "markdown",
"source": [
Expand Down Expand Up @@ -345,7 +334,7 @@
{
"cell_type": "markdown",
"source": [
"The Polygon Raster can be zoomed in indefinite, which is due to each polygon covering a region of our screen.\n",
"The Polygon Raster can be zoomed in indefinitely, which is due to each polygon covering a region of our screen.\n",
"\n",
"However, zooming in to our Point Rasters exposes how each point is still simply a pair of latitude and longitude coordinates, without any sense of area. After a certain point, there isn't enough points to sample into a uniform looking raster image, and we are left with an approximation the individual points.\n",
"\n",
Expand Down
Binary file modified _static/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion notebooks/01-intro/01-unstructured-grid-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ <h2>Structured Grids<a class="headerlink" href="#structured-grids" title="Permal
warnings.warn(f&#39;Downloading: {url}&#39;, DownloadWarning)
</pre></div>
</div>
<img alt="../../_images/e5940a66ad0206551e6be9f58c672c9112065c0fc1928b2449eefe0d3365b017.png" src="../../_images/e5940a66ad0206551e6be9f58c672c9112065c0fc1928b2449eefe0d3365b017.png" />
<img alt="../../_images/3a34e4770a63f72fd719af55d9bfecd5b84ec70369edad335cfd7c5231423fbe.png" src="../../_images/3a34e4770a63f72fd719af55d9bfecd5b84ec70369edad335cfd7c5231423fbe.png" />
</div>
</div>
</div>
Expand Down
16 changes: 8 additions & 8 deletions notebooks/01-intro/02-data-structures.html

Large diffs are not rendered by default.

96 changes: 48 additions & 48 deletions notebooks/03-uxarray-vis/01-plot-api.html

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions notebooks/03-uxarray-vis/02-grid-topology.html

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions notebooks/03-uxarray-vis/03-polygons.html

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions notebooks/03-uxarray-vis/04-points.html

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions notebooks/03-uxarray-vis/06-performance.html
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,6 @@ <h3>Regional<a class="headerlink" href="#regional" title="Permalink to this head
<p><img alt="Point Raster" src="../../_images/regional_point_raster.png" /></p>
<p>Without specifying any additional parameters, both the Polygon and Point rasters look identical.</p>
<p>However, setting the parameter <code class="docutils literal notranslate"><span class="pre">dynamic=True</span></code>, which dynamically performs the rasterization operations as we zoom and pan across a plot, we can start to see the differences between both types of plots.</p>
<div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="n">uxds</span><span class="p">[</span><span class="s1">&#39;relhum_200hPa&#39;</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">plot</span><span class="o">.</span><span class="n">rasterize</span><span class="p">(</span><span class="n">method</span><span class="o">=</span><span class="s1">&#39;polygon&#39;</span><span class="p">,</span> <span class="n">width</span><span class="o">=</span><span class="mi">1000</span><span class="p">,</span> <span class="n">height</span><span class="o">=</span><span class="mi">500</span><span class="p">,</span> <span class="n">exclude_antimeridian</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">clim</span><span class="o">=</span><span class="n">clim</span><span class="p">,</span> <span class="n">title</span><span class="o">=</span><span class="s2">&quot;Global Polygon Raster&quot;</span><span class="p">)</span>
</pre></div>
</div>
<div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="n">uxds</span><span class="p">[</span><span class="s1">&#39;relhum_200hPa&#39;</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">plot</span><span class="o">.</span><span class="n">rasterize</span><span class="p">(</span><span class="n">method</span><span class="o">=</span><span class="s1">&#39;polygon&#39;</span><span class="p">,</span>
<span class="n">width</span><span class="o">=</span><span class="mi">1000</span><span class="p">,</span>
<span class="n">height</span><span class="o">=</span><span class="mi">500</span><span class="p">,</span>
Expand All @@ -619,7 +616,7 @@ <h3>Regional<a class="headerlink" href="#regional" title="Permalink to this head
</pre></div>
</div>
<p><img alt="Point Raster" src="../../_images/regional_point_raster_dyn.png" /></p>
<p>The Polygon Raster can be zoomed in indefinite, which is due to each polygon covering a region of our screen.</p>
<p>The Polygon Raster can be zoomed in indefinitely, which is due to each polygon covering a region of our screen.</p>
<p>However, zooming in to our Point Rasters exposes how each point is still simply a pair of latitude and longitude coordinates, without any sense of area. After a certain point, there isn’t enough points to sample into a uniform looking raster image, and we are left with an approximation the individual points.</p>
<p>Zooming in even further with the Polygon Raster, we can start to see each individual cell, even at such a high resolution.</p>
<p><img alt="Polygon Raster" src="../../_images/polygon_raster_regional_dyn_zoomed.png" /></p>
Expand Down

0 comments on commit dddcced

Please sign in to comment.