Spatial Analysis
Buffers and clips
Use Python and geopandas to answer the following question:
- How many earthquakes have happened within 10km of the US coastline (but outside of US borders) in the year 2021?
# import modules here
# read data
# "https://earthquake.usgs.gov/fdsnws/event/1/query.geojson?starttime=2021-01-01%2000:00:00&endtime=2021-12-31%2023:59:59&minmagnitude=3.5&orderby=time-asc"
# https://raw.githubusercontent.com/mhaffner/data/master/us_states.geojson
# create maps
# transform crs
# clip
# buffer
# clip
# answer
Address the same question using data from 2022 and again using data from 2023.
Text attributes
# import pandas and seaborn
# load titanic dataset
# select where sex is equal to female
# select where sex is equal to male and age is less than 18
# select where embark_town contains 'South'
# select where embark_town contains 'South' or deck = 'G'
Buffers, clips, and text attributes
Use Python and geopandas to answer the following question:
- How many trout habitat points with brook trout are within 1km of watersheds that are part of the Chippewa River?