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')
# [2025/01/16-17:39:17][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, '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