

(Otherwise, you may end up with many conflicts that prohibit you from installing the packages you want.) If you’ve followed the steps in my previous blog post to set up that environment, you should be all set to install GeoPandas (and pandas) in your environment (after activating it), using the command, I found that to install GeoPandas, it is best to create a new conda environment and install everything through the conda-forge channel. If you’ve never used GeoPandas, you may want to read this RCS blog post to get started.Īs usual, I recommend working with Anaconda’s Python distribution and installing these packages using conda. (I used rasterio in last month’s blog post as well.) GeoPandas is the “go to” package in Python for working with geospatial data sets, and, as the name suggests, provides much of the functionality that pandas offers as well. Rasterio is a great package for plotting and manipulating GeoTIFF files.

I will assume that you already have a decent handle on how to use matplotlib. The three primary Python packages that I’ll use to plot these data are matplotlib, rasterio and GeoPandas. I exported it from the website as a Shapefile.

I also shared my code in this GitHub repo so that you all can use it freely. Last month I wrote a blog post diving into the nitty gritty details about how to download a satellite image as a GeoTIFF file using Google’s Earth Engine API in Python.
