Discussion:
Plot maps in 3D
(too old to reply)
Jorge Conforte
2021-04-28 13:55:57 UTC
Permalink
Hi,


I would like know if it is posible to plot the south in north poles in
3D earth maps. I search in google and always all examples is for
cylindric projection, like this:




bm = Basemap(llcrnrlon=extent[0], llcrnrlat=extent[2],
             urcrnrlon=extent[1], urcrnrlat=extent[3],
             projection='cyl', resolution='l', fix_aspect=False, ax=ax)


I try to use the spstere or npstere and I didn't have success. I would
like know it is possible use these projections to plot 3D data.


Thanks,


Conrado
Dennis Lee Bieber
2021-04-28 21:36:25 UTC
Permalink
Post by Jorge Conforte
bm = Basemap(llcrnrlon=extent[0], llcrnrlat=extent[2],
             urcrnrlon=extent[1], urcrnrlat=extent[3],
             projection='cyl', resolution='l', fix_aspect=False, ax=ax)
What library are you obtaining that function from? The first hit I get
for "python basemap" is https://matplotlib.org/basemap/ which has this
notification at the bottom:


"""
Deprecation Notice

Basemap is deprecated in favor of the Cartopy project. See notes in
Cartopy, New Management, and EoL Announcement for more details.
"""

which itself has a link to

"""
Starting in 2016, Basemap came under new management. The Cartopy project
will replace Basemap, but it hasn’t yet implemented all of Basemap’s
features. All new software development should try to use Cartopy whenever
possible, and existing software should start the process of switching over
to use Cartopy. All maintenance and development efforts should be focused
on Cartopy.

Ben Root has volunteered to take over maintenance of Basemap until 2020.
Pull requests will be reviewed, and regressions will be fixed. Also, this
maintenance will ensure compatibility with packages like NumPy and
Matplotlib. New features will be accepted, but we stress that new
development efforts should be focused on Cartopy. When Python 2.7 is
officially EoL’ed in 2020, a release of Basemap will be made and support
from Ben Root will end.
"""
Post by Jorge Conforte
I try to use the spstere or npstere and I didn't have success. I would
like know it is possible use these projections to plot 3D data.
"""
The matplotlib basemap toolkit is a library for plotting 2D data on maps in
Python.
"""
note "2D data".

Perhaps https://scitools.org.uk/cartopy/docs/latest/crs/index.html has
something of interest...

"""
class cartopy.crs.Geocentric(self, globe=None)

Define a Geocentric coordinate system, where x, y, z are Cartesian
coordinates from the center of the Earth.

Parameters

globe (A cartopy.crs.Globe, optional) – Defaults to a “WGS84”
datum.
"""
--
Wulfraed Dennis Lee Bieber AF6VN
***@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
Loading...