mit-jp / mit-climate-data-viz

Plotting climate data for the MIT Joint Program on the Science and Policy of Global Change
https://cypressf.shinyapps.io/eppa-dashboard/
0 stars 0 forks source link

show county report card for selected county #288

Closed cypressf closed 1 year ago

cypressf commented 2 years ago

inspiration https://hazards.fema.gov/nri/map

cypressf commented 1 year ago

John Reilly mentioned cities or communities could be a potential user of this feature. Maybe we reach out to contacts, like people in the city of cambridge government or the mass government, or other city or state governments, or the city that Alyssa reached out to to get some ideas.

Alyssa had reached out to someone in a local government who was in charge of tourism and business development in the county. That's were this county report card idea originated.

cypressf commented 1 year ago

Some needs:

cypressf commented 1 year ago

We could go to a national conference for city planners and talk to them, present stuff, or do co-design to see what needs and values they have and get feedback on any ideas we have. American Planning Association does a national planning conference. There's one in April in Philly, and they have "climate emergency" as one of the items on their list.

The farmers association is a potential group we could reach out to.

Horacio also could connect with someone at the Foundation for Food and Agriculture research.

cypressf commented 1 year ago

We can just get something up, like a beta that might not be even public for a report card idea, and show it to people.

cypressf commented 1 year ago

Bill Becker was the president of state-level environmental organization. We could reach out to see if state-level planners could give feedback. We worked with Section 115 w Phil Barnet.

cypressf commented 1 year ago

Users

Local to state policymakers

They could use the report card for grants, planning, and such.

Industry decision makers

Help them figure out how to plan around risks in the area.

cypressf commented 1 year ago
cypressf commented 1 year ago

Disclaimer: each risk is only relative to itself, not measured against other risks.

cypressf commented 1 year ago

I'm working on a proof of concept for this right now.

cypressf commented 1 year ago

cannot deploy until svante container state is fixed

cypressf commented 1 year ago

some lingering improvements I should add:

cypressf commented 1 year ago

since I calculate the percentile on the backend for this feature, I need to invert it on the backend too. Can I invert simply by subtracting it from 1?

cypressf commented 1 year ago

2022-11-17 18 10 49

cypressf commented 1 year ago

I think null values are included in the percentile rankings, which isn't good. I need to filter those out before calculating percentiles in the database query. eg: http://localhost:3000/report-card/2/02158

cypressf commented 1 year ago

I tried filtering out percentile ranks for all entries with no value in the controller, after querying the database, but that won't return the expected results for all other counties because those null values will still be included in the percentile ordering. I must find a way to filter out those null values in the database query, or calculate percent rank completely at the controller level.

cypressf commented 1 year ago

county_data.value is always non-NULL because if a specific county has no value, that row simply will not exist. In order to filter on null values, I'll have to filter some other way. Perhaps on a result of a join?

cypressf commented 1 year ago

Report card is live.