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')
[2]:
r = epygram.formats.resource(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
[ ]: