LambertConformal ( central_longitude = central_longitude, standard_parallels = standard_parallels )) ax. add_subplot ( 1, 1, 1, projection = ccrs. The boundaries are arbitrarilyĬhosen to be 63°W to 123°W and 37°N to 75°N, and set with ax.set_extent.Ĭanada_east = - 63 canada_west = - 123 canada_north = 75 canada_south = 37 standard_parallels = ( 49, 77 ) central_longitude = - ( 91 + 52 / 60 ) fig = plt. We’ll use their recommended standard parallels (see wiki link for explanation) ofĤ9°N and 77°N, and a central longitude of 91★2’W. Which works well for this size and range of the map, and is recommended by StatsCan. Let’s focus in on Canada for a bit to see what features Cartopy can depict. Sometimes, rather than actually depicting a street where none exists, a map will misrepresent the. While Geodetic uses the shortest path in a spherical sense (the A trap street is a fictitious street included on a map, often outside the area the map covers, for the purpose of 'trapping' potential copyright violators of the map, who will be unable to justify the inclusion of the 'trap street' on their map. gridlines ()Īs you can see, Plate Carrée uses the straight-line path on a longitude/latitude basis, plot (,, c = 'r', lw = 2, transform = ccrs. plot (,, c = 'b', lw = 2, transform = ccrs. PlateCarree ( central_longitude = ( to_lon + ff_lon ) / 2 )) ax. This projection is basically longitude/latitude.įf_lon = 8 + 41 / 60 ff_lat = 50 + 7 / 60 fig = plt. In this case, we use the Geodetic projection for the points. We can specify the input projection using the transform= keyword argument Points are in degrees, they are extremely small (the circumference is Map coordinates areĪlmost always specified in metres (except for Plate Carrée) and since our Originated, thus it was plotted in the map coordinates. We neglected to specify the projection in which the scatter points This is a common trap with Cartopy, but it’s also one of its most usefulįeatures. You look at the previous plot, even though we changed the central longitude, Hmm, what happened? Our points should be all over the globe. I think you could definitely draw a conclusion to this that Saint Cyrus is indeed some sort of ‘trap street’ created by Google to replace Sinderins (or by extension the West End). AzimuthalEquidistant ( central_longitude = to_lon, central_latitude = to_lat )) ax.