My valentine
It’s yelling at me to enter.
Gazing
Sacramento Rainfall 2016-2017
I created this chart because I wanted a graphical way to compare rainfall amounts this year as compared to previous years. Since I can remember our two driest years in California (1975 and 1976) and I also remember the wettest year (1982), I thought it’d be fun to watch this year’s progress.
That turned out to be an interesting decision because unbeknownst to me, it turned out to be Sacramento’s wettest season on record.
These are Sacramento records from the rain gage at Sacramento Executive Airport, so the graph doesn’t really tell us much about the status of the drought Statewide. But it does show us how rainfall in Sacramento compares to past notable weather seasons. The rainy season is defined here as starting on October 1 and continuing through the following April. Values for this season (2016-17) were updated daily at 10 a.m. PST with the previous day’s rainfall. The data comes from cdec.water.ca.gov.
The data from past years comes from UCDavis
In Sacramento, the driest year was 1975 (just 7.25 inches), and the second driest year was the next year at only 7.53 inches.
The wettest years in Sacramento are associated with the El Nino patterns of 1982 and 1997. 1982 was the wettest year in Sacramento history since records were kept beginning in 1849 at 37.49 inches. 1997 was the second wettest year of the 20th century in Sacramento at 32.25 inches. Curiously 2015-2016 was a strong El Nino, but a complete dud interms of rain.
Good historical rainfall information can be found at NOAA
Source code is on my github
Bike Commute Weather – BikeWxX
For many years, I was a regular bike commuter. I worked about 5 miles from my house, and the bike route was largely along the levees of the Sacramento River. Sacramento affords year-round bike commuting weather, but it does have it moments. Like the time I rode into the office when it was 22 degrees F, or when it started raining right when I was planning on riding home.
It occurred to me that a simple twitter bot, that posted twice a day, could give me the temperature on the ride in, and the temperature on the way home. Heck I’m checking twitter a couple times a day, may as well get some useful info out of it…
So I created “BikeWxX”. X stands for the cities, currently San Francisco, Sacramento, Silicon Valley, and Portland. I find it to be super convenient, hope you find it useful.
Here’s the code. Grab it and make a tool for the bike commuters in your community.
Number of California Bridges Built By Year
For my job as a bridge engineer, it is useful to have the most up-to-date information on bridges in California, Arizona, and Utah. Every year I download the latest bridge condition information compiled by the Federal government. This is a huge database of the detailed description, condition, use, and location of basically every bridge in the US. It’s pretty amazing.
I wrote some python scripts to parse out the data and get it into a PostGIS-enabled PostgreSQL database. From there I can do pretty much anything, like create cool maps of, say, all the bridges in the City of Los Angeles, with the poorest condition bridges in red.:
Or create a graphic of how many California bridges were built by year as the top image shows. Here’s the Plotly link.
If you know GIS and Python, take a look at my code. It works, but there are probably some improvements to be made.