Global lon/lat grids: shift centerΒΆ

[1]:
%matplotlib inline
# for figures in notebook

# import & initialize epygram
import epygram
epygram.init_env()

import os
INPUTS_DIR = os.path.join('..', 'inputs')
# [2025/01/16-17:38:54][epygram.formats][<module>:0072][INFO]: Format: HDF5SAF is deactivated at runtime (Error: No module named 'h5py'). Please deactivate from config.implemented_formats or fix error.
[2]:
r = epygram.open(os.path.join(INPUTS_DIR, 'glob01.grib'), 'r')
[3]:
f = r.readfield('shortName:prmsl')
[4]:
fig, ax = f.cartoplot()
../../_images/gallery_A.1-H2D_plots_07.global_lonlat_grids_shift_center_4_0.png
[5]:
f.global_shift_center(180)
fig, ax = f.cartoplot()
../../_images/gallery_A.1-H2D_plots_07.global_lonlat_grids_shift_center_5_0.png
[ ]: