Questions tagged [cartopy]
A library providing cartographic tools for python.
57 questions
0 votes
0 answers
27 views
Find fractional area of map occupied by feature in given cartopy map projection
Is there a way of calculating the area covered by data feature in a given map projection with cartopy? For instance, consider this simple data plotted on a Nearsideperspective projection. How can I ...
1 vote
1 answer
75 views
How to make a Daytime Convection RGB from Himawari-9 NetCDF
I'm trying to make an RGB image from Himawari-9 NetCDF using the Daytime Convection Recipe through Python centered in one part of the Philippines. I have downloaded the individual near-IR and IR bands ...
1 vote
2 answers
577 views
Rasterio & rioxarray no longer compatible with fairly standard modules
I just bought a new computer and want to read a geotiff and plot it in cartopy. I'm typing: conda create --name my_env conda activate my_env conda install numpy pandas jupyter cartopy xarray ...
3 votes
1 answer
2k views
Labelling a Map
I have a map I have made using python, matplotlib, cartopy and shapely. It has a coast, county borders, lakes and rivers. I also shade in districts, in the form of polygons, on the map in order to ...
1 vote
1 answer
381 views
Cannot plot with Cartopy: Incomplete shapefile definition error BUT .shp .shx and .dbf are all present
I used to plot maps with Cartopy, which actually used to work fine until now. Recently, when adding the maps features to a plot (es. coastlines etc) I get this error: "ValueError: Incomplete ...
1 vote
1 answer
154 views
Barplot with a basemap as a background
I have some data as a pandas DataFrame with values associated with longitude. I have plotted it as stacked bars like this: A subset of the data as an example via df.to_dict(): {'Commodity driven ...
1 vote
0 answers
150 views
Plot raster in synusoidal projection in python
I want to plot data in a matrix, with two other matrices with coordinates, with a sinusoidal projection, in Python. I read data and coordinates from HDF5 or NetCDF files in the form of numpy arrays. ...
2 votes
0 answers
398 views
Create circular grid line labels (labels around the map's border) for a South Polar Stereo projection
I'm using the South Polar Stereographic projection to create a map of Antarctica. I've been able to create the gridlines using Cartopy, but the labels for the gridlines are not circular around the map,...
1 vote
2 answers
764 views
Problem with cartopy when a shapefile as lon > 180
I am trying to make a figure using a shapefile and cartopy. When longitudes are in the range [-180,180] everything is working fine When longitudes are in the range [0, 360] the shapefile is not ...
0 votes
1 answer
194 views
Labelling contour lines along a great circle
I'd really like to show the satellite zenith angle as seen from an observer on the ground. I can calculate everything just fine and get a graph that is useful and passable. import numpy as np import ...
0 votes
1 answer
190 views
Continuous variable in Cartopy
I have been trying for some time to plot shapefile polygons on a global map using Cartopy library. From this post, I have been trying to plot a continuous variable from an attribute called "ShIdx&...
1 vote
0 answers
400 views
How to plot the map correctly over the SST data in cartopy?
I am trying to plot L2 Sea Surface Temperature data and I want to plot it over the globe in a geostationary projection. I tried the following code: import h5py import sys import numpy as np import ...
0 votes
1 answer
167 views
Timelapse only shows single year in Google Earth Engine (ERA5 Daily agg.)
I am trying to make a yearly timelapse of ERA5 Daily aggregates (precipitation) using cartopy but the output gif and images generated show the plots of single year. I am trying to extract the images ...
0 votes
1 answer
490 views
Feature/shapefile does not show up in Python
This is the code I have fname = r"C:\Users\Kevin Abbot\Documents\W&OD Trail.shp" shape_feature = ShapelyFeature(Reader(fname).geometries(), ccrs....
2 votes
1 answer
990 views
Plot 2D geodata as function of longitude and latitude
I would like to plot from the following NetCDF file (R90C_20P_MSG_201403250100.nc) the 2d array RFnet as function of the 2d arrays LONGITUDE and LATITUDE. Download of NetCDF file: https://gigamove....