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()
[5]:
f.global_shift_center(180)
fig, ax = f.cartoplot()
[ ]: