Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create load_EJScreen() function #80

Open
ericnost opened this issue Jul 19, 2024 · 0 comments
Open

create load_EJScreen() function #80

ericnost opened this issue Jul 19, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ericnost
Copy link
Member

Something like this:

import zipfile, requests, io

file = 'https://gaftp.epa.gov/EJScreen/2024/2.30_July_useMe/EJScreen_2024_Tract_with_AS_CNMI_GU_VI.gdb.zip'
r = requests.get(file, headers=headers)
z = zipfile.ZipFile("/content/EJScreen_2024_Tract_with_AS_CNMI_GU_VI.gdb.zip")
z.extractall("EJScreen")

ejscreen = geopandas.read_file("/content/EJScreen/EJSCREEN_2024_Tract_with_AS_CNMI_GU_VI.gdb", mask=county)

# interactive widget selection of parameter to map here...

map = choropleth(ejscreen, "PM25", key_id="ID")

return map, ejscreen

See EJScreen class in watershed notebook for example of interactive widget selection

@ericnost ericnost added the enhancement New feature or request label Jul 19, 2024
@ericnost ericnost self-assigned this Jul 19, 2024
@ericnost ericnost moved this to Todo in ECHO_modules Jul 19, 2024
@ericnost ericnost added this to the v0.2.0 milestone Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant