Skip to main content

Questions tagged [cartopy]

Cartopy is a Python package harnessing the power of matplotlib to deliver informative, precise and striking maps.

0 votes
0 answers
13 views

The netCDF polygons are fixed-sized raster image

I'm trying to convert data from netCDF files; the data contains polygons and values for methane concentrations. from matplotlib.patches import Polygon import cartopy.crs as ccrs import cartopy.feature ...
sapphire's user avatar
1 vote
1 answer
33 views

Cartopy does not format longitude/latitude axis

I try to plot a map with cartopy, and label latitudes with some digits. See the following code. The last two lines are not effective, and cartopy still displays latitudes as '7.5°S 7°S ...', when it ...
Marti's user avatar
  • 69
0 votes
0 answers
14 views

Transforming an (lat,lon) extent in GOES-16 projection with Python/cartopy/GDAL?

I have a WGS84 shapefile, which I'm trying to get its extent, firstly with its projection: gdf = gpd.read_file("/content/buffer.shp") bounds = row.geometry.bounds extent = [bounds[0], ...
kolrocket's user avatar
0 votes
0 answers
24 views

Maps in pdf format generated by python cartopy cannot be concatenated in illustrator (possibly due to Outlines outside the artboard scope)

I want to use illustrator to concatenate my PDF graphics, which were generated using python cartopy. But when I moved the two maps closer, I got an error and I couldn't move the maps. The detailed ...
Li Yupeng's user avatar
  • 721
0 votes
0 answers
23 views

NaturalEarthFeature does not display correctly with certain (distorted) map projections

I am trying to plot a map following a specific map projection (https://www.lantmateriet.se/en/geodata/gps-geodesi-och-swepos/transformations/RT-90---SWEREF-99/). The projection is a specific ...
Luis's user avatar
  • 1
0 votes
0 answers
24 views

Match plot size with size of data

I'm trying to plot weather data from a Numpy array (precipitation in this example) in matplot using a filled contour. I am currently having issues with missing data and lines at the edge of data ...
John's user avatar
  • 1,538
1 vote
1 answer
60 views

Adjusting colormaps for geoplotting

I draw some geoplots using cartopy. Using Two Slope Normalisation and "RdBu_r" colormap to plot air temperature field. color_map = 'RdBu_r' fig = plt.figure(figsize=(16, 12)) ax = plt.axes(...
Outlaw's user avatar
  • 347
0 votes
0 answers
15 views

Set scale of ploted map

I would like plot a map, using cartopy, where scale will be fixed to 1:10000. I can't find a direct way of setting the scale, and only thing what came to my mind is to set the figsize and proper ...
majkrzak's user avatar
  • 1,474
0 votes
0 answers
22 views

Cartopy non-PlateCarree projections result in empty plot

I am trying to plot some climate data on a map of a part of Scandinavia. In the codes below I left out the non-relevant parts, focusing on the parts relying on the transform and projection. Using ...
ElsRi's user avatar
  • 51
-1 votes
0 answers
28 views

Elevation Map with Cartopy

I'm trying to overlay an elevation map over a cartopy map but had no success in finding one. Is there potentially a way to create an elevation map using cartopy? I tried browsing cartopy and Google to ...
Jaden Lau's user avatar
0 votes
1 answer
42 views

Plot coastline over Xarray data for individual subplot

I'd like to overlay a coastline from cartopy onto one of my subplots but not the other, all of the solutions I've found so far lay the coastline over every subplot. Here is what I'm currently ...
thefrollickingnerd's user avatar
1 vote
1 answer
35 views

pyplot.contour() with specific levels returns incomplete figure

I'm trying to plot a figure of composite of extreme warming cases from CESM2 large ensemble climate data. I tried the following codes and it returned an incomplete world map. import xarray as xr ...
Jerry's user avatar
  • 11
0 votes
1 answer
11 views

how to animation with xarray dataset and cartopy projection with a colorbar?

How can I make an animation with xarray dataset which is projected on to a PlateCarree projection that includes a colorbar? I have spent some time trying to answer this question, and some other ...
dodohjk's user avatar
  • 198
0 votes
0 answers
31 views

Catch Warnings/Errors from System Modules to code work-arounds

i am trying to catch warnings and (non-fatal) errors thrown by system packages to implement work-arounds in my code. specifically, i am generating a large amount (thousands) of Cartopy Earth ...
tpk's user avatar
  • 1
1 vote
1 answer
43 views

Python pcolormesh heatmap not visible on plot (for monthly tropical cyclone track climatology in the Southern Pacific)

I am trying to make Python plots of the monthly tropical cyclone (TC) track climatology in the Southern Pacific basin. But, the gridded heatmap of the frequency of TC track passage per grid that I was ...
Brian Añano's user avatar

15 30 50 per page
1
2 3 4 5
64