edited formatting

This commit is contained in:
Ben Varick 2025-10-30 13:50:27 -07:00
parent 786a1f3965
commit 53b6310732
Signed by: ben
SSH key fingerprint: SHA256:jWnpFDAcacYM5aPFpYRqlsamlDyKNpSj3jj+k4ojtUo
6 changed files with 25 additions and 10 deletions

View file

@ -3,10 +3,16 @@ date = '2024-01-01T19:13:02Z'
title = 'Pretty rivers'
+++
I like looking at maps that isolate different natural features. And I think that rivers make pretty patterns. So I made a series of scripts that generates a pretty map of rivers. I hope to print the maps of places that are important to me as art.
I like maps that isolate different natural features. And I think that rivers make pretty patterns. So I made a series of scripts that generates a pretty map of rivers. I hope to print the maps of places that are important to me as art.
The code that generates these maps is here: https://git.dendroalsia.net/ben/pretty_rivers
One key to making the map visually appealing, is setting the width of the river relative to the upstream watershed area. The USGS data includes that watershed area, and through trying different options, I found that this ratio worked well:
linewidth = (upstream surface area)^0.3204*0.0446
This works for the extent and river sizes in Wisconsin, I have to adjust it for maps of smaller areas or different sized rivers.
![Wisconsin Rivers](wisconsin_rivers.png)

View file

@ -3,9 +3,11 @@ date = '2024-10-14T19:13:18Z'
title = 'River level charts'
+++
I'm interested in rivers (both ecologically and recreationally) and I want to know water level they are currently at, and how does that compare to their water levels throughout the year and in their recent history.
In the US, the United States Geologic Survey (USGS) maintains a large set of realtime water level sensors, and that dataset is queriable through an API. So I wrote these scripts that take a set of rivers and their associated gauge IDs, downloads the recent and historical data and generates a bunch of graphs.
I'm interested in rivers (both ecologically and recreationally) and I want to know
- what water level different rivers are currently at
- how does that compare to their water levels throughout the year and in their recent history
In the US, the United States Geologic Survey (USGS) maintains a large set of realtime water level sensors, and that dataset is queriable through an API. So I wrote these scripts that take a set of rivers and their associated gauge IDs, downloads the recent and historical data and generates a bunch of graphs.
Here's the code: https://git.dendroalsia.net/ben/USGS_NWIS

View file

@ -13,14 +13,14 @@
<link>https://www.dendroalsia.net/blog/riverlevelcharts/</link>
<pubDate>Mon, 14 Oct 2024 19:13:18 +0000</pubDate>
<guid>https://www.dendroalsia.net/blog/riverlevelcharts/</guid>
<description>&lt;p&gt;I&amp;rsquo;m interested in rivers (both ecologically and recreationally) and I want to know water level they are currently at, and how does that compare to their water levels throughout the year and in their recent history.&#xA;In the US, the United States Geologic Survey (USGS) maintains a large set of realtime water level sensors, and that dataset is queriable through an API. So I wrote these scripts that take a set of rivers and their associated gauge IDs, downloads the recent and historical data and generates a bunch of graphs.&lt;/p&gt;</description>
<description>&lt;p&gt;I&amp;rsquo;m interested in rivers (both ecologically and recreationally) and I want to know&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;what water level different rivers are currently at&lt;/li&gt;&#xA;&lt;li&gt;how does that compare to their water levels throughout the year and in their recent history&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;In the US, the United States Geologic Survey (USGS) maintains a large set of realtime water level sensors, and that dataset is queriable through an API. So I wrote these scripts that take a set of rivers and their associated gauge IDs, downloads the recent and historical data and generates a bunch of graphs.&lt;/p&gt;</description>
</item>
<item>
<title>Pretty rivers</title>
<link>https://www.dendroalsia.net/blog/prettyrivers/</link>
<pubDate>Mon, 01 Jan 2024 19:13:02 +0000</pubDate>
<guid>https://www.dendroalsia.net/blog/prettyrivers/</guid>
<description>&lt;p&gt;I like looking at maps that isolate different natural features. And I think that rivers make pretty patterns. So I made a series of scripts that generates a pretty map of rivers. I hope to print the maps of places that are important to me as art.&lt;/p&gt;&#xA;&lt;p&gt;The code that generates these maps is here: &lt;a href=&#34;https://git.dendroalsia.net/ben/pretty_rivers&#34;&gt;https://git.dendroalsia.net/ben/pretty_rivers&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.dendroalsia.net/blog/prettyrivers/wisconsin_rivers.png&#34; alt=&#34;Wisconsin Rivers&#34;&gt;&lt;/p&gt;</description>
<description>&lt;p&gt;I like maps that isolate different natural features. And I think that rivers make pretty patterns. So I made a series of scripts that generates a pretty map of rivers. I hope to print the maps of places that are important to me as art.&lt;/p&gt;&#xA;&lt;p&gt;The code that generates these maps is here: &lt;a href=&#34;https://git.dendroalsia.net/ben/pretty_rivers&#34;&gt;https://git.dendroalsia.net/ben/pretty_rivers&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;One key to making the map visually appealing, is setting the width of the river relative to the upstream watershed area. The USGS data includes that watershed area, and through trying different options, I found that this ratio worked well:&lt;/p&gt;</description>
</item>
</channel>
</rss>

View file

