coding
Using Chat GPT-4 to quickly make a timelapse GIF
Chat GPT-4 (https://chat.openai.com/) is taking off rapidly, and I’m admittedly a late-adopter. I recently used it for a quick project, and I can confidently say it drastically sped up my process.
Make decent looking hillshade maps with Matplotlib
This post shows a recipe for creating decent looking “hillshade” or “shaded relief” maps in python and matplotlib. I was inspired to do this after creating similar visualizations using the QGIS GUI. Using a GUI based program for making maps is, in my opinion, far superior to doing the same in python, since there are knobs and sliders for doing fine tuning of marker locations, colors, and the like. But sometimes you might want to display topography as part of another data visualization, in conjunction with other non-map data visuals. https://www.shadedrelief.com/ is a really cool website that shows off many examples of shaded relief maps.
AGU 2021 Talk (Link)
The following link is for my 2021 AGU presentation. I describe a method to validate mountain precipitation estimates using streamflow, high resolution snow-lidar, simple hydrologic models, and bayesian inference https://youtu.be/Nune4HdeprI.
Make your matplotlib scripts easier to read
Use the ** operator in Python to clean up matplotlib plotting code
Python Unittest Emulator
Emulating the Python unittesting module for non-unit test applications.
data
Plotting global warming evidence using NOAA GML weather balloons
Evidence of global warming is everywhere.
Use 2-D histograms instead of scatter plots
I’m increasingly finding that scatterplots are not always the best data visualization tool, particularly when you’re dealing with datasets with lots of points. But I still see them published in papers all the time, even when they are not the appropriate choice (and I am probably guilty of this!).
other
First post
This blog is hosted on a digital ocean droplet running Ubuntu and nginix. The blog framework is “Jekyll”. I find that the easiest way to push content is to simply build the site on my local machine and then scp the contents to the server’s /var/www folder.