cartopy

Mask Ocean or Land from data using Cartopy

Mask Ocean or Land from data using Cartopy Question: I would like to mask the Land area from Sea Surface Temperature Data over the globe. I am using Cartopy to plot the data. import numpy as np import matplotlib.pyplot as plt import cartopy.crs as ccrs from netCDF4 import Dataset f = Dataset(‘sst.mnmean.nc’) sst = f.variables[‘sst’][0,:,:] …

Total answers: 3

How do I change matplotlib's subplot projection of an existing axis?

How do I change matplotlib's subplot projection of an existing axis? Question: I’m trying to construct a simple function that takes a subplot instance (matplotlib.axes._subplots.AxesSubplot) and transforms its projection to another projection, for example, to one of the cartopy.crs.CRS projections. The idea looks something like this import cartopy.crs as ccrs import matplotlib.pyplot as plt def …

Total answers: 3

Plot Polar Gridded Sea Ice Concentrations using Cartopy

Plot Polar Gridded Sea Ice Concentrations using Cartopy Question: I am trying to make some plots of Polar Gridded Sea Ice Concentrations from NSIDC. The data is delivered in the Polar Stereographic Projection and Grid, an example file (binary,Arctic,25 km resolution) can be downloaded at: http://nsidc.org/data/NSIDC-0081 When I read the data using numpy, and then …

Total answers: 2

Draw a map of a specific country with cartopy?

Draw a map of a specific country with cartopy? Question: I have tried this example from the Cartopy gallery, which works fine. But how do I focus on another country, i.e. show only Germany? I’ve tried some coordinates on the extend() method, but I didn’t manage to get to look it like the US map. …

Total answers: 2