Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'HFB 14',
'HFB 21',
'HFB 27',
'AME (2003)',
'Duflo and Zuker (1996)',
'Koura et al. (2005)',
'Dieperink et al. (2009)',
'Wang et al. (2010)',
'Liu et al. (2011)']
names=['se','mnmsk','hfb14','hfb21','hfb27','ame03','dz96',
'ktuy05','dvi','ws32','ws36']
for i in range(0,11):
(fig,ax)=o2sclpy.default_plot()
# First initialize slice to zero
for N in range(0,180):
for Z in range(0,120):
sl[Z,N]=0
# Now fill with data
print('name:',names[i],'nlines:',gc.dset['nlines'][0])
for row in range(0,gc.dset['nlines'][0]):
if gc.dset['data/N'][row]>7:
if gc.dset['data/Z'][row]>7:
val=gc.dset['data/'+names[i]][row]
sl[int(gc.dset['data/Z'][row]-0.99),
int(gc.dset['data/N'][row]-0.99)]=val
# Now plot
cax=plot.imshow(sl,interpolation='nearest',origin='lower',
extent=[1,180,1,120],aspect='auto',cmap='PuOr')