.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/plot_sst_map.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_sst_map.py: ========================================= Plot 2D global map from the model output ========================================= Here use the sea surface temperature as an example to plot the 2D global map from the model output. .. GENERATED FROM PYTHON SOURCE LINES 8-21 .. image-sg:: /auto_examples/images/sphx_glr_plot_sst_map_001.png :alt: plot sst map :srcset: /auto_examples/images/sphx_glr_plot_sst_map_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/cgeniepy/envs/latest/lib/python3.12/site-packages/cgeniepy/model.py:58: UserWarning: No gemflag is provided, use default gemflags: [biogem] warnings.warn("No gemflag is provided, use default gemflags: [biogem]") | .. code-block:: Python import cgeniepy import matplotlib.pyplot as plt model = cgeniepy.sample_model() sst = model.get_var("ocn_sur_temp").isel(time=-1) ## start to plot with customised cmap sst_plotter = sst.to_GriddedDataVis() sst_plotter.aes_dict['pcolormesh_kwargs']['cmap'] = plt.get_cmap("Spectral_r", 15) sst_plotter.plot(colorbar=True, outline=True) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.559 seconds) .. _sphx_glr_download_auto_examples_plot_sst_map.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_sst_map.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_sst_map.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: plot_sst_map.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_