Proj¶
-
Proj
(name, basemap=False, **kwargs)[source]¶ Returns a
Basemap
orcartopy.crs.Projection
instance, used to interpret theproj
andproj_kw
arguments when passed tosubplots
.- Parameters
name (str) – The projection name. Like basemap, we use the PROJ.4 shorthands.
The following table lists the valid projection names, their full names (with links to the relevant PROJ.4 documentation), and whether they are available in the cartopy and basemap packages.
(added)
indicates a projection class that ProPlot has “added” to cartopy using the cartopy API.Key
Name
Cartopy
Basemap
'aea'
✓
✓
'aeqd'
✓
✓
'aitoff'
✓ (added)
✗
'cass'
✗
✓
'cea'
✗
✓
'cyl'
✓
✓
'eck1'
✓
✗
'eck2'
✓
✗
'eck3'
✓
✗
'eck4'
✓
✓
'eck5'
✓
✗
'eck6'
✓
✗
'eqdc'
✓
✓
'eqc'
✓
✓
'eqearth'
✓
✗
'europp'
Euro PP (Europe)
✓
✗
'gall'
✗
✓
'geos'
✓
✓
'gnom'
✓
✓
'hammer'
✓ (added)
✓
'igh'
✓
✗
'kav7'
✓ (added)
✓
'laea'
✓
✓
'lcc'
✓
✓
'lcyl'
Lambert Cylindrical
✓
✗
'mbtfpq'
✗
✓
'merc'
✓
✓
'mill'
✓
✓
'moll'
✓
✓
'npaeqd'
North-Polar Azimuthal Equidistant
✓ (added)
✓
'npgnom'
North-Polar Gnomonic
✓ (added)
✗
'nplaea'
North-Polar Lambert Azimuthal
✓ (added)
✓
'npstere'
North-Polar Stereographic
✓
✓
'nsper'
✓
✓
'osni'
OSNI (Ireland)
✓
✗
'osgb'
OSGB (UK)
✓
✗
'omerc'
✗
✓
'ortho'
✓
✓
'pcarree'
✓
✓
'poly'
✗
✓
'rotpole'
Rotated Pole
✓
✓
'sinu'
✓
✓
'spaeqd'
South-Polar Azimuthal Equidistant
✓ (added)
✓
'spgnom'
South-Polar Gnomonic
✓ (added)
✗
'splaea'
South-Polar Lambert Azimuthal
✓ (added)
✓
'spstere'
South-Polar Stereographic
✓
✓
'stere'
✓
✓
'tmerc'
✓
✓
'utm'
✓
✗
'vandg'
✗
✓
'wintri'
✓ (added)
✗
basemap (bool, optional) – Whether to use the basemap or cartopy package. Default is
False
.**kwargs – Passed to the
Basemap
or cartopyProjection
class.
- Returns
proj (
Basemap
orProjection
) – The projection instance.aspect (float) – The map projection aspect ratio. This may change if user zooms into a projection, but returning an initial guess helps avoid unnecessarily calculations down the line.
See also