torch_harmonics.plotting.imshow_sphere#

torch_harmonics.plotting.imshow_sphere(
data,
fig=None,
projection='robinson',
title=None,
central_latitude=0,
central_longitude=0,
**kwargs,
)[source]#

Displays an image on the sphere

Parameters:
  • data (numpy.ndarray or torch.Tensor) – Data to display with shape (nlat, nlon)

  • fig (matplotlib.figure.Figure, optional) – Figure to plot on, by default None (creates new figure)

  • projection (str, optional) – Map projection type, by default “robinson”

  • title (str, optional) – Plot title, by default None

  • central_latitude (float, optional) – Central latitude for projection, by default 0

  • central_longitude (float, optional) – Central longitude for projection, by default 0

  • **kwargs – Additional arguments passed to imshow

Returns:

The displayed image object

Return type:

matplotlib.image.AxesImage