From 53b6310732f6f3d7b119fe7c1d46c2ef89998f9b Mon Sep 17 00:00:00 2001 From: Ben Varick Date: Thu, 30 Oct 2025 13:50:27 -0700 Subject: [PATCH] edited formatting --- content/blog/PrettyRivers/index.md | 8 +++++++- content/blog/RiverLevelCharts/index.md | 6 ++++-- public/blog/index.xml | 4 ++-- public/blog/prettyrivers/index.html | 5 ++++- public/blog/riverlevelcharts/index.html | 8 ++++++-- public/index.xml | 4 ++-- 6 files changed, 25 insertions(+), 10 deletions(-) diff --git a/content/blog/PrettyRivers/index.md b/content/blog/PrettyRivers/index.md index 5fb54d0..19ae82b 100644 --- a/content/blog/PrettyRivers/index.md +++ b/content/blog/PrettyRivers/index.md @@ -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) \ No newline at end of file diff --git a/content/blog/RiverLevelCharts/index.md b/content/blog/RiverLevelCharts/index.md index b07eb63..dc1bdfa 100644 --- a/content/blog/RiverLevelCharts/index.md +++ b/content/blog/RiverLevelCharts/index.md @@ -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 diff --git a/public/blog/index.xml b/public/blog/index.xml index 9e4b3ec..a2b8458 100644 --- a/public/blog/index.xml +++ b/public/blog/index.xml @@ -13,14 +13,14 @@ https://www.dendroalsia.net/blog/riverlevelcharts/ Mon, 14 Oct 2024 19:13:18 +0000 https://www.dendroalsia.net/blog/riverlevelcharts/ - <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> Pretty rivers https://www.dendroalsia.net/blog/prettyrivers/ Mon, 01 Jan 2024 19:13:02 +0000 https://www.dendroalsia.net/blog/prettyrivers/ - <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>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><img src="https://www.dendroalsia.net/blog/prettyrivers/wisconsin_rivers.png" alt="Wisconsin Rivers"></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> diff --git a/public/blog/prettyrivers/index.html b/public/blog/prettyrivers/index.html index f300ead..b7022d5 100644 --- a/public/blog/prettyrivers/index.html +++ b/public/blog/prettyrivers/index.html @@ -169,8 +169,11 @@ Pretty Rivers - Dendroalsia
-

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

diff --git a/public/blog/riverlevelcharts/index.html b/public/blog/riverlevelcharts/index.html index c253889..e8e2245 100644 --- a/public/blog/riverlevelcharts/index.html +++ b/public/blog/riverlevelcharts/index.html @@ -169,8 +169,12 @@ River Level Charts - Dendroalsia
-

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

+ +

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

Example graph

diff --git a/public/index.xml b/public/index.xml index cb1f091..37de5bd 100644 --- a/public/index.xml +++ b/public/index.xml @@ -13,14 +13,14 @@ https://www.dendroalsia.net/blog/riverlevelcharts/ Mon, 14 Oct 2024 19:13:18 +0000 https://www.dendroalsia.net/blog/riverlevelcharts/ - <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> Pretty rivers https://www.dendroalsia.net/blog/prettyrivers/ Mon, 01 Jan 2024 19:13:02 +0000 https://www.dendroalsia.net/blog/prettyrivers/ - <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>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><img src="https://www.dendroalsia.net/blog/prettyrivers/wisconsin_rivers.png" alt="Wisconsin Rivers"></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>