I am using Python 3.6 to create a map that shows precipitation data in North America. The code I have so far extracts my data inside of a shapefile and then plots it on a map.
My problem is that the shapefile I have downloaded contains the shapes of all of the continents. I was wondering is there a way I could only read in the North American continent from my shapefile?
If this isn't a possibility then does anyone know where I could download a shapefile that only has North America? Thank you!
This is the part of my code that reads the shapefile:
import shapefile
sf=shapefile.Reader('continents')
This is the link for the shapefile.