Bedrock altitude

Bedrock altitude#

Plot a composite map including bedrock altitude, hillshade, and geographic elements.

Bedrock altitude
/home/docs/checkouts/readthedocs.org/user_builds/hyoga/envs/stable/lib/python3.12/site-packages/shapely/constructive.py:829: RuntimeWarning: invalid value encountered in normalize
  return lib.normalize(geometry, **kwargs)
/home/docs/checkouts/readthedocs.org/user_builds/hyoga/envs/stable/lib/python3.12/site-packages/shapely/constructive.py:829: RuntimeWarning: invalid value encountered in normalize
  return lib.normalize(geometry, **kwargs)
/home/docs/checkouts/readthedocs.org/user_builds/hyoga/envs/stable/lib/python3.12/site-packages/shapely/constructive.py:829: RuntimeWarning: invalid value encountered in normalize
  return lib.normalize(geometry, **kwargs)
/home/docs/checkouts/readthedocs.org/user_builds/hyoga/envs/stable/lib/python3.12/site-packages/shapely/constructive.py:829: RuntimeWarning: invalid value encountered in normalize
  return lib.normalize(geometry, **kwargs)

import matplotlib.pyplot as plt
import hyoga

# open demo data
with hyoga.open.example('pism.alps.in.boot.nc') as ds:

    # plot model output
    ds.hyoga.plot.bedrock_altitude(cmap='Topographic', vmin=0)
    ds.hyoga.plot.bedrock_hillshade()

    # add coastline and rivers
    ax = ds.hyoga.plot.natural_earth()

    # add scale bar
    ds.hyoga.plot.scale_bar()

# set title
ax.set_title('Bedrock altitude')

# show
plt.show()

Total running time of the script: (0 minutes 2.439 seconds)

Gallery generated by Sphinx-Gallery