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 get_CEJST() function #79

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

create get_CEJST() function #79

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 (see Cumulative Impacts notebook):

import zipfile, requests, io

file = 'https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/1.0-shapefile-codebook.zip'

r = requests.get(file)
z = zipfile.ZipFile(io.BytesIO(r.content))
z.extractall("CEJST")
z = zipfile.ZipFile("/content/CEJST/usa.zip")
z.extractall("CEJST")

cejst = geopandas.read_file("/content/CEJST/usa.shp", mask=county)

# interactive widget selection here, to select the CEJST variable to map

map = choropleth(cejst, "DSF_PFS", key_id="GEOID10")

return cejst, map

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