Canadian Water
SONY DSC-RX10M4 9mm f2.4 1/6,400s ISO100
SONY DSC-RX10M4 9mm f2.4 1/6,400s ISO100
SONY DSC-RX10M4 9mm f16.0 1/100s ISO100
SONY DSC-RX10M4 12mm f16.0 1/40s ISO100
SONY DSC-RX10M4 65mm f16.0 1/640s ISO100
Photos of Sunwapta and Athabasca Falls in Jasper National Park (Alberta), and Overlander, Nairn and Brandywine Falls in British Columbia.
Related Posts
- Humpback Whales in the Strait of Georgia
- Time Lapse of the Milky Way over Jasper
- Brown Black Bear
- Wave
- Rapids
(Published to the Fediverse as: Canadian Water #photo #waterfall Photos of Sunwapta, Athbasca, Overlander, Nairn and Brandywine Falls in Alberta and British Columbia, Canada. )
Humpback Whales in the Strait of Georgia
SONY DSC-RX10M4 220mm f4.0 1/640s ISO100
SONY DSC-RX10M4 178mm f4.0 1/800s ISO100
SONY DSC-RX10M4 220mm f4.0 1/640s ISO100
SONY DSC-RX10M4 220mm f4.0 1/640s ISO100
SONY DSC-RX10M4 220mm f4.0 1/800s ISO100
Photos of three humpback whales in the Strait of Georgia, near Vancouver, British Columbia in Canada.
Related Posts
- Canadian Water
- Humpback Whales in Monterey Bay
- Humpback Whale Feasting off Rockaway Beach in Pacifica
- Humpback Whales in Golden Gate
- Brown Black Bear
(Published to the Fediverse as: Humpback Whales in the Strait of Georgia #photo #whales #humpback Photos of three whales near Vancouver, British Columbia )
Does closing the Great Highway cause an increase in traffic accidents?
There is some debate in San Francisco at the moment around permanently closing the Great Highway to traffic.
This road was closed during the pandemic and I regularly visited with my kids to enjoy a bike ride in a safe and beautiful environment. There were also 'slow streets' dotted around the city, many of which persisted. These still have cars and parking and are much less compelling.
Opponents of the plan are concerned that traffic displaced from the Great Highway will make neighborhood streets more dangerous. The hope is that this traffic will shift to Sunset Boulevard but the reality is likely some increased traffic in the Outer Sunset. This seems like a reasonable complaint, but so far I haven't seen any data. Since August 2021 the Great Highway has been closed weekends, holidays and Friday afternoons. Is it possible to see the impact?
I downloaded injury accident and fatality data from Data SF. This covers the entire city so I first cut the data set down to an area bounded by the Great Highway and Sunset Boulevard (including both) and Lincoln Way and Sloat (excluding both). I then picked a pre period from May 28, 2017 to February 29, 2020 and a post period from September 1, 2021 to June 4, 2024. Both periods are 1,008 days which is 36 28 day periods. Here's a chart of injury accidents (number of people injured in total) by week day:
The good news is that injuries are down overall. Monday through Friday the total decrease is 26%. When the Great Highway is closed at the weekend the number of injuries decreases by 44%. It looks like the streets have got safer when the Great Highway is closed. Before the pandemic you would be 14% more likely to get injured at the weekend, for the last few years this has flipped to 14% less likely.
I also looked at deaths. There are only two, both in the post period. One was on a Saturday and one a Monday. That's not enough data to try and draw any conclusions.
Given how nice that stretch of road is, I'm now a big supporter of the Great Highway Park concept.
In case it's useful here's the code behind the analysis:
Related Posts
- San Francisco Budget - The Missing Manual
- Which PG&E rate plan works best for EV charging?
- Visualizing Coronavirus Cases and Deaths by Country and US County
- Export Google Fit Daily Steps, Weight and Distance to a Google Sheet
- Coronavirus Visualization Update
(Published to the Fediverse as: Does closing the Great Highway cause an increase in traffic accidents? #politics #sanfrancisco #greathighway Analysis of data from DataSF shows injury accidents are lower when the Great Highway is closed to traffic. )
Time to go, Joe
I just sent this note to my senators (Padilla and Butler):
"Being a presidential voter in California is like playing the Trolley Problem without a lever. I know my vote won't make much of a difference, but I can no longer vote for President Biden. I was an enthusiastic supporter in 2020. I'm grateful that Biden defeated Trump. I'm proud of the work this administration has done to reduce carbon emissions, make healthcare more affordable and increase domestic semiconductor production.
While impressive, these accomplishments are sunk benefits. If Trump is allowed to prevail in the 2024 election much of this good work will be undone. That will likely be the least of our problems as a country. President Biden is now almost certain to lose the election. We are currently stuck with everyone realizing that this is true, but too few willing to make their position public. We risk a catastrophic election result unless a landslide of hard truths are delivered in the next few days.
Biden ran on a platform of being the bridge to a new generation of leadership. He must fulfil this promise and start the process of passing the torch immediately. As my representative please take a public position that this must happen as I'm sure you must privately believe. Thank you."
Related Posts
(Published to the Fediverse as: Time to go, Joe #politics #election #biden Open letter to California senators Padila and Butler )
Canadian Sunsets
Time lapse of sunsets from Calgary, Banff, Shuswap Lake and Vancouver in Canada (Alberta and British Columbia).
Related Posts
(Published to the Fediverse as: Canadian Sunsets #timelapse #video #canada #sunset #calgary #banff #shuswap #vancouver A time lapse video of sunsets from Calgary, Banff, Shuswap Lake and Vancouver. )
Time Lapse of the Milky Way over Jasper
4K time lapse of the Milky Way over Jasper in Alberta. Shot on July 5 and 6 2024. Sony A7C / 20mm f1.8 G. Post processed in LRTimelapse, Lightroom and Resolve. Music from Stable Audio.
Related Posts
- Milky Way and stars over Redding
- Stars over Columbia State Historic Park
- Snowdonia Milky Way Time Lapse
- Milky Way Rises over South Lake Tahoe
- Canadian Water
(Published to the Fediverse as: Time Lapse of the Milky Way over Jasper #timelapse #video #stars #4k #milkyway 4k time lapse from July 5 and 6 2024 shot in Jasper, Alberta, Canada. )
YVR SFO
Google Pixel 8 Pro 18mm f2.8 1/653s ISO20
WS1774
Related Posts
(Published to the Fediverse as: YVR SFO #photo #plane #sfo #yvr YVR SFO )
SFO YYC
Google Pixel 8 Pro 7mm f1.7 1/80s ISO21
WS1509
Related Posts
(Published to the Fediverse as: SFO YYC #photo #plane #sfo #yyc SFO YYC )
San Francisco Budget - The Missing Manual
- Overview
- Organization Hierarchy
- Object Hierarchy
- Character, Object, Sub-object for Revenue
- Character, Object, Sub-object for Spending
- Sub-objects for the Police Department
- Fund Hierarchy
I recently released my San Francisco Budget GPT. This is based on open data from DataSF, and while it can answer many questions it helps to have enough context to know what to ask. The published dataset has a data dictionary but it can be frustratingly vague. As well as the downloadable data there is a helpful site where you can generate some reports. This post should help fill in some of the gaps.
Overview
Budget data is available from the 2009-2010 to the 2024 to 2025 fiscal years (which run from July 1 to June 30). In the file the fiscal year is at the end of the period. Every dollar has a source and a use, there is a 'Revenue or Spending' column that is Revenue for sources and Spending for uses. The actual dollar values are in a 'Budget' column. There are three hierarchies that allow you to analyze the data - organization, object and fund. Each hierarchy has three levels, and each level has a code and a description. For the rest of this post I'm using data from the 2023-2024 fiscal year.
The total budget for 2023-2024 is $14.6 billion dollars. That's a little hard to put into context. On the one hand it's about two dimes for every week the universe has existed. On the other, it's only a quarter of Elon Musk's Tesla bonus.
Organization Hierarchy
This is the organizational structure of the city - Organization Group, Department and Program. One example is Public Safety, Police, Operating. Here's the full Organization Group and Department structure:
Organization Group and Department
(A quick note on charts - there is a lot of information to present here. Each chart has a full screen button at the top right and I recommend using this to see the most detail. Charts also have tooltips and so you'll have a much better time with this post if you use a big screen and a mouse. On sunburst (nested pie) charts click any segment to filter to that parent only.)
I haven't included Program here. It sounds like it should be useful, the data dictionary says: "For example, the Police Department has programs for Patrol, Investigations, and Administration." But it doesn't:
Police Department Programs
Maybe this worked at some point, but it's not a lot of help for the current year (It's a bit of a mystery, but not like that time I found out someone redistricted the Farallon Islands.)
It's also helpful to know that the department code has been prefixed to every department. So in the data the Police Department is 'POL Police'. This doesn't seem to happen elsewhere in the dataset. It probably helps to find monstrosities like 'MTA Municipal Transprtn Agncy' because we presumably can't find the spare change for longer column names.
Object Hierarchy
My favorite hierarchy is what we're spending money on at a reasonably granular level, broken down into Character, Object and Sub-object. This works both ways and you can look up sources as well as uses. An example on the revenue side is 'Fines, Forfeitures & Penalties', 'Traffic Fines', 'Traffic Fines - Parking' ($98 million).
Character, Object, Sub-object for Revenue
Character, Object, Sub-object for Spending
Sub-objects for the Police Department
While Program doesn't work, Sub-Object allows us to break down Police department spending in more detail:
Fund Hierarchy
Last but not least the fund hierarchy is where the money comes from. The three levels are Fund Type, Fund and Fund Category. As with objects you can also use this on the Spending side to see where funds are being spent.
Fund Type is critical to understanding the budget. There are three main buckets - General Fund, Enterprise Funds and Special Revenue Funds. Enterprise Funds are for self funding departments, so while $1.2 billion of the budget is for San Francisco International Airport that's not coming out of my pocket. The General Fund is discretionary spending and Special Revenue Funds are dollars that have been restricted to specific uses, for example by the endless ballot measures that San Francisco and California are so fond of.
Fund Type and Fund
This treemap shows the first two levels of the fund hierarchy:
Fund Type to Organization Group
Lastly this chart shows the flow of Fund Types to Organization Groups for Spending, excluding Enterprise Funds:
Related Posts
- Does closing the Great Highway cause an increase in traffic accidents?
- Which PG&E rate plan works best for EV charging?
- Automate Google PageSpeed Insights and Core Web Vitals Logging with Apps Script
- Export Google Fit Daily Steps, Weight and Distance to a Google Sheet
- Monitor page index status with Google Sheets, Apps Script and the Google Search Console API
(Published to the Fediverse as: San Francisco Budget - The Missing Manual #politics #sanfrancisco #budget Detailed guide to the three hierarchies of the San Francisco Budget from DataSF. )
San Francisco Budget Chatbot (GPT)
I just published a San Francisco Budget GPT to the ChatGPT store. This is free to use, you just need an OpenAI account.
The chatbot is constructed from the 2010-2025 data available on DataSF, the most recent 2025-2026 budget draft and a five year revenue projection. I added some instructions to help interpret the data and I've tested against a range of queries. This is generative AI and so be cautious about what it says. It's pretty good when it can find the right data and will happily invent things if it can't.
Not that this is limited to chatbots. There was a lot of press yesterday around San Francisco being the worst run city in the nation based on this 'analysis' from WalletHub. They are dividing a measure of service quality by budget dollars per capita. This fails to take into account that San Francisco is a city and a county and so the budget includes county services like a Sheriff department. It also ignores that San Francisco runs an international airport and port, not paid for by taxpayers but still in the budget. And it doesn't adjust for regional differences in income that make services more expensive to provide (and higher total dollar taxes to provide them). So I'll take an occasional chatbot glitch over a willfully incurious press pushing out a PR piece that tickles their confirmation biases.
Enjoy, and let me know if it works for you.
Related Posts
- San Francisco November 2024 Ballot Measures
- Rob 2.0
- San Francisco November 2016 Propositions
- San Francisco and California March 2024 Ballot Measures
- San Francisco November 2020 Ballot Measures
(Published to the Fediverse as: San Francisco Budget Chatbot (GPT) #code #chatgpt #ml #sanfrancisco #gpts #sfpol #budget #openai Custom GPT with 2010-2025 data to answer questions about the city and county of San Francisco. )