FV3 Bundle
PlotCubeSphereField Namespace Reference

Variables

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

Variable Documentation

◆ bbox_inches

PlotCubeSphereField.bbox_inches

Definition at line 296 of file PlotCubeSphereField.py.

◆ cbar

PlotCubeSphereField.cbar = plt.colorbar(cp,ticks=ctic)

Definition at line 286 of file PlotCubeSphereField.py.

◆ clev

PlotCubeSphereField.clev = np.arange(minf,maxf+incf,incf)

Definition at line 119 of file PlotCubeSphereField.py.

◆ cmap

PlotCubeSphereField.cmap = plt.cm.seismic

Definition at line 125 of file PlotCubeSphereField.py.

◆ cp

PlotCubeSphereField.cp = plt.contourf(fp,clev,cmap=cmap)

Definition at line 285 of file PlotCubeSphereField.py.

◆ ctic

PlotCubeSphereField.ctic = np.arange(minf,maxf+incf,incf)

Definition at line 122 of file PlotCubeSphereField.py.

◆ cube

int PlotCubeSphereField.cube = 48

Definition at line 11 of file PlotCubeSphereField.py.

◆ Dim2dor3d

string PlotCubeSphereField.Dim2dor3d = '3D'

Definition at line 33 of file PlotCubeSphereField.py.

◆ f

PlotCubeSphereField.f = np.zeros(6*npy*npx).reshape(6,npy,npx)

Definition at line 83 of file PlotCubeSphereField.py.

◆ f12

PlotCubeSphereField.f12 = np.zeros(12*npy*npx).reshape(12,npy,npx)

Definition at line 90 of file PlotCubeSphereField.py.

◆ facecolor

PlotCubeSphereField.facecolor

Definition at line 296 of file PlotCubeSphereField.py.

◆ fh1

PlotCubeSphereField.fh1 = Dataset(path1 + file_tplt_befr1 + str(1) + file_tplt_aftr, mode='r')

Definition at line 40 of file PlotCubeSphereField.py.

◆ fh2

PlotCubeSphereField.fh2 = Dataset(path2 + file_tplt_befr2 + str(1) + file_tplt_aftr, mode='r')

Definition at line 41 of file PlotCubeSphereField.py.

◆ fig

PlotCubeSphereField.fig = plt.figure(figsize=(14,8))

Definition at line 284 of file PlotCubeSphereField.py.

◆ file_tile1

string PlotCubeSphereField.file_tile1 = file_tplt_befr1 + str(tile+1) + file_tplt_aftr

Definition at line 67 of file PlotCubeSphereField.py.

◆ file_tile2

string PlotCubeSphereField.file_tile2 = file_tplt_befr2 + str(tile+1) + file_tplt_aftr

Definition at line 68 of file PlotCubeSphereField.py.

◆ file_tplt_aftr

string PlotCubeSphereField.file_tplt_aftr = '.nc'

Definition at line 16 of file PlotCubeSphereField.py.

◆ file_tplt_befr1

string PlotCubeSphereField.file_tplt_befr1 = '20180415.000000.3DVar.fv_core.res.tile'

Definition at line 15 of file PlotCubeSphereField.py.

◆ file_tplt_befr2

string PlotCubeSphereField.file_tplt_befr2 = '20180415.000000.fv_core.res.tile'

Definition at line 21 of file PlotCubeSphereField.py.

◆ filetype

PlotCubeSphereField.filetype = 'png'

Definition at line 12 of file PlotCubeSphereField.py.

◆ flat

PlotCubeSphereField.flat = np.zeros(6*npy*npx).reshape(6,npy,npx)

Definition at line 62 of file PlotCubeSphereField.py.

◆ flon

PlotCubeSphereField.flon = np.zeros(6*npy*npx).reshape(6,npy,npx)

Definition at line 63 of file PlotCubeSphereField.py.

◆ fp

PlotCubeSphereField.fp = np.zeros(12*npy*npx).reshape(4*npy,3*npx)

Definition at line 91 of file PlotCubeSphereField.py.

◆ fr

PlotCubeSphereField.fr = np.zeros(6*npz*npyr*npxr).reshape(6,npz,npyr,npxr)

Definition at line 58 of file PlotCubeSphereField.py.

◆ incf

tuple PlotCubeSphereField.incf = (maxf - minf)/101

Definition at line 118 of file PlotCubeSphereField.py.

◆ itit

string PlotCubeSphereField.itit = ' '

Definition at line 127 of file PlotCubeSphereField.py.

◆ maxf

PlotCubeSphereField.maxf = np.nanmax(np.abs(fp))

Definition at line 113 of file PlotCubeSphereField.py.

◆ minf

PlotCubeSphereField.minf = np.nanmin(fp)

Definition at line 114 of file PlotCubeSphereField.py.

◆ model

string PlotCubeSphereField.model = 'gfs'

Definition at line 10 of file PlotCubeSphereField.py.

◆ npx

PlotCubeSphereField.npx = len(fh1.dimensions[xdimvar])

Definition at line 44 of file PlotCubeSphereField.py.

◆ npxr

int PlotCubeSphereField.npxr = npx

Definition at line 48 of file PlotCubeSphereField.py.

◆ npy

PlotCubeSphereField.npy = len(fh1.dimensions[ydimvar])

Definition at line 45 of file PlotCubeSphereField.py.

◆ npyr

int PlotCubeSphereField.npyr = npy

Definition at line 49 of file PlotCubeSphereField.py.

◆ npz

PlotCubeSphereField.npz = 0

Definition at line 46 of file PlotCubeSphereField.py.

◆ path1

string PlotCubeSphereField.path1 = './'

Definition at line 14 of file PlotCubeSphereField.py.

◆ path2

string PlotCubeSphereField.path2 = '../INPUTS/GEOS_c48/'

Definition at line 20 of file PlotCubeSphereField.py.

◆ pathfile1

string PlotCubeSphereField.pathfile1 = path1 + file_tile1

Definition at line 69 of file PlotCubeSphereField.py.

◆ pathfile2

string PlotCubeSphereField.pathfile2 = path2 + file_tile2

Definition at line 70 of file PlotCubeSphereField.py.

◆ plot_diff

int PlotCubeSphereField.plot_diff = 1

Definition at line 9 of file PlotCubeSphereField.py.

◆ plot_level

int PlotCubeSphereField.plot_level = 50

Definition at line 34 of file PlotCubeSphereField.py.

◆ readvar

string PlotCubeSphereField.readvar = 'T'

Definition at line 32 of file PlotCubeSphereField.py.

◆ readvarlat

string PlotCubeSphereField.readvarlat = 'grid_lat'

Definition at line 36 of file PlotCubeSphereField.py.

◆ readvarlon

string PlotCubeSphereField.readvarlon = 'grid_lon'

Definition at line 37 of file PlotCubeSphereField.py.

◆ xdimvar

string PlotCubeSphereField.xdimvar = 'xaxis_1'

Definition at line 29 of file PlotCubeSphereField.py.

◆ ydimvar

string PlotCubeSphereField.ydimvar = 'yaxis_2'

Definition at line 30 of file PlotCubeSphereField.py.

◆ zdimvar

string PlotCubeSphereField.zdimvar = 'zaxis_1'

Definition at line 31 of file PlotCubeSphereField.py.