Changeset 2766 in lmdz_wrf
- Timestamp:
- Nov 16, 2019, 10:54:07 PM (5 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diag_tools.py
r2765 r2766 1057 1057 dy = var.shape[0] 1058 1058 gradt=fdin.module_fordiagnostics.compute_gradient2dh1rk( \ 1059 v ar=var[:].transpose(), x=x[:].transpose(), y=y[:].transpose(), d1=dx,\1059 v=var[:].transpose(), x=x[:].transpose(), y=y[:].transpose(), d1=dx, \ 1060 1060 d2=dy) 1061 1061 elif len(var.shape) == 3: … … 1064 1064 dt = var.shape[0] 1065 1065 gradt=fdin.module_fordiagnostics.compute_gradient2dh3rk( \ 1066 v ar=var[:].transpose(), x=x[:].transpose(), y=y[:].transpose(), d1=dx,\1066 v=var[:].transpose(), x=x[:].transpose(), y=y[:].transpose(), d1=dx, \ 1067 1067 d2=dy, d3=dt) 1068 1068 elif len(var.shape) == 4: … … 1072 1072 dt = var.shape[0] 1073 1073 gradt=fdin.module_fordiagnostics.compute_gradient2dh4rk( \ 1074 v ar=var[:].transpose(), x=x[:].transpose(), y=y[:].transpose(), d1=dx,\1075 d2=dy, d3=d t)1074 v=var[:].transpose(), x=x[:].transpose(), y=y[:].transpose(), d1=dx, \ 1075 d2=dy, d3=dz, d4=dt) 1076 1076 else: 1077 1077 print errormsg -
trunk/tools/diagnostics.py
r2765 r2766 1186 1186 1187 1187 var0 = ncobj.variables[depvars[0]] 1188 var1 = ncobj.variables[depvars[1]] 1189 var2 = ncobj.variables[depvars[2]] 1188 var1 = ncobj.variables[depvars[1]][0,:,:] 1189 var2 = ncobj.variables[depvars[2]][0,:,:] 1190 1190 1191 1191 dnamesvar = var0.dimensions
Note: See TracChangeset
for help on using the changeset viewer.