FV3 Bundle
PlotCubeSphereField.py File Reference

Go to the source code of this file.

Namespaces

 PlotCubeSphereField
 

Variables

int PlotCubeSphereField.plot_diff = 1
 
string PlotCubeSphereField.model = 'gfs'
 
int PlotCubeSphereField.cube = 48
 
string PlotCubeSphereField.filetype = 'png'
 
string PlotCubeSphereField.path1 = './'
 
string PlotCubeSphereField.file_tplt_befr1 = '20180415.000000.3DVar.fv_core.res.tile'
 
string PlotCubeSphereField.file_tplt_aftr = '.nc'
 
string PlotCubeSphereField.path2 = '../INPUTS/GEOS_c48/'
 
string PlotCubeSphereField.file_tplt_befr2 = '20180415.000000.fv_core.res.tile'
 
string PlotCubeSphereField.xdimvar = 'xaxis_1'
 
string PlotCubeSphereField.ydimvar = 'yaxis_2'
 
string PlotCubeSphereField.zdimvar = 'zaxis_1'
 
string PlotCubeSphereField.readvar = 'T'
 
string PlotCubeSphereField.Dim2dor3d = '3D'
 
int PlotCubeSphereField.plot_level = 50
 
string PlotCubeSphereField.readvarlat = 'grid_lat'
 
string PlotCubeSphereField.readvarlon = 'grid_lon'
 
 PlotCubeSphereField.fh1 = Dataset(path1 + file_tplt_befr1 + str(1) + file_tplt_aftr, mode='r')
 
 PlotCubeSphereField.fh2 = Dataset(path2 + file_tplt_befr2 + str(1) + file_tplt_aftr, mode='r')
 
 PlotCubeSphereField.npx = len(fh1.dimensions[xdimvar])
 
 PlotCubeSphereField.npy = len(fh1.dimensions[ydimvar])
 
int PlotCubeSphereField.npz = 0
 
 PlotCubeSphereField.npxr = npx
 
 PlotCubeSphereField.npyr = npy
 
 PlotCubeSphereField.fr = np.zeros(6*npz*npyr*npxr).reshape(6,npz,npyr,npxr)
 
 PlotCubeSphereField.flat = np.zeros(6*npy*npx).reshape(6,npy,npx)
 
 PlotCubeSphereField.flon = np.zeros(6*npy*npx).reshape(6,npy,npx)
 
string PlotCubeSphereField.file_tile1 = file_tplt_befr1 + str(tile+1) + file_tplt_aftr
 
string PlotCubeSphereField.file_tile2 = file_tplt_befr2 + str(tile+1) + file_tplt_aftr
 
string PlotCubeSphereField.pathfile1 = path1 + file_tile1
 
string PlotCubeSphereField.pathfile2 = path2 + file_tile2
 
 PlotCubeSphereField.f = np.zeros(6*npy*npx).reshape(6,npy,npx)
 
 PlotCubeSphereField.f12 = np.zeros(12*npy*npx).reshape(12,npy,npx)
 
 PlotCubeSphereField.fp = np.zeros(12*npy*npx).reshape(4*npy,3*npx)
 
 PlotCubeSphereField.maxf = np.nanmax(np.abs(fp))
 
 PlotCubeSphereField.minf = np.nanmin(fp)
 
tuple PlotCubeSphereField.incf = (maxf - minf)/101
 
 PlotCubeSphereField.clev = np.arange(minf,maxf+incf,incf)
 
 PlotCubeSphereField.ctic = np.arange(minf,maxf+incf,incf)
 
 PlotCubeSphereField.cmap = plt.cm.seismic
 
string PlotCubeSphereField.itit = ' '
 
 PlotCubeSphereField.fig = plt.figure(figsize=(14,8))
 
 PlotCubeSphereField.cp = plt.contourf(fp,clev,cmap=cmap)
 
 PlotCubeSphereField.cbar = plt.colorbar(cp,ticks=ctic)
 
 PlotCubeSphereField.bbox_inches
 
 PlotCubeSphereField.facecolor