Histogram of field(s)ΒΆ
[1]:
%matplotlib inline
# for figures in notebook
# import & initialize epygram
import epygram
epygram.init_env()
import os
INPUTS_DIR = os.path.join('..', 'inputs')
[2]:
# open resource in read mode
r = epygram.formats.resource(os.path.join(INPUTS_DIR, 'ICMSHAROM+0022'), 'r')
[3]:
t90 = r.readfield('S090TEMPERATURE')
t90.sp2gp()
t2m = r.readfield('CLSTEMPERATURE')
[4]:
fig, ax = t2m.histogram(subzone='CI', bins=50)
[5]:
fig, ax = t2m.histogram(subzone='CI', bins=50, together_with=t90)
[ ]: