vkoves / electrify-chicago

Learn about Chicago's most polluting buildings, and what they can do to clean up their act!
http://electrifychicago.net
9 stars 5 forks source link

Update Data to 2022 (Latest Year) & Show Old Buildings On Most Pages #81

Closed vkoves closed 2 months ago

vkoves commented 3 months ago

Description

Updates the data to the year 2022 (the latest data). A lot of the previously dirtiest buildings (typically from IIT) did not report in 2022, so to prevent these from going off the radar (when they haven't made improvements) and to show any other old buildings that are very polluting, all dirty building pages now do not filter by the latest year, and instead we show an icon ( šŸ•°ļø ) for buildings whose data is old.

Some other updates:

Before After
Screenshot from 2024-03-22 23-23-40 Screenshot from 2024-03-22 23-23-30
Screenshot from 2024-03-22 23-24-00 Screenshot from 2024-03-22 23-24-06

Fixes #63

Testing Instructions

Please describe the tests/QA that you did to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

netlify[bot] commented 3 months ago

Deploy Preview for radiant-cucurucho-d09bae ready!

Name Link
Latest commit 93bae5b0ce2cc562f15964ebf6b47c95f877c65f
Latest deploy log https://app.netlify.com/sites/radiant-cucurucho-d09bae/deploys/660cb1106e8d570008ebe8bf
Deploy Preview https://deploy-preview-81--radiant-cucurucho-d09bae.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

vkoves commented 3 months ago

The one issue here is that older bad buildings lose a lot of their context, like Hermnan Hall:

Before After
Screenshot from 2024-03-22 23-39-43 Screenshot from 2024-03-22 23-39-50

I think to handle that we'd need rankings for each year (e.g. Herman Hall is X worst of 2021 buildings) but that seems like it would take a lot of post-processing.

vkoves commented 3 months ago

Note to self: Email Climate Reality folks when this goes live

vkoves commented 2 months ago

We've updated the concern levels (how we color stat tiles) so that we show tiles as high concern if the related stat is > 1 standard deviation above the mean. This ensures that bad buildings that didn't report in the latest year still don't look great, even if they don't have a "#X in Chicago" note.

Here's a comparison with Crown Hall:

Before After
Screenshot from 2024-04-02 20-28-38 Screenshot from 2024-04-02 20-27-12