Questions tagged [cartopy]

A library providing cartographic tools for python.

Filter by
Sorted by
Tagged with
0
votes
0answers
64 views

Displaying projection with IMSHOW()

I am having an issue displaying satellite data on the correctly projection using cartopy and imshow. I am unsure of the initial data projection, but I am trying to put it into Plate Carree with a ...
1
vote
0answers
58 views

Single country coastlines in Python Matplotlib Cartopy

In the image below I am using cartopy to plot coastlines. But, I only wish to have the coastlines of Australia, and not the surrounding countries. Is there a way to remove the other countries. Here ...
0
votes
0answers
39 views

Draw a zebra style axis in Cartopy?

I want to use this zebra type of map border in Cartopy. This example was written in IDL which I used a lot in the past. So how can implement this in Python with Cartopy or Matplotlib? Below is some ...
3
votes
2answers
512 views

Calculating geodesic distance along a path (lat/lon points) at once?

Using Python 3.7 with Jupyter Notebook on a Win10 x64. I have a list of lat-long tuples representing a path and I want to calculate the total length along that path in meters (or km, miles etc). I ...
2
votes
0answers
161 views

Estimating a Rotated Pole given a gridded dataset with lat/lons at each point

I have netcdf dataset that I think is regular gridded dataset using a Rotated pole mapping, but the rotated pole information is wrong. For those not familiar with Rotated Poles, the cartopy ...
1
vote
1answer
2k views

Increasing resolution of Cartopy stock background?

I am trying to create a small application that will show zoomed in maps. If possible, I would like to avoid using map tiles. Going off the example on this page: https://scitools.org.uk/cartopy/docs/...
0
votes
1answer
287 views

Geoplot/Cartopy Orthographic projection won't work near equator

I am having trouble getting Geoplot's Orthographic projection to work near the equator. It works fine at locations ±90 longitude where latitude is right at 0, but if I run the code below, it fails ...
0
votes
1answer
161 views

cartopy and xarray issues

I'm beginning to use netCDF4 data and therefore I have downloaded xarray and also cartopy (with pip). I have downloaded data from the climate data store and want to plot these data. I have a ...
0
votes
1answer
348 views

Cartopy lakes and rivers are clipped

I'm trying to produce a map showing water bodies like oceans/rivers/lakes polygons for purposes of plotting vessel voyages using cartopy. Ultimately I'm looking to create a sea mesh grid using the ...
0
votes
1answer
785 views

Displaying geopandas points with cartopy

I am trying to display a GeoDataFrame containing points, using cartopy. I first tried to follow the indications given in the documentation of geopandas. However, the points are not displayed: ...
1
vote
1answer
280 views

Interpolate Temperature Data On Urban Area Using Cartopy

I'm trying to interpolate temperature data observed on an urban area formed by 5 locations. I am using cartopy to interpolate and draw the map, however, when I run the script the temperature ...
1
vote
0answers
411 views

Add geopandas to cartopy

How can I add a geopandas geodataframe to a cartopy map? My objective is to create a large number of PNGs to turn into a GIF. The geopandas default plotting options are limited so I would like to ...
2
votes
2answers
1k views

Shapefiles won't display with cartopy

I'm trying my first GIS project with cartopy and matplotlib and I'm having some trouble displaying some shapefiles. The shapefiles were downloaded from here: http://data.vancouver.ca/datacatalogue/...
1
vote
0answers
996 views

Cartopy image tiles - determining possible zoom level in advance?

In Cartopy I'm using an image tile like so: terrain_tile = cimgt.StamenTerrain() ax.add_image(tile, zoom) By default I've set the zoom level to 14 and that works perfectly for my first test case. ...
4
votes
1answer
2k views

How do I set extent in a geopandas plot (as in cartopy)?

The usual. My shapefile is from a much bigger place than my data, and I want to zoom in. The dark dot below is Melbourne, and it has some very interesting data plotted on it. base.plot(linewidth=0 ...
1
vote
1answer
722 views

Rotating geometry in cartopy?

I would like to use cartopy to display a map of the cities in the contiguous United States. In order to do so, I have written the following code (the data comes from here): import geopandas as gpd ...
3
votes
1answer
4k views

cartopy: plotting shapefiles

I am new to gis and am trying to plot a shapefile containing land polygons. (From OSM.) Unfortunately my output image is always empty (i.e. white). Can somebody tell me what I am doing wrong? import ...
1
vote
0answers
602 views

Error and kernel dies with shapely/geos inside Jupyter notebook

I have a Python 2.7 script (code below) that scrapes data from a table on the web and draws a map. It runs fine from the command line using $ python bears.py When I run the identical script from ...
3
votes
0answers
812 views

Installing cartopy on OSGeo4W

I am trying to install cartopy on OSGeo4W. Even though all required packages already downloaded and updated, the installer won't recognize them. I keep getting the following error: setup.py:168: ...
5
votes
1answer
11k views

Python Mapping in Matplotlib Cartopy Color One Country

I have plotted a map of the world using matplotlib Cartopy. Now I want to select a specific country in the map in this case the United States and change the color. I think this is possible but not ...