@ -169,8 +169,11 @@ Pretty Rivers - Dendroalsia
</div>
<div class="container markdown top-pad">
<p>I like looking at maps that isolate different natural features. And I think that rivers make pretty patterns. So I made a series of scripts that generates a pretty map of rivers. I hope to print the maps of places that are important to me as art.</p>
<p>I like maps that isolate different natural features. And I think that rivers make pretty patterns. So I made a series of scripts that generates a pretty map of rivers. I hope to print the maps of places that are important to me as art.</p>
<p>The code that generates these maps is here: <a href="https://git.dendroalsia.net/ben/pretty_rivers">https://git.dendroalsia.net/ben/pretty_rivers</a></p>
<p>One key to making the map visually appealing, is setting the width of the river relative to the upstream watershed area. The USGS data includes that watershed area, and through trying different options, I found that this ratio worked well:</p>
<p>linewidth = (upstream surface area)^0.3204*0.0446</p>
<p>This works for the extent and river sizes in Wisconsin, I have to adjust it for maps of smaller areas or different sized rivers.</p>
<p><img src="/blog/prettyrivers/wisconsin_rivers.png" alt="Wisconsin Rivers"></p>
</div>

View file

@ -169,8 +169,12 @@ River Level Charts - Dendroalsia
</div>
<div class="container markdown top-pad">
<p>I&rsquo;m interested in rivers (both ecologically and recreationally) and I want to know water level they are currently at, and how does that compare to their water levels throughout the year and in their recent history.
In the US, the United States Geologic Survey (USGS) maintains a large set of realtime water level sensors, and that dataset is queriable through an API. So I wrote these scripts that take a set of rivers and their associated gauge IDs, downloads the recent and historical data and generates a bunch of graphs.</p>
<p>I&rsquo;m interested in rivers (both ecologically and recreationally) and I want to know</p>
<ul>
<li>what water level different rivers are currently at</li>
<li>how does that compare to their water levels throughout the year and in their recent history</li>
</ul>
<p>In the US, the United States Geologic Survey (USGS) maintains a large set of realtime water level sensors, and that dataset is queriable through an API. So I wrote these scripts that take a set of rivers and their associated gauge IDs, downloads the recent and historical data and generates a bunch of graphs.</p>
<p>Here&rsquo;s the code: <a href="https://git.dendroalsia.net/ben/USGS_NWIS">https://git.dendroalsia.net/ben/USGS_NWIS</a></p>
<p><img src="/blog/riverlevelcharts/example_last_6_months.png" alt="Example graph"></p>

View file

@ -13,14 +13,14 @@
<link>https://www.dendroalsia.net/blog/riverlevelcharts/</link>
<pubDate>Mon, 14 Oct 2024 19:13:18 +0000</pubDate>
<guid>https://www.dendroalsia.net/blog/riverlevelcharts/</guid>
<description>&lt;p&gt;I&amp;rsquo;m interested in rivers (both ecologically and recreationally) and I want to know water level they are currently at, and how does that compare to their water levels throughout the year and in their recent history.&#xA;In the US, the United States Geologic Survey (USGS) maintains a large set of realtime water level sensors, and that dataset is queriable through an API. So I wrote these scripts that take a set of rivers and their associated gauge IDs, downloads the recent and historical data and generates a bunch of graphs.&lt;/p&gt;</description>
<description>&lt;p&gt;I&amp;rsquo;m interested in rivers (both ecologically and recreationally) and I want to know&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;what water level different rivers are currently at&lt;/li&gt;&#xA;&lt;li&gt;how does that compare to their water levels throughout the year and in their recent history&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;In the US, the United States Geologic Survey (USGS) maintains a large set of realtime water level sensors, and that dataset is queriable through an API. So I wrote these scripts that take a set of rivers and their associated gauge IDs, downloads the recent and historical data and generates a bunch of graphs.&lt;/p&gt;</description>
</item>
<item>
<title>Pretty rivers</title>
<link>https://www.dendroalsia.net/blog/prettyrivers/</link>
<pubDate>Mon, 01 Jan 2024 19:13:02 +0000</pubDate>
<guid>https://www.dendroalsia.net/blog/prettyrivers/</guid>
<description>&lt;p&gt;I like looking at maps that isolate different natural features. And I think that rivers make pretty patterns. So I made a series of scripts that generates a pretty map of rivers. I hope to print the maps of places that are important to me as art.&lt;/p&gt;&#xA;&lt;p&gt;The code that generates these maps is here: &lt;a href=&#34;https://git.dendroalsia.net/ben/pretty_rivers&#34;&gt;https://git.dendroalsia.net/ben/pretty_rivers&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.dendroalsia.net/blog/prettyrivers/wisconsin_rivers.png&#34; alt=&#34;Wisconsin Rivers&#34;&gt;&lt;/p&gt;</description>
<description>&lt;p&gt;I like maps that isolate different natural features. And I think that rivers make pretty patterns. So I made a series of scripts that generates a pretty map of rivers. I hope to print the maps of places that are important to me as art.&lt;/p&gt;&#xA;&lt;p&gt;The code that generates these maps is here: &lt;a href=&#34;https://git.dendroalsia.net/ben/pretty_rivers&#34;&gt;https://git.dendroalsia.net/ben/pretty_rivers&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;One key to making the map visually appealing, is setting the width of the river relative to the upstream watershed area. The USGS data includes that watershed area, and through trying different options, I found that this ratio worked well:&lt;/p&gt;</description>
</item>
</channel>
</rss>