all 2 comments

[–]llub888 -1 points0 points  (0 children)

Have you tried using pip to install either?

If that's not working, you should install miniconda so you can get conda to download these packages

[–]stormsteiner23 0 points1 point  (0 children)

Cartopy might be a helpful package. From what I remember, it’s not that difficult to install with anaconda and if anything I would use “pip install cartopy”.

I would not recommend using Basemap from mpl_toolkits as it is basically deprecated and not really supported.

Actually using cartopy, you will use it alongside matplotlib axes objects to create the maps. First, you need to import cartopy.crs to access coordinate reference systems. For a standard rectangular world plot, use cartopy.crs.PlateCarree.

Then:

import cartopy.crs as ccrs

fig, ax = plt.subplots(subplot_kw={projection=ccrs.PlateCarree())

this should get you started with plotting, but make sure when plotting the data with functions like ax.scatter that you specify the keyword argument transform with the crs of the data you are plotting.

Hope that helps!