Dewey Dunnington
Dewey Dunnington
Home
Posts
Publications
Posts
Stream networks using R and GEOS
Almost exactly a year ago I wrote a post on using R and sf to work with stream networks. The post was about low-level analysis with the Nova Scotia stream network to find upstream networks of various lakes so that I could approximate the catchments without a province-wide DEM analysis.
Apr 1, 2021
11 min read
wk version 0.4.0!
About the time the COVID-19 pandemic began, I started getting interested in some low-level geometry programming in R. Around that time the vctrs package was starting to mature and dplyr version 1.
Mar 2, 2021
12 min read
Using R's cross-platform iconv wrapper from cpp11
In some recent adventures parsing text embedded within binary files, I came across the need to correctly interpret input bytes from a file representing a character string. As a developer, you want to write software that protects users from ever having to deal with an encoding issue!
Feb 7, 2021
5 min read
Hacking Seabird HEX files using R and the tidyverse
Avid readers of this blog, if there are any, would have figured out that I really love low-level data IO and hacking proprietary file formats so that I can use the data in the open-source (mostly) software that I know and love.
Dec 5, 2020
15 min read
New article: The distribution and transport of Pb in northeastern North America
Today the pivotal and final chapter of my Ph.D. thesis was published in Science of the Total Environment! I’ve been excited about Pb deposition ever since my honours thesis, when I measured Pb (and other elements) in two lakes near the Nova Scotia-New Brunswick border.
Last updated on Jun 22, 2020
4 min read
Getting started with Zotero, Better BibTeX, and RMarkdown
I have to start with saying that there’s a lot of ways to write scientific articles with all of these tools. In particular, there’s some great guides from rOpenSci, packages with LaTeX templates for major publishers, and R packages to help with reproducible documents.
Last updated on May 9, 2020
5 min read
The forthcoming {wk} package preview!
This is a preview of the wk package for R, which is currently undergoing the CRAN submission process. I’m just so excited about it that I can’t wait to start talking about what it can do!
Last updated on May 6, 2020
10 min read
Calculating lake outlets using R
If you can’t tell from my last two posts, I’m trying to delineate watersheds for about 650 lakes. We’ve gotten to the point where we can calculate an approximate catchment using the upstream network, and call the QGIS processing algorithms we need to delineate the catchment from the outlet.
Last updated on Apr 22, 2020
4 min read
Calling QGIS3 from R
If you can’t tell from my last post, I’m trying to delineate watersheds for about 650 lakes. It’s not possible (er, I am unwilling) to do this by hand, so I need a way to do this programmatically.
Last updated on Apr 16, 2020
7 min read
Stream networks using R and sf
I have a paper in the works that involves data for a few hundred lakes in Nova Scotia, for which I need catchment parameters. That’s a tall order! Automated catchment extraction is possible, but it helps to have a ballpark area to work with.
Last updated on Apr 14, 2020
8 min read
«
»
Cite
×