Here is an explanation of the code:
- Download shape files (.shp) from the URLs mentioned in the code.
- The first one has the locations of weather stations and the second one has the boundaries of the world.
- These files come in a ZIP file containing multiple different files with different file extensions. We should extract all of them and put them in a working directory. Although we use only a .shp file in the code to read, it internally calls other files in the ZIP file.
- gpd.read_file() reads the contents of the .shp file. The first read loads the weather station location data and the second read loads the borders data.
- world_wc.plot(ax=ax) plots weather station locations on the map.
- world_borders.boundary.plot() plots boundary ...