for mon in ['jun','jul','aug']:
I=fdia[mon].variables['PAR'][0,:,:,:]
NO=fptc[mon].variables['nitrate'][0,:,:,:]
NH=fptc[mon].variables['ammonium'][0,:,:,:]
Si=fptc[mon].variables['silicon'][0,:,:,:]
D,M,N = bio.calc_p_limiters(I,NO,NH,Si,tmask[0,:,:,:],nampisprod)
fig,ax=plt.subplots(4,2,figsize=(9,8))
fig.subplots_adjust(hspace=.5,wspace=.08,left=0.08,right=1.03,top=.9)
maxz=60
iax=ax[0,0]
m=visualisations.contour_thalweg(iax,D['ILim'],fb,fm,method='pcolormesh',cmap=cm1,mesh_args={'vmin':0,'vmax':1})
iax.set_title('Diatom Light Limitation Coefficient')
iax.set_xlabel('')
iax.set_ylim(maxz,0)
iax=ax[1,0]
m=visualisations.contour_thalweg(iax,D['NLim'],fb,fm,method='pcolormesh',cmap=cm1,mesh_args={'vmin':0,'vmax':1})
iax.set_title('Diatom N Limitation Coefficient')
iax.set_xlabel('')
iax.set_ylim(maxz,0)
iax=ax[2,0]
m=visualisations.contour_thalweg(iax,D['SiLim'],fb,fm,method='pcolormesh',cmap=cm1,mesh_args={'vmin':0,'vmax':1})
iax.set_title('Diatom Si Limitation Coefficient')
iax.set_xlabel('')
iax.set_ylim(maxz,0)
iax=ax[3,0]
m=visualisations.contour_thalweg(iax,D['limiter'],fb,fm,method='pcolormesh',cmap=cm2,mesh_args={'vmin':-1,'vmax':5})
m.set_ticks([0,2,4])
m.set_ticklabels(['I','N','Si'])
iax.set_title('Diatom Limiter')
iax.set_ylim(maxz,0)
iax=ax[0,1]
m=visualisations.contour_thalweg(iax,N['ILim'],fb,fm,method='pcolormesh',cmap=cm1,mesh_args={'vmin':0,'vmax':1})
iax.set_title('Flagellate Light Limitation Coefficient')
iax.set_xlabel('')
iax.set_ylim(maxz,0)
iax=ax[1,1]
m=visualisations.contour_thalweg(iax,N['NLim'],fb,fm,method='pcolormesh',cmap=cm1,mesh_args={'vmin':0,'vmax':1})
iax.set_title('Flagellate N Limitation Coefficient')
iax.set_xlabel('')
iax.set_ylim(maxz,0)
iax=ax[2,1]
m=visualisations.contour_thalweg(iax,N['SiLim'],fb,fm,method='pcolormesh',cmap=cm1,mesh_args={'vmin':0,'vmax':1})
iax.set_title('Flagellate Si Limitation Coefficient')
iax.set_xlabel('')
iax.set_ylim(maxz,0)
iax=ax[3,1]
m=visualisations.contour_thalweg(iax,N['limiter'],fb,fm,method='pcolormesh',cmap=cm2,mesh_args={'vmin':-1,'vmax':5})
iax.set_title('Flagellate Limiter')
iax.set_ylim(maxz,0)
fig.suptitle(titles[mon])
fig.savefig('/data/eolson/results/MEOPAR/figs/LightLimforSusan/limitationThw'+mon+'.png',dpi=400,transparent=True,bbox_inches='tight')