Superposition of 2 fieldsΒΆ

[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, 'ICMSHAROM+0022'), 'r')
[3]:
ps = r.readfield('SURFPRESSION')
ps.sp2gp()
rain = r.readfield('SURFACCPLUIE')
[4]:
fig, ax = ps.cartoplot(plot_method='contour', colorsnumber=5, contourcolor='green')
fig, ax = rain.cartoplot(fig=fig, ax=ax, colormap='rr1h')
../../_images/gallery_A.1-H2D_plots_08.superposition_4_0.